Shopify.quickshopOptionsMap7730702287021 = {}; Shopify.quickshopUpdateOptionsInSelector7730702287021 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-7730702287021 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-7730702287021 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-7730702287021 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-7730702287021 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-7730702287021 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-7730702287021 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap7730702287021[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-7730702287021 .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.quickshopLinkOptionSelectors7730702287021 = 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.quickshopOptionsMap7730702287021['root'] = Shopify.quickshopOptionsMap7730702287021['root'] || []; Shopify.quickshopOptionsMap7730702287021['root'].push(variant.option1); Shopify.quickshopOptionsMap7730702287021['root'] = Shopify.uniq(Shopify.quickshopOptionsMap7730702287021['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap7730702287021[key] = Shopify.quickshopOptionsMap7730702287021[key] || []; Shopify.quickshopOptionsMap7730702287021[key].push(variant.option2); Shopify.quickshopOptionsMap7730702287021[key] = Shopify.uniq(Shopify.quickshopOptionsMap7730702287021[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap7730702287021[key] = Shopify.quickshopOptionsMap7730702287021[key] || []; Shopify.quickshopOptionsMap7730702287021[key].push(variant.option3); Shopify.quickshopOptionsMap7730702287021[key] = Shopify.uniq(Shopify.quickshopOptionsMap7730702287021[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector7730702287021(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector7730702287021(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7730702287021(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-7730702287021 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector7730702287021(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7730702287021(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-7730702287021 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7730702287021(2); return true; }); }; productsObj.id7730702287021 = {"id":7730702287021,"title":"DISCOVER DEVICE® #12 Standard Hollow Round Liner\/HRL 20Pcs","handle":"discover-device®-12-standard-hollow-round-liner-hrl-20pcs","description":"\u003cp\u003e\u003cstrong\u003eDiscover Device Tattoo Needle Cartridges #12 Standard Hollow Round Liner\/HRL 20Pcs\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eNeedle Diameter: 0.35mm(#12)\u003c\/p\u003e\n\u003cp\u003eBox Quantity: 20 pcs\u003c\/p\u003e\n\u003cp\u003eSingle-mould casing\u003c\/p\u003e\n\u003cp\u003eMedical-grade plastic tips\u003c\/p\u003e\n\u003cp data-spm-anchor-id=\"a2g0o.detail.1000023.i0.ee5eVBjSVBjSRI\"\u003eSafety membrane\u003c\/p\u003e\n\u003c!----\u003e","published_at":"2024-05-22T16:37:49+08:00","created_at":"2024-05-22T16:37:49+08:00","vendor":"Discover Device","type":"Tattoo Needle Cartridge","tags":[],"price":1695,"price_min":1695,"price_max":1895,"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":43324276211885,"title":"1206HRL","option1":"1206HRL","option2":null,"option3":null,"sku":"1206HRL","requires_shipping":true,"taxable":false,"featured_image":{"id":37123129376941,"product_id":7730702287021,"position":1,"created_at":"2025-05-09T15:50:39+08:00","updated_at":"2025-05-09T17:23:29+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609","variant_ids":[43324276211885,43324276244653,43324276310189,43324276342957,43324276408493,43324276441261]},"available":true,"name":"DISCOVER DEVICE® #12 Standard Hollow Round Liner\/HRL 20Pcs - 1206HRL","public_title":"1206HRL","options":["1206HRL"],"price":1695,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":28941036421293,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":43324276244653,"title":"1207HRL","option1":"1207HRL","option2":null,"option3":null,"sku":"1207HRL","requires_shipping":true,"taxable":false,"featured_image":{"id":37123129376941,"product_id":7730702287021,"position":1,"created_at":"2025-05-09T15:50:39+08:00","updated_at":"2025-05-09T17:23:29+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609","variant_ids":[43324276211885,43324276244653,43324276310189,43324276342957,43324276408493,43324276441261]},"available":true,"name":"DISCOVER DEVICE® #12 Standard Hollow Round Liner\/HRL 20Pcs - 1207HRL","public_title":"1207HRL","options":["1207HRL"],"price":1695,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":28941036421293,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":43324276310189,"title":"1208HRL","option1":"1208HRL","option2":null,"option3":null,"sku":"1208HRL","requires_shipping":true,"taxable":false,"featured_image":{"id":37123129376941,"product_id":7730702287021,"position":1,"created_at":"2025-05-09T15:50:39+08:00","updated_at":"2025-05-09T17:23:29+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609","variant_ids":[43324276211885,43324276244653,43324276310189,43324276342957,43324276408493,43324276441261]},"available":true,"name":"DISCOVER DEVICE® #12 Standard Hollow Round Liner\/HRL 20Pcs - 1208HRL","public_title":"1208HRL","options":["1208HRL"],"price":1795,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":28941036421293,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":43324276342957,"title":"1209HRL","option1":"1209HRL","option2":null,"option3":null,"sku":"1209HRL","requires_shipping":true,"taxable":false,"featured_image":{"id":37123129376941,"product_id":7730702287021,"position":1,"created_at":"2025-05-09T15:50:39+08:00","updated_at":"2025-05-09T17:23:29+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609","variant_ids":[43324276211885,43324276244653,43324276310189,43324276342957,43324276408493,43324276441261]},"available":true,"name":"DISCOVER DEVICE® #12 Standard Hollow Round Liner\/HRL 20Pcs - 1209HRL","public_title":"1209HRL","options":["1209HRL"],"price":1795,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":28941036421293,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":43324276408493,"title":"1210HRL","option1":"1210HRL","option2":null,"option3":null,"sku":"1210HRL","requires_shipping":true,"taxable":false,"featured_image":{"id":37123129376941,"product_id":7730702287021,"position":1,"created_at":"2025-05-09T15:50:39+08:00","updated_at":"2025-05-09T17:23:29+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609","variant_ids":[43324276211885,43324276244653,43324276310189,43324276342957,43324276408493,43324276441261]},"available":true,"name":"DISCOVER DEVICE® #12 Standard Hollow Round Liner\/HRL 20Pcs - 1210HRL","public_title":"1210HRL","options":["1210HRL"],"price":1895,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":28941036421293,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":43324276441261,"title":"1211HRL","option1":"1211HRL","option2":null,"option3":null,"sku":"1211HRL","requires_shipping":true,"taxable":false,"featured_image":{"id":37123129376941,"product_id":7730702287021,"position":1,"created_at":"2025-05-09T15:50:39+08:00","updated_at":"2025-05-09T17:23:29+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609","variant_ids":[43324276211885,43324276244653,43324276310189,43324276342957,43324276408493,43324276441261]},"available":true,"name":"DISCOVER DEVICE® #12 Standard Hollow Round Liner\/HRL 20Pcs - 1211HRL","public_title":"1211HRL","options":["1211HRL"],"price":1895,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":28941036421293,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609","\/\/discoverdevice.com\/cdn\/shop\/files\/4.webp?v=1746782584","\/\/discoverdevice.com\/cdn\/shop\/files\/5.webp?v=1746782590","\/\/discoverdevice.com\/cdn\/shop\/files\/6.webp?v=1746782596","\/\/discoverdevice.com\/cdn\/shop\/files\/2.webp?v=1746782575","\/\/discoverdevice.com\/cdn\/shop\/files\/1.webp?v=1746782567","\/\/discoverdevice.com\/cdn\/shop\/files\/3.webp?v=1746782579","\/\/discoverdevice.com\/cdn\/shop\/files\/7.webp?v=1746782603","\/\/discoverdevice.com\/cdn\/shop\/files\/INS-POST.webp?v=1746782561"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609","options":["SIZE"],"media":[{"alt":null,"id":28941036421293,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/77ad065df0cdbabb08cf4475f046f61b.webp?v=1746782609","width":1600},{"alt":null,"id":28941036290221,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4.webp?v=1746782584"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4.webp?v=1746782584","width":1600},{"alt":null,"id":28941036322989,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/5.webp?v=1746782590"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/5.webp?v=1746782590","width":1600},{"alt":null,"id":28941036355757,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6.webp?v=1746782596"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6.webp?v=1746782596","width":1600},{"alt":null,"id":28941036224685,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2.webp?v=1746782575"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2.webp?v=1746782575","width":1600},{"alt":null,"id":28941036191917,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1.webp?v=1746782567"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1.webp?v=1746782567","width":1600},{"alt":null,"id":28941036257453,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3.webp?v=1746782579"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3.webp?v=1746782579","width":1600},{"alt":null,"id":28941036388525,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/7.webp?v=1746782603"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/7.webp?v=1746782603","width":1600},{"alt":null,"id":28941036159149,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/INS-POST.webp?v=1746782561"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/INS-POST.webp?v=1746782561","width":1600}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003eDiscover Device Tattoo Needle Cartridges #12 Standard Hollow Round Liner\/HRL 20Pcs\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eNeedle Diameter: 0.35mm(#12)\u003c\/p\u003e\n\u003cp\u003eBox Quantity: 20 pcs\u003c\/p\u003e\n\u003cp\u003eSingle-mould casing\u003c\/p\u003e\n\u003cp\u003eMedical-grade plastic tips\u003c\/p\u003e\n\u003cp data-spm-anchor-id=\"a2g0o.detail.1000023.i0.ee5eVBjSVBjSRI\"\u003eSafety membrane\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-7730702287021 .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-7730702287021", { 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-7730702287021-' + 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-7730702287021 .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.quickshopOptionsMap7730702287021 = {}; Shopify.quickshopLinkOptionSelectors7730702287021(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });