Shopify.quickshopOptionsMap8590549975213 = {}; Shopify.quickshopUpdateOptionsInSelector8590549975213 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-8590549975213 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-8590549975213 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-8590549975213 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-8590549975213 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-8590549975213 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-8590549975213 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap8590549975213[key]; if (availableOptions && availableOptions.length) { for (var i = 0; i < availableOptions.length; i++) { var option = availableOptions[i]; var newOption = jQuery('').val(option).html(option); selector.append(newOption); } jQuery('#product-form-quick-8590549975213 .swatch[data-option-index="' + selectorIndex + '"] .swatch-element').each(function() { if (jQuery.inArray(jQuery(this).attr('data-value'), availableOptions) !== -1) { jQuery(this).removeClass('soldout').show().find(':radio').removeAttr('disabled', 'disabled').removeAttr('checked'); } else { jQuery(this).addClass('soldout').hide().find(':radio').removeAttr('checked').attr('disabled', 'disabled'); } }); if (jQuery.inArray(initialValue, availableOptions) !== -1) { selector.val(initialValue); } selector.trigger('change'); } }; Shopify.quickshopLinkOptionSelectors8590549975213 = function(product) { // Building our mapping object. for (var i = 0; i < product.variants.length; i++) { var variant = product.variants[i]; //if (variant.available) { // Gathering values for the 1st drop-down. Shopify.quickshopOptionsMap8590549975213['root'] = Shopify.quickshopOptionsMap8590549975213['root'] || []; Shopify.quickshopOptionsMap8590549975213['root'].push(variant.option1); Shopify.quickshopOptionsMap8590549975213['root'] = Shopify.uniq(Shopify.quickshopOptionsMap8590549975213['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap8590549975213[key] = Shopify.quickshopOptionsMap8590549975213[key] || []; Shopify.quickshopOptionsMap8590549975213[key].push(variant.option2); Shopify.quickshopOptionsMap8590549975213[key] = Shopify.uniq(Shopify.quickshopOptionsMap8590549975213[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap8590549975213[key] = Shopify.quickshopOptionsMap8590549975213[key] || []; Shopify.quickshopOptionsMap8590549975213[key].push(variant.option3); Shopify.quickshopOptionsMap8590549975213[key] = Shopify.uniq(Shopify.quickshopOptionsMap8590549975213[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector8590549975213(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector8590549975213(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8590549975213(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-8590549975213 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector8590549975213(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8590549975213(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-8590549975213 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8590549975213(2); return true; }); }; productsObj.id8590549975213 = {"id":8590549975213,"title":"DISCOVER DEVICE NM3 4.5MM 2026 EDITION","handle":"discover-device-nm3-4-5mm-2026-edition","description":"\u003cp\u003e\u003cstrong\u003eSpecification:\u003c\/strong\u003e\u003cbr\u003eName: NM3 2026 EDITION\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eWeight Specifications\u003c\/strong\u003e\u003cbr\u003eWith 32mm Grip: 123g\u003cbr\u003eWith 40mm Grip: 163.5g\u003cbr\u003eWith 32mm Grip + Battery: 198.6g\u003cbr\u003eWith 40mm Grip + Battery: 230.1g\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eLength Specifications\u003c\/strong\u003e\u003cbr\u003eWith 32mm Grip: 86mm\u003cbr\u003eWith 40mm Grip: 86mm\u003cbr\u003eWith 32mm Grip + Battery: 135mm\u003c\/p\u003e\n\u003cp\u003eDiameter : 32mm\/40mm\u003cbr\u003eStroke: 4.5mm\u003cbr\u003eWorking Voltage: 5-12V\u003cbr\u003eMotor Type: Brushless-2215\u003cbr\u003eMaximum Torque: 240 g·cm\u003cbr\u003eSpeed: 12V 10000RPM\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eBattery Specifications\u003c\/strong\u003e\u003cbr\u003eOutput Voltage: 4-12V\u003cbr\u003eInput Voltage: DC5V\/1A\u003cbr\u003eCharge Mode: Type-C fast charge\u003cbr\u003eSocket: RCA plug\u003cbr\u003eBattery Capacity: 1600mAh\u003c\/p\u003e","published_at":"2026-05-22T17:26:16+08:00","created_at":"2026-05-22T17:26:15+08:00","vendor":"Discover Device","type":"Tattoo Machine","tags":["#tattoopenmachine","wirelesspentattoomachine"],"price":13800,"price_min":13800,"price_max":17800,"available":true,"price_varies":true,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":46041557401773,"title":"Single Battery Kit","option1":"Single Battery Kit","option2":null,"option3":null,"sku":"NM3-2026-1","requires_shipping":true,"taxable":false,"featured_image":{"id":39736686969005,"product_id":8590549975213,"position":6,"created_at":"2026-05-22T17:32:13+08:00","updated_at":"2026-05-22T19:20:12+08:00","alt":null,"width":2109,"height":2031,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_eb204e4b-1e6c-492c-8126-79bbef3472a2.webp?v=1779448812","variant_ids":[46041557401773]},"available":true,"name":"DISCOVER DEVICE NM3 4.5MM 2026 EDITION - Single Battery Kit","public_title":"Single Battery Kit","options":["Single Battery Kit"],"price":16800,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"738191666704","featured_media":{"alt":null,"id":31121596448941,"position":6,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_eb204e4b-1e6c-492c-8126-79bbef3472a2.webp?v=1779448812"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":46041557434541,"title":"Dual Battery Kit","option1":"Dual Battery Kit","option2":null,"option3":null,"sku":"NM3-2026-2","requires_shipping":true,"taxable":false,"featured_image":{"id":39736687001773,"product_id":8590549975213,"position":7,"created_at":"2026-05-22T17:32:13+08:00","updated_at":"2026-05-22T19:20:40+08:00","alt":null,"width":2109,"height":2031,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_5a995445-bc91-4ffa-a185-3d924c20929e.webp?v=1779448840","variant_ids":[46041557434541]},"available":true,"name":"DISCOVER DEVICE NM3 4.5MM 2026 EDITION - Dual Battery Kit","public_title":"Dual Battery Kit","options":["Dual Battery Kit"],"price":17800,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"738191666711","featured_media":{"alt":null,"id":31121596481709,"position":7,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_5a995445-bc91-4ffa-a185-3d924c20929e.webp?v=1779448840"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":46041557467309,"title":"NM3 Base","option1":"NM3 Base","option2":null,"option3":null,"sku":"NM3-2026","requires_shipping":true,"taxable":false,"featured_image":{"id":39740207038637,"product_id":8590549975213,"position":8,"created_at":"2026-05-23T11:34:39+08:00","updated_at":"2026-05-23T11:34:40+08:00","alt":null,"width":2109,"height":2031,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_base.webp?v=1779507280","variant_ids":[46041557467309]},"available":true,"name":"DISCOVER DEVICE NM3 4.5MM 2026 EDITION - NM3 Base","public_title":"NM3 Base","options":["NM3 Base"],"price":13800,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"738191666728","featured_media":{"alt":null,"id":31125057208493,"position":8,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_base.webp?v=1779507280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_3.webp?v=1779448720","\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_2.webp?v=1779448692","\/\/discoverdevice.com\/cdn\/shop\/files\/NM3__post.webp?v=1779448873","\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_4.webp?v=1779448754","\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_5.webp?v=1779448780","\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_eb204e4b-1e6c-492c-8126-79bbef3472a2.webp?v=1779448812","\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_5a995445-bc91-4ffa-a185-3d924c20929e.webp?v=1779448840","\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_base.webp?v=1779507280"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_3.webp?v=1779448720","options":["Kit"],"media":[{"alt":null,"id":31121596350637,"position":1,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_3.webp?v=1779448720"},"aspect_ratio":1.038,"height":2031,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_3.webp?v=1779448720","width":2109},{"alt":null,"id":31121596317869,"position":2,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_2.webp?v=1779448692"},"aspect_ratio":1.038,"height":2031,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_2.webp?v=1779448692","width":2109},{"alt":null,"id":31121596514477,"position":3,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3__post.webp?v=1779448873"},"aspect_ratio":1.038,"height":2031,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3__post.webp?v=1779448873","width":2109},{"alt":null,"id":31121596383405,"position":4,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_4.webp?v=1779448754"},"aspect_ratio":1.038,"height":2031,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_4.webp?v=1779448754","width":2109},{"alt":null,"id":31121596416173,"position":5,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_5.webp?v=1779448780"},"aspect_ratio":1.038,"height":2031,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_5.webp?v=1779448780","width":2109},{"alt":null,"id":31121596448941,"position":6,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_eb204e4b-1e6c-492c-8126-79bbef3472a2.webp?v=1779448812"},"aspect_ratio":1.038,"height":2031,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_eb204e4b-1e6c-492c-8126-79bbef3472a2.webp?v=1779448812","width":2109},{"alt":null,"id":31121596481709,"position":7,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_5a995445-bc91-4ffa-a185-3d924c20929e.webp?v=1779448840"},"aspect_ratio":1.038,"height":2031,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_5a995445-bc91-4ffa-a185-3d924c20929e.webp?v=1779448840","width":2109},{"alt":null,"id":31125057208493,"position":8,"preview_image":{"aspect_ratio":1.038,"height":2031,"width":2109,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_base.webp?v=1779507280"},"aspect_ratio":1.038,"height":2031,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/NM3_base.webp?v=1779507280","width":2109}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003eSpecification:\u003c\/strong\u003e\u003cbr\u003eName: NM3 2026 EDITION\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eWeight Specifications\u003c\/strong\u003e\u003cbr\u003eWith 32mm Grip: 123g\u003cbr\u003eWith 40mm Grip: 163.5g\u003cbr\u003eWith 32mm Grip + Battery: 198.6g\u003cbr\u003eWith 40mm Grip + Battery: 230.1g\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eLength Specifications\u003c\/strong\u003e\u003cbr\u003eWith 32mm Grip: 86mm\u003cbr\u003eWith 40mm Grip: 86mm\u003cbr\u003eWith 32mm Grip + Battery: 135mm\u003c\/p\u003e\n\u003cp\u003eDiameter : 32mm\/40mm\u003cbr\u003eStroke: 4.5mm\u003cbr\u003eWorking Voltage: 5-12V\u003cbr\u003eMotor Type: Brushless-2215\u003cbr\u003eMaximum Torque: 240 g·cm\u003cbr\u003eSpeed: 12V 10000RPM\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eBattery Specifications\u003c\/strong\u003e\u003cbr\u003eOutput Voltage: 4-12V\u003cbr\u003eInput Voltage: DC5V\/1A\u003cbr\u003eCharge Mode: Type-C fast charge\u003cbr\u003eSocket: RCA plug\u003cbr\u003eBattery Capacity: 1600mAh\u003c\/p\u003e"}; selectCallback = function(variant, selector) { if (variant) { if (variant.available) { if (variant.compare_at_price > variant.price) { $(".price-box .price").html('' + Shopify.formatMoney(variant.compare_at_price, money_format) + "" + ' ' + Shopify.formatMoney(variant.price, money_format) + "") } else { $(".price-box .price").html('' + Shopify.formatMoney(variant.price, money_format) + ""); } woodmart_settings.enableCurrency && currenciesCallbackSpecial(".price-box span.money"),$(".single_add_to_cart_button").removeClass("disabled").removeAttr("disabled").html(window.inventory_text.add_to_cart); }else{ $("#product-form-quick-8590549975213 .single_add_to_cart_button").html(window.inventory_text.sold_out).addClass("disabled").attr("disabled", "disabled"); } if(swatch_color_type == '1' || swatch_color_type == '2'){ var form = $('#' + selector.domIdPrefix).closest('form'); for (var i=0,length=variant.options.length; i= 1) { //multiple variants for (var i = 0; i < product.variants.length; i++) { var variant = product.variants[i]; var option = ''; layout.find('form.product-form > select').append(option); } new Shopify.OptionSelectors("product-selectors-8590549975213", { product: product, onVariantSelected: selectCallback, enableHistoryState: true }); var filePath = asset_url.substring(0, asset_url.lastIndexOf('/')); var assetUrl = asset_url.substring(0, asset_url.lastIndexOf('/')); var options = ""; for (var i = 0; i < product.options.length; i++) { options += '
'; options += '
' + product.options[i] + ':
'; options += '
'; var is_color = false; var is_circle = 'circle'; if (/Color|Colour/i.test(product.options[i])) { is_color = true; } if (swatch_color_type == '2') { is_color = false; is_circle = ''; } var optionValues = new Array(); for (var j = 0; j < product.variants.length; j++) { var variant = product.variants[j]; var value = variant.options[i]; if(variant.featured_image && woodmart_settings.product_data.product_swatch_setting == '2'){ var img = variant.featured_image.src.lastIndexOf("."); var vimg = variant.featured_image.src.slice(0, img) + "_50x50_crop_center" + variant.featured_image.src.slice(img); } var valueHandle = convertToSlug(value); var forText = 'swatch-8590549975213-' + i + '-' + valueHandle; if (optionValues.indexOf(value) < 0) { options += '
'; if (is_color) { options += '
' + value + '
'; } options += ''; if (is_color) { if(vimg && woodmart_settings.product_data.product_swatch_setting == '2'){ options += ''; }else{ options += ''; } } else { options += ''; } options += '
'; if (variant.available) { $('#product-form-quick-8590549975213 .swatch[data-option-index="' + i + '"] .' + valueHandle).removeClass('soldout').addClass('available').find(':radio').removeAttr('disabled'); } optionValues.push(value); } } options += '
'; options += '
'; } if(swatch_color_type == '1' || swatch_color_type == '2'){ layout.find('form.product-form .product-options > select').after(options); layout.find('.swatch :radio').change(function() { var optionIndex = $(this).closest('.swatch').attr('data-option-index'); var optionValue = $(this).val(); $(this) .closest('form') .find('.single-option-selector') .eq(optionIndex) .val(optionValue) .trigger('change'); }); } if (product.available) { Shopify.quickshopOptionsMap8590549975213 = {}; Shopify.quickshopLinkOptionSelectors8590549975213(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });