Shopify.quickshopOptionsMap7878666485933 = {}; Shopify.quickshopUpdateOptionsInSelector7878666485933 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-7878666485933 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-7878666485933 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-7878666485933 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-7878666485933 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-7878666485933 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-7878666485933 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap7878666485933[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-7878666485933 .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.quickshopLinkOptionSelectors7878666485933 = 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.quickshopOptionsMap7878666485933['root'] = Shopify.quickshopOptionsMap7878666485933['root'] || []; Shopify.quickshopOptionsMap7878666485933['root'].push(variant.option1); Shopify.quickshopOptionsMap7878666485933['root'] = Shopify.uniq(Shopify.quickshopOptionsMap7878666485933['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap7878666485933[key] = Shopify.quickshopOptionsMap7878666485933[key] || []; Shopify.quickshopOptionsMap7878666485933[key].push(variant.option2); Shopify.quickshopOptionsMap7878666485933[key] = Shopify.uniq(Shopify.quickshopOptionsMap7878666485933[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap7878666485933[key] = Shopify.quickshopOptionsMap7878666485933[key] || []; Shopify.quickshopOptionsMap7878666485933[key].push(variant.option3); Shopify.quickshopOptionsMap7878666485933[key] = Shopify.uniq(Shopify.quickshopOptionsMap7878666485933[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector7878666485933(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector7878666485933(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7878666485933(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-7878666485933 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector7878666485933(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7878666485933(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-7878666485933 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7878666485933(2); return true; }); }; productsObj.id7878666485933 = {"id":7878666485933,"title":"Premium Tattoo Printer Bluetooth Thermal Printer ATM-Q3","handle":"premium-tattoo-printer-bluetooth-thermal-printer-atm-q3","description":"\u003cp\u003e\u003cstrong\u003ePremium Tattoo Printer Bluetooth Thermal Printer ATM-Q3\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eEffective printing width:304mm\u003c\/p\u003e\n\u003cp\u003eResolving power:203Dpi\u003c\/p\u003e\n\u003cp\u003eSize:400*95*86mm\u003c\/p\u003e\n\u003cp\u003ePrint density:8dost\/mm\u003c\/p\u003e\n\u003cp\u003eConnection method:Bluetooth\u003c\/p\u003e\n\u003cp\u003ePower input:24V--- 8A\u003c\/p\u003e\n\u003cp\u003ePaper materials:A3 stencil paper\/A4 stencil paper\u003c\/p\u003e\n\u003cp\u003eSupport system:Android\u0026amp;i0S\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePackage:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e1.ATM-Q3 tattoo printer\u003c\/p\u003e\n\u003cp\u003e2.Printer power cord\u003c\/p\u003e\n\u003cp\u003e3.A3 transfer paper*10 sheets\u003c\/p\u003e\n\u003cp\u003e\u003ciframe title=\"\" src=\"https:\/\/www.youtube.com\/embed\/UgTMcPTAf50\" height=\"507\" width=\"901\" allowfullscreen=\"\" referrerpolicy=\"strict-origin-when-cross-origin\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" frameborder=\"0\"\u003e\u003c\/iframe\u003e\u003c\/p\u003e\n\u003cp\u003e\u003ciframe title=\"Discoverdevice Bluetooth Thermal Printer ATM-Q3 Printing Results Display\" src=\"https:\/\/www.youtube.com\/embed\/MVt6ctjT6bk\" height=\"507\" width=\"901\" allowfullscreen=\"\" referrerpolicy=\"strict-origin-when-cross-origin\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" frameborder=\"0\"\u003e\u003c\/iframe\u003e\u003c\/p\u003e","published_at":"2024-08-26T19:39:29+08:00","created_at":"2024-08-26T19:39:29+08:00","vendor":"Discover Device","type":"Tattoo Machines","tags":[],"price":7800,"price_min":7800,"price_max":77900,"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":43689650421933,"title":"ATM-Q3 Stencil Printer","option1":"ATM-Q3 Stencil Printer","option2":null,"option3":null,"sku":"ATM-Q3","requires_shipping":true,"taxable":false,"featured_image":{"id":35464534687917,"product_id":7878666485933,"position":1,"created_at":"2024-08-27T20:42:25+08:00","updated_at":"2024-09-14T01:28:59+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_944a9e86-dba6-47d8-97b3-242df082708d.jpg?v=1726248539","variant_ids":[43689650421933]},"available":true,"name":"Premium Tattoo Printer Bluetooth Thermal Printer ATM-Q3 - ATM-Q3 Stencil Printer","public_title":"ATM-Q3 Stencil Printer","options":["ATM-Q3 Stencil Printer"],"price":77900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"768172202898","featured_media":{"alt":null,"id":27793082384557,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_944a9e86-dba6-47d8-97b3-242df082708d.jpg?v=1726248539"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":43689650454701,"title":"A3 Transfer Paper * 50 sheets","option1":"A3 Transfer Paper * 50 sheets","option2":null,"option3":null,"sku":"A3-50","requires_shipping":true,"taxable":false,"featured_image":{"id":35477573927085,"product_id":7878666485933,"position":8,"created_at":"2024-08-28T17:26:25+08:00","updated_at":"2024-09-13T22:21:50+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-50-sheet.jpg?v=1726237310","variant_ids":[43689650454701]},"available":true,"name":"Premium Tattoo Printer Bluetooth Thermal Printer ATM-Q3 - A3 Transfer Paper * 50 sheets","public_title":"A3 Transfer Paper * 50 sheets","options":["A3 Transfer Paper * 50 sheets"],"price":7800,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"768172202904","featured_media":{"alt":null,"id":27802302644397,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-50-sheet.jpg?v=1726237310"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44133607637165,"title":"A3 Transfer Paper * 100 sheets","option1":"A3 Transfer Paper * 100 sheets","option2":null,"option3":null,"sku":"A3-100","requires_shipping":true,"taxable":false,"featured_image":{"id":36537352978605,"product_id":7878666485933,"position":9,"created_at":"2025-02-06T10:43:47+08:00","updated_at":"2025-02-06T12:20:40+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-100-sheet.jpg?v=1738815640","variant_ids":[44133607637165]},"available":true,"name":"Premium Tattoo Printer Bluetooth Thermal Printer ATM-Q3 - A3 Transfer Paper * 100 sheets","public_title":"A3 Transfer Paper * 100 sheets","options":["A3 Transfer Paper * 100 sheets"],"price":14100,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"701555871656","featured_media":{"alt":null,"id":28564063781037,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-100-sheet.jpg?v=1738815640"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_944a9e86-dba6-47d8-97b3-242df082708d.jpg?v=1726248539","\/\/discoverdevice.com\/cdn\/shop\/files\/1_398360c2-ac50-42f7-ba27-4b79146f8d63.jpg?v=1726248393","\/\/discoverdevice.com\/cdn\/shop\/files\/2_6f482153-b4f3-42d3-b252-6a2d351a6879.jpg?v=1726248343","\/\/discoverdevice.com\/cdn\/shop\/files\/3_1f7186c2-c955-4c1f-9f83-7d2a5ba1a79e.jpg?v=1726248293","\/\/discoverdevice.com\/cdn\/shop\/files\/5_98f373a9-ea46-46d6-953b-cb86e54194bf.jpg?v=1726237639","\/\/discoverdevice.com\/cdn\/shop\/files\/1_43f7c90e-7f41-4979-a052-f3ee2876a07a.jpg?v=1726237529","\/\/discoverdevice.com\/cdn\/shop\/files\/6_6d197ce9-b837-400f-80f3-e0b8dca8e678.jpg?v=1726237426","\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-50-sheet.jpg?v=1726237310","\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-100-sheet.jpg?v=1738815640"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_944a9e86-dba6-47d8-97b3-242df082708d.jpg?v=1726248539","options":["Style"],"media":[{"alt":null,"id":27793082384557,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_944a9e86-dba6-47d8-97b3-242df082708d.jpg?v=1726248539"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_944a9e86-dba6-47d8-97b3-242df082708d.jpg?v=1726248539","width":1600},{"alt":null,"id":27793082319021,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1_398360c2-ac50-42f7-ba27-4b79146f8d63.jpg?v=1726248393"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1_398360c2-ac50-42f7-ba27-4b79146f8d63.jpg?v=1726248393","width":1600},{"alt":null,"id":27793082482861,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2_6f482153-b4f3-42d3-b252-6a2d351a6879.jpg?v=1726248343"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2_6f482153-b4f3-42d3-b252-6a2d351a6879.jpg?v=1726248343","width":1600},{"alt":null,"id":27793082548397,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3_1f7186c2-c955-4c1f-9f83-7d2a5ba1a79e.jpg?v=1726248293"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3_1f7186c2-c955-4c1f-9f83-7d2a5ba1a79e.jpg?v=1726248293","width":1600},{"alt":null,"id":27785876766893,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/5_98f373a9-ea46-46d6-953b-cb86e54194bf.jpg?v=1726237639"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/5_98f373a9-ea46-46d6-953b-cb86e54194bf.jpg?v=1726237639","width":1600},{"alt":null,"id":27785876668589,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1_43f7c90e-7f41-4979-a052-f3ee2876a07a.jpg?v=1726237529"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1_43f7c90e-7f41-4979-a052-f3ee2876a07a.jpg?v=1726237529","width":1600},{"alt":null,"id":27785876799661,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6_6d197ce9-b837-400f-80f3-e0b8dca8e678.jpg?v=1726237426"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6_6d197ce9-b837-400f-80f3-e0b8dca8e678.jpg?v=1726237426","width":1600},{"alt":null,"id":27802302644397,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-50-sheet.jpg?v=1726237310"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-50-sheet.jpg?v=1726237310","width":1600},{"alt":null,"id":28564063781037,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-100-sheet.jpg?v=1738815640"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/A3-Paper-100-sheet.jpg?v=1738815640","width":1600}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003ePremium Tattoo Printer Bluetooth Thermal Printer ATM-Q3\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eEffective printing width:304mm\u003c\/p\u003e\n\u003cp\u003eResolving power:203Dpi\u003c\/p\u003e\n\u003cp\u003eSize:400*95*86mm\u003c\/p\u003e\n\u003cp\u003ePrint density:8dost\/mm\u003c\/p\u003e\n\u003cp\u003eConnection method:Bluetooth\u003c\/p\u003e\n\u003cp\u003ePower input:24V--- 8A\u003c\/p\u003e\n\u003cp\u003ePaper materials:A3 stencil paper\/A4 stencil paper\u003c\/p\u003e\n\u003cp\u003eSupport system:Android\u0026amp;i0S\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePackage:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e1.ATM-Q3 tattoo printer\u003c\/p\u003e\n\u003cp\u003e2.Printer power cord\u003c\/p\u003e\n\u003cp\u003e3.A3 transfer paper*10 sheets\u003c\/p\u003e\n\u003cp\u003e\u003ciframe title=\"\" src=\"https:\/\/www.youtube.com\/embed\/UgTMcPTAf50\" height=\"507\" width=\"901\" allowfullscreen=\"\" referrerpolicy=\"strict-origin-when-cross-origin\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" frameborder=\"0\"\u003e\u003c\/iframe\u003e\u003c\/p\u003e\n\u003cp\u003e\u003ciframe title=\"Discoverdevice Bluetooth Thermal Printer ATM-Q3 Printing Results Display\" src=\"https:\/\/www.youtube.com\/embed\/MVt6ctjT6bk\" height=\"507\" width=\"901\" allowfullscreen=\"\" referrerpolicy=\"strict-origin-when-cross-origin\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" frameborder=\"0\"\u003e\u003c\/iframe\u003e\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-7878666485933 .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-7878666485933", { 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-7878666485933-' + 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-7878666485933 .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.quickshopOptionsMap7878666485933 = {}; Shopify.quickshopLinkOptionSelectors7878666485933(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });