Shopify.quickshopOptionsMap7328487506093 = {}; Shopify.quickshopUpdateOptionsInSelector7328487506093 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-7328487506093 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-7328487506093 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-7328487506093 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-7328487506093 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-7328487506093 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-7328487506093 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap7328487506093[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-7328487506093 .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.quickshopLinkOptionSelectors7328487506093 = 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.quickshopOptionsMap7328487506093['root'] = Shopify.quickshopOptionsMap7328487506093['root'] || []; Shopify.quickshopOptionsMap7328487506093['root'].push(variant.option1); Shopify.quickshopOptionsMap7328487506093['root'] = Shopify.uniq(Shopify.quickshopOptionsMap7328487506093['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap7328487506093[key] = Shopify.quickshopOptionsMap7328487506093[key] || []; Shopify.quickshopOptionsMap7328487506093[key].push(variant.option2); Shopify.quickshopOptionsMap7328487506093[key] = Shopify.uniq(Shopify.quickshopOptionsMap7328487506093[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap7328487506093[key] = Shopify.quickshopOptionsMap7328487506093[key] || []; Shopify.quickshopOptionsMap7328487506093[key].push(variant.option3); Shopify.quickshopOptionsMap7328487506093[key] = Shopify.uniq(Shopify.quickshopOptionsMap7328487506093[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector7328487506093(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector7328487506093(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7328487506093(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-7328487506093 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector7328487506093(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7328487506093(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-7328487506093 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7328487506093(2); return true; }); }; productsObj.id7328487506093 = {"id":7328487506093,"title":"Denergy Tattoo Machine Kit - All-in-One Set with Soft\/Hard Adjustment Functions","handle":"denergy-tattoo-machine-kit-all-in-one-set-with-soft-hard-adjustment-functions","description":"\u003cp\u003e\u003cstrong\u003eDenergy 3.7mm Stroke Tattoo Pen Machine Kit Includes:\u003c\/strong\u003e\u003cbr data-mce-fragment=\"1\"\u003e1.Denergy Starlight Golden Tattoo Pen Machine 3.7mm Stroke * 1\u003cbr data-mce-fragment=\"1\"\u003e2.Tattoo Power Supply * 1\u003cbr data-mce-fragment=\"1\"\u003e3.Tattoo Foot Pedal Switch * 1\u003cbr data-mce-fragment=\"1\"\u003e4.RCA cable * 1\u003cbr data-mce-fragment=\"1\"\u003e5.Tattoo Transfer Paper * 2\u003cbr data-mce-fragment=\"1\"\u003e6.Tattoo Practice Skin (20cm*30cm)* 1\u003cbr data-mce-fragment=\"1\"\u003e7.Tattoo Grip Cover Warp * 2\u003cbr data-mce-fragment=\"1\"\u003e8.Denergy Cartridge Needle 1203RL*10PCS ; 1207M1*10PCS\u003cbr data-mce-fragment=\"1\"\u003e9.Denergy Tattoo Ink 7 Color * 1\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eThe Denergy 3.7mm tattoo pen machine is crafted from premium materials and features a powerful motor, making it a versatile tool suitable for a wide range of tattoo styles. The machine's sleek Gold\/NightBlack finish adds a touch of style to your tattoo setup.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eThe gold version features a natural metallic finish instead of paint, ensuring long-lasting shine and durability. Meanwhile, the night black version is plated with a special coating that guarantees the color will never fade, even with extended use.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eDenergy complete tattoo kit is designed to accommodate a wide range of tattoo styles, including line work, shading, dot work, and more. With a variety of needles, ink, and other essential tools included, this kit provides everything you need to create professional-quality tattoos with ease.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eWhether you're a seasoned pro or just starting out, the Denergy 3.7mm stroke tattoo machine kit is the perfect tool for taking your art to the next level. Order yours today and experience the precision, power, and ease of use that only Denergy can deliver.\u003c\/span\u003e\u003c\/p\u003e","published_at":"2023-03-15T16:06:17+08:00","created_at":"2023-03-15T16:06:17+08:00","vendor":"Discover Device","type":"Tattoo Machine Kit","tags":[],"price":11195,"price_min":11195,"price_max":11195,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":42141044474029,"title":"GOLDEN","option1":"GOLDEN","option2":null,"option3":null,"sku":"Den-GDNIBK","requires_shipping":true,"taxable":false,"featured_image":{"id":32905398911149,"product_id":7328487506093,"position":7,"created_at":"2023-03-15T16:07:52+08:00","updated_at":"2023-03-15T16:09:21+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/08bc7a646527a08e1757307477bf08da.jpg?v=1678867761","variant_ids":[42141044474029]},"available":true,"name":"Denergy Tattoo Machine Kit - All-in-One Set with Soft\/Hard Adjustment Functions - GOLDEN","public_title":"GOLDEN","options":["GOLDEN"],"price":11195,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"768172200665","featured_media":{"alt":null,"id":25230850850989,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/08bc7a646527a08e1757307477bf08da.jpg?v=1678867761"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":42141044506797,"title":"NIGHT BLACK","option1":"NIGHT BLACK","option2":null,"option3":null,"sku":"Den-GDNIBK-2","requires_shipping":true,"taxable":false,"featured_image":{"id":32905398714541,"product_id":7328487506093,"position":1,"created_at":"2023-03-15T16:07:52+08:00","updated_at":"2023-03-15T16:09:21+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/736ac77e9c902175bb66101b8a043611.jpg?v=1678867761","variant_ids":[42141044506797]},"available":true,"name":"Denergy Tattoo Machine Kit - All-in-One Set with Soft\/Hard Adjustment Functions - NIGHT BLACK","public_title":"NIGHT BLACK","options":["NIGHT BLACK"],"price":11195,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"768172200672","featured_media":{"alt":null,"id":25230850883757,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/736ac77e9c902175bb66101b8a043611.jpg?v=1678867761"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/736ac77e9c902175bb66101b8a043611.jpg?v=1678867761","\/\/discoverdevice.com\/cdn\/shop\/products\/2.jpg?v=1678867840","\/\/discoverdevice.com\/cdn\/shop\/products\/3.jpg?v=1678867761","\/\/discoverdevice.com\/cdn\/shop\/products\/4_c8f721ee-603c-47e5-8c73-d151ffcfd566.jpg?v=1678867761","\/\/discoverdevice.com\/cdn\/shop\/products\/7.jpg?v=1678867761","\/\/discoverdevice.com\/cdn\/shop\/products\/Denergy_QQ_20200627104948.jpg?v=1678867761","\/\/discoverdevice.com\/cdn\/shop\/products\/08bc7a646527a08e1757307477bf08da.jpg?v=1678867761"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/736ac77e9c902175bb66101b8a043611.jpg?v=1678867761","options":["Color"],"media":[{"alt":null,"id":25230850883757,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/736ac77e9c902175bb66101b8a043611.jpg?v=1678867761"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/736ac77e9c902175bb66101b8a043611.jpg?v=1678867761","width":1600},{"alt":null,"id":25230850687149,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2.jpg?v=1678867840"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2.jpg?v=1678867840","width":1000},{"alt":null,"id":25230850719917,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3.jpg?v=1678867761"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3.jpg?v=1678867761","width":1000},{"alt":null,"id":25230850752685,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_c8f721ee-603c-47e5-8c73-d151ffcfd566.jpg?v=1678867761"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_c8f721ee-603c-47e5-8c73-d151ffcfd566.jpg?v=1678867761","width":1000},{"alt":null,"id":25230850785453,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/7.jpg?v=1678867761"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/7.jpg?v=1678867761","width":1000},{"alt":null,"id":25230850818221,"position":6,"preview_image":{"aspect_ratio":0.979,"height":2635,"width":2580,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Denergy_QQ_20200627104948.jpg?v=1678867761"},"aspect_ratio":0.979,"height":2635,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Denergy_QQ_20200627104948.jpg?v=1678867761","width":2580},{"alt":null,"id":25230850850989,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/08bc7a646527a08e1757307477bf08da.jpg?v=1678867761"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/08bc7a646527a08e1757307477bf08da.jpg?v=1678867761","width":1600},{"alt":null,"id":25230855471277,"position":8,"preview_image":{"aspect_ratio":0.8,"height":900,"width":720,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/24c988309a76480398143fce8647b24b.thumbnail.0000000000.jpg?v=1678867791"},"aspect_ratio":0.8,"duration":11600,"media_type":"video","sources":[{"format":"mp4","height":480,"mime_type":"video\/mp4","url":"\/\/discoverdevice.com\/cdn\/shop\/videos\/c\/vp\/24c988309a76480398143fce8647b24b\/24c988309a76480398143fce8647b24b.SD-480p-0.9Mbps-13083840.mp4?v=0","width":384},{"format":"mp4","height":720,"mime_type":"video\/mp4","url":"\/\/discoverdevice.com\/cdn\/shop\/videos\/c\/vp\/24c988309a76480398143fce8647b24b\/24c988309a76480398143fce8647b24b.HD-720p-1.6Mbps-13083840.mp4?v=0","width":576},{"format":"m3u8","height":720,"mime_type":"application\/x-mpegURL","url":"\/\/discoverdevice.com\/cdn\/shop\/videos\/c\/vp\/24c988309a76480398143fce8647b24b\/24c988309a76480398143fce8647b24b.m3u8?v=0","width":576}]}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003eDenergy 3.7mm Stroke Tattoo Pen Machine Kit Includes:\u003c\/strong\u003e\u003cbr data-mce-fragment=\"1\"\u003e1.Denergy Starlight Golden Tattoo Pen Machine 3.7mm Stroke * 1\u003cbr data-mce-fragment=\"1\"\u003e2.Tattoo Power Supply * 1\u003cbr data-mce-fragment=\"1\"\u003e3.Tattoo Foot Pedal Switch * 1\u003cbr data-mce-fragment=\"1\"\u003e4.RCA cable * 1\u003cbr data-mce-fragment=\"1\"\u003e5.Tattoo Transfer Paper * 2\u003cbr data-mce-fragment=\"1\"\u003e6.Tattoo Practice Skin (20cm*30cm)* 1\u003cbr data-mce-fragment=\"1\"\u003e7.Tattoo Grip Cover Warp * 2\u003cbr data-mce-fragment=\"1\"\u003e8.Denergy Cartridge Needle 1203RL*10PCS ; 1207M1*10PCS\u003cbr data-mce-fragment=\"1\"\u003e9.Denergy Tattoo Ink 7 Color * 1\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eThe Denergy 3.7mm tattoo pen machine is crafted from premium materials and features a powerful motor, making it a versatile tool suitable for a wide range of tattoo styles. The machine's sleek Gold\/NightBlack finish adds a touch of style to your tattoo setup.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eThe gold version features a natural metallic finish instead of paint, ensuring long-lasting shine and durability. Meanwhile, the night black version is plated with a special coating that guarantees the color will never fade, even with extended use.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eDenergy complete tattoo kit is designed to accommodate a wide range of tattoo styles, including line work, shading, dot work, and more. With a variety of needles, ink, and other essential tools included, this kit provides everything you need to create professional-quality tattoos with ease.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eWhether you're a seasoned pro or just starting out, the Denergy 3.7mm stroke tattoo machine kit is the perfect tool for taking your art to the next level. Order yours today and experience the precision, power, and ease of use that only Denergy can deliver.\u003c\/span\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-7328487506093 .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-7328487506093", { 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-7328487506093-' + 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-7328487506093 .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.quickshopOptionsMap7328487506093 = {}; Shopify.quickshopLinkOptionSelectors7328487506093(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });