Shopify.quickshopOptionsMap7802344341677 = {}; Shopify.quickshopUpdateOptionsInSelector7802344341677 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-7802344341677 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-7802344341677 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-7802344341677 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-7802344341677 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-7802344341677 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-7802344341677 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap7802344341677[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-7802344341677 .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.quickshopLinkOptionSelectors7802344341677 = 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.quickshopOptionsMap7802344341677['root'] = Shopify.quickshopOptionsMap7802344341677['root'] || []; Shopify.quickshopOptionsMap7802344341677['root'].push(variant.option1); Shopify.quickshopOptionsMap7802344341677['root'] = Shopify.uniq(Shopify.quickshopOptionsMap7802344341677['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap7802344341677[key] = Shopify.quickshopOptionsMap7802344341677[key] || []; Shopify.quickshopOptionsMap7802344341677[key].push(variant.option2); Shopify.quickshopOptionsMap7802344341677[key] = Shopify.uniq(Shopify.quickshopOptionsMap7802344341677[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap7802344341677[key] = Shopify.quickshopOptionsMap7802344341677[key] || []; Shopify.quickshopOptionsMap7802344341677[key].push(variant.option3); Shopify.quickshopOptionsMap7802344341677[key] = Shopify.uniq(Shopify.quickshopOptionsMap7802344341677[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector7802344341677(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector7802344341677(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7802344341677(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-7802344341677 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector7802344341677(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7802344341677(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-7802344341677 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7802344341677(2); return true; }); }; productsObj.id7802344341677 = {"id":7802344341677,"title":"Convention Tattoo Pack-Essential Tattoo Supply Kit","handle":"convention-tattoo-pack-essential-tattoo-supply-kit","description":"\u003cp\u003e\u003cstrong\u003eConvention Tattoo Pack\u003c\/strong\u003e\u003cbr\u003eContains the essential elements for any convention or guest artist.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eContents of the pack (Kit A):\u003c\/strong\u003e\u003cbr\u003eDiscoverdevice cartridge needle 1203RL x5\u003cbr\u003eDiscoverdevice cartridge needle 1209M1 x5\u003cbr\u003eGrip cover black 5cm x 4.5m    x1\u003cbr\u003eGrip cover black 2.5cm x 4.5m    x1\u003cbr\u003eSterile tongue depressors    x2\u003cbr\u003eRazors    x2\u003cbr\u003ePaper Medical Tape    x1\u003cbr\u003eSterile silicone cups    x5\u003cbr\u003eDental bibs    x5\u003cbr\u003eCleaning wipes    x3\u003cbr\u003eCartridge needle holder x4\u003cbr\u003eDip Foam Tip Cleaning × 2\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eContents of the pack (Kit B):\u003c\/strong\u003e\u003cbr\u003eGrip cover black 5cm x 4.5m    x1\u003cbr\u003eGrip cover black 2.5cm x 4.5m    x1\u003cbr\u003eSterile tongue depressors    x2\u003cbr\u003eRazors    x2\u003cbr\u003ePaper Medical Tape    x1\u003cbr\u003eSterile silicone cups    x5\u003cbr\u003eDental bibs    x5\u003cbr\u003eCleaning wipes    x3\u003cbr\u003eCartridge needle holder x4\u003cbr\u003eDip Foam Tip Cleaning × 2\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eReady for Action\u003c\/strong\u003e: Don't waste time gathering the necessary supplies. The pack allows tattoo artists to concentrate on their art, eliminating the stress of preparing equipment.\u003c\/p\u003e\n\u003c!----\u003e","published_at":"2024-06-15T10:36:15+08:00","created_at":"2024-06-15T10:36:15+08:00","vendor":"Denergy","type":"Tattoo Accessories","tags":[],"price":1895,"price_min":1895,"price_max":2195,"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":43827127746733,"title":"Kit A","option1":"Kit A","option2":null,"option3":null,"sku":"CTP-A-1","requires_shipping":true,"taxable":false,"featured_image":{"id":35777485144237,"product_id":7802344341677,"position":5,"created_at":"2024-10-11T17:34:53+08:00","updated_at":"2024-10-12T06:10:45+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_Consumables_kit_set.jpg?v=1728684645","variant_ids":[43827127746733]},"available":true,"name":"Convention Tattoo Pack-Essential Tattoo Supply Kit - Kit A","public_title":"Kit A","options":["Kit A"],"price":2195,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"768172202942","featured_media":{"alt":null,"id":28043066409133,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_Consumables_kit_set.jpg?v=1728684645"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":43827127779501,"title":"Kit B","option1":"Kit B","option2":null,"option3":null,"sku":"CTP-A-2","requires_shipping":true,"taxable":false,"featured_image":{"id":35777485177005,"product_id":7802344341677,"position":1,"created_at":"2024-10-11T17:34:53+08:00","updated_at":"2024-10-11T17:34:54+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_supplies_set.jpg?v=1728639294","variant_ids":[43827127779501]},"available":true,"name":"Convention Tattoo Pack-Essential Tattoo Supply Kit - Kit B","public_title":"Kit B","options":["Kit B"],"price":1895,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"768172202959","featured_media":{"alt":null,"id":28043066441901,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_supplies_set.jpg?v=1728639294"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_supplies_set.jpg?v=1728639294","\/\/discoverdevice.com\/cdn\/shop\/files\/convenient-tattoo-supplies-pack.jpg?v=1728684658","\/\/discoverdevice.com\/cdn\/shop\/files\/5_2e2161b9-4900-48dd-8ef8-c74825a8a061.jpg?v=1718419019","\/\/discoverdevice.com\/cdn\/shop\/files\/Silicone-tattoo-cups.jpg?v=1728684654","\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_Consumables_kit_set.jpg?v=1728684645","\/\/discoverdevice.com\/cdn\/shop\/files\/convenient-tattoo-essential-suplies.jpg?v=1728684639","\/\/discoverdevice.com\/cdn\/shop\/files\/2_60373925-9f2b-4aff-9ca9-042335988be9.jpg?v=1718419013","\/\/discoverdevice.com\/cdn\/shop\/files\/4_a507a262-5f1f-4060-8df0-bb8ab912aefb.jpg?v=1718419008","\/\/discoverdevice.com\/cdn\/shop\/files\/6_b70afcfd-0529-4e97-9ba9-e9642df5d746.jpg?v=1718419000"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_supplies_set.jpg?v=1728639294","options":["Style"],"media":[{"alt":null,"id":28043066441901,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_supplies_set.jpg?v=1728639294"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_supplies_set.jpg?v=1728639294","width":1600},{"alt":null,"id":28043066343597,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/convenient-tattoo-supplies-pack.jpg?v=1728684658"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/convenient-tattoo-supplies-pack.jpg?v=1728684658","width":1600},{"alt":null,"id":27275023745197,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/5_2e2161b9-4900-48dd-8ef8-c74825a8a061.jpg?v=1718419019"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/5_2e2161b9-4900-48dd-8ef8-c74825a8a061.jpg?v=1718419019","width":1600},{"alt":null,"id":28043066474669,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/Silicone-tattoo-cups.jpg?v=1728684654"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/Silicone-tattoo-cups.jpg?v=1728684654","width":1600},{"alt":null,"id":28043066409133,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_Consumables_kit_set.jpg?v=1728684645"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/tattoo_Consumables_kit_set.jpg?v=1728684645","width":1600},{"alt":null,"id":28043066376365,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/convenient-tattoo-essential-suplies.jpg?v=1728684639"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/convenient-tattoo-essential-suplies.jpg?v=1728684639","width":1600},{"alt":null,"id":27275023679661,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2_60373925-9f2b-4aff-9ca9-042335988be9.jpg?v=1718419013"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2_60373925-9f2b-4aff-9ca9-042335988be9.jpg?v=1718419013","width":1600},{"alt":null,"id":27275023712429,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_a507a262-5f1f-4060-8df0-bb8ab912aefb.jpg?v=1718419008"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_a507a262-5f1f-4060-8df0-bb8ab912aefb.jpg?v=1718419008","width":1600},{"alt":null,"id":27275023777965,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6_b70afcfd-0529-4e97-9ba9-e9642df5d746.jpg?v=1718419000"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6_b70afcfd-0529-4e97-9ba9-e9642df5d746.jpg?v=1718419000","width":1500}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003eConvention Tattoo Pack\u003c\/strong\u003e\u003cbr\u003eContains the essential elements for any convention or guest artist.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eContents of the pack (Kit A):\u003c\/strong\u003e\u003cbr\u003eDiscoverdevice cartridge needle 1203RL x5\u003cbr\u003eDiscoverdevice cartridge needle 1209M1 x5\u003cbr\u003eGrip cover black 5cm x 4.5m    x1\u003cbr\u003eGrip cover black 2.5cm x 4.5m    x1\u003cbr\u003eSterile tongue depressors    x2\u003cbr\u003eRazors    x2\u003cbr\u003ePaper Medical Tape    x1\u003cbr\u003eSterile silicone cups    x5\u003cbr\u003eDental bibs    x5\u003cbr\u003eCleaning wipes    x3\u003cbr\u003eCartridge needle holder x4\u003cbr\u003eDip Foam Tip Cleaning × 2\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eContents of the pack (Kit B):\u003c\/strong\u003e\u003cbr\u003eGrip cover black 5cm x 4.5m    x1\u003cbr\u003eGrip cover black 2.5cm x 4.5m    x1\u003cbr\u003eSterile tongue depressors    x2\u003cbr\u003eRazors    x2\u003cbr\u003ePaper Medical Tape    x1\u003cbr\u003eSterile silicone cups    x5\u003cbr\u003eDental bibs    x5\u003cbr\u003eCleaning wipes    x3\u003cbr\u003eCartridge needle holder x4\u003cbr\u003eDip Foam Tip Cleaning × 2\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eReady for Action\u003c\/strong\u003e: Don't waste time gathering the necessary supplies. The pack allows tattoo artists to concentrate on their art, eliminating the stress of preparing equipment.\u003c\/p\u003e\n\u003c!----\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-7802344341677 .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-7802344341677", { 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-7802344341677-' + 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-7802344341677 .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.quickshopOptionsMap7802344341677 = {}; Shopify.quickshopLinkOptionSelectors7802344341677(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });