Shopify.quickshopOptionsMap4668761571430 = {}; Shopify.quickshopUpdateOptionsInSelector4668761571430 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-4668761571430 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-4668761571430 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-4668761571430 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-4668761571430 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-4668761571430 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-4668761571430 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap4668761571430[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-4668761571430 .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.quickshopLinkOptionSelectors4668761571430 = 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.quickshopOptionsMap4668761571430['root'] = Shopify.quickshopOptionsMap4668761571430['root'] || []; Shopify.quickshopOptionsMap4668761571430['root'].push(variant.option1); Shopify.quickshopOptionsMap4668761571430['root'] = Shopify.uniq(Shopify.quickshopOptionsMap4668761571430['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap4668761571430[key] = Shopify.quickshopOptionsMap4668761571430[key] || []; Shopify.quickshopOptionsMap4668761571430[key].push(variant.option2); Shopify.quickshopOptionsMap4668761571430[key] = Shopify.uniq(Shopify.quickshopOptionsMap4668761571430[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap4668761571430[key] = Shopify.quickshopOptionsMap4668761571430[key] || []; Shopify.quickshopOptionsMap4668761571430[key].push(variant.option3); Shopify.quickshopOptionsMap4668761571430[key] = Shopify.uniq(Shopify.quickshopOptionsMap4668761571430[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector4668761571430(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector4668761571430(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4668761571430(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-4668761571430 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector4668761571430(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4668761571430(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-4668761571430 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4668761571430(2); return true; }); }; productsObj.id4668761571430 = {"id":4668761571430,"title":"DISCOVER DEVICE® Conventional Tattoo Needles 0.35mm Super Hollow Round Liner","handle":"discover-conventional-tattoo-needles-0-35mm-super-hollow-round-liner","description":"\u003cstrong\u003eThe Discover Tattoo Needles\u003c\/strong\u003e are made with Passion and Love for Tattoo Art. \u003cbr\u003eThey are available in Standard and Bugpin,textured ,a full line of configurations to achieve all artworks.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eDiscover Tattoo Needles\u003c\/strong\u003e are strictly inspected and selected to be super evenly soldered,strong sharpness,hardness and super consistency taper.\u003cbr\u003e\u003cbr\u003e\n\u003cdiv style=\"text-align: left;\" data-mce-fragment=\"1\" data-mce-style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/RL_5_480x480.jpg?v=1662355968\" alt=\"\" style=\"float: none;\" data-mce-fragment=\"1\" data-mce-style=\"float: none;\" data-mce-src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/RL_5_480x480.jpg?v=1662355968\"\u003e\u003c\/div\u003e\n\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eMade from medical stainless steel.\u003c\/li\u003e\n\u003cli\u003eNeedles are strictly inspected and selected to be consistent taper,strong hard sharpness.\u003c\/li\u003e\n\u003cli\u003eEvenly strong soldered.\u003c\/li\u003e\n\u003cli\u003eLowest throwaway rate.\u003c\/li\u003e\n\u003cli\u003eBlister individually packaged, and sterilized by E.O. Gas indicator\u003c\/li\u003e\n\u003cli\u003eDiameter: 0.35mm (#12)\u003c\/li\u003e\n\u003cli\u003eTaper: Long Taper\u003c\/li\u003e\n\u003cli\u003eDiameter available by 0.25, 0.30,0.35, 0.40mm (#08,#10,#12,#14)\u003c\/li\u003e\n\u003cli\u003eItem available: 1205RLH,1207RLH,1209RLH,1211RLH,1214RLH\u003c\/li\u003e\n\u003cli\u003ePacking:50pcs per box\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\u003cspan style=\"color: #ff2a00;\"\u003e\u003cstrong\u003eDiscover Your Craft.\u003c\/strong\u003e\u003c\/span\u003e","published_at":"2020-03-03T11:50:54+08:00","created_at":"2020-03-03T14:07:10+08:00","vendor":"Discover Device","type":"Tattoo Needle","tags":[],"price":2000,"price_min":2000,"price_max":2900,"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":31477794308198,"title":"1205RLH","option1":"1205RLH","option2":null,"option3":null,"sku":"PCN1205RLH","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Conventional Tattoo Needles 0.35mm Super Hollow Round Liner - 1205RLH","public_title":"1205RLH","options":["1205RLH"],"price":2000,"weight":200,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31477794340966,"title":"1207RLH","option1":"1207RLH","option2":null,"option3":null,"sku":"PCN1207RLH","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Conventional Tattoo Needles 0.35mm Super Hollow Round Liner - 1207RLH","public_title":"1207RLH","options":["1207RLH"],"price":2400,"weight":200,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31477794373734,"title":"1209RLH","option1":"1209RLH","option2":null,"option3":null,"sku":"PCN1209RLH","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Conventional Tattoo Needles 0.35mm Super Hollow Round Liner - 1209RLH","public_title":"1209RLH","options":["1209RLH"],"price":2400,"weight":200,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31477794406502,"title":"1211RLH","option1":"1211RLH","option2":null,"option3":null,"sku":"PCN1211RLH","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Conventional Tattoo Needles 0.35mm Super Hollow Round Liner - 1211RLH","public_title":"1211RLH","options":["1211RLH"],"price":2900,"weight":200,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31477794439270,"title":"1214RLH","option1":"1214RLH","option2":null,"option3":null,"sku":"PCN1214RLH","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Conventional Tattoo Needles 0.35mm Super Hollow Round Liner - 1214RLH","public_title":"1214RLH","options":["1214RLH"],"price":2900,"weight":200,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/0.35RLH.jpg?v=1583215730","\/\/discoverdevice.com\/cdn\/shop\/products\/DISCOVER_DEVICE_NEEDLES_5d339e6a-abbd-474c-810b-217934617d10.jpg?v=1583215730","\/\/discoverdevice.com\/cdn\/shop\/products\/Discover_Platinum_Conventional_Tattoo_Needles_1_9aa23005-568a-4654-bae5-8b4de631505d.jpg?v=1583215671","\/\/discoverdevice.com\/cdn\/shop\/products\/Discover_Platinum_Conventional_Tattoo_Needles_2_d6849bc5-2e6e-460d-a087-cb5074513e93.jpg?v=1583215669","\/\/discoverdevice.com\/cdn\/shop\/products\/Discover_Platinum_Conventional_Tattoo_Needles_3_9d5c9882-05b1-4b1a-9333-66a9da000b46.jpg?v=1583215669"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/0.35RLH.jpg?v=1583215730","options":["Item"],"media":[{"alt":null,"id":6343138279526,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/0.35RLH.jpg?v=1583215730"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/0.35RLH.jpg?v=1583215730","width":1000},{"alt":null,"id":6343138312294,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/DISCOVER_DEVICE_NEEDLES_5d339e6a-abbd-474c-810b-217934617d10.jpg?v=1583215730"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/DISCOVER_DEVICE_NEEDLES_5d339e6a-abbd-474c-810b-217934617d10.jpg?v=1583215730","width":1000},{"alt":null,"id":6343138345062,"position":3,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Discover_Platinum_Conventional_Tattoo_Needles_1_9aa23005-568a-4654-bae5-8b4de631505d.jpg?v=1583215671"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Discover_Platinum_Conventional_Tattoo_Needles_1_9aa23005-568a-4654-bae5-8b4de631505d.jpg?v=1583215671","width":800},{"alt":null,"id":6343138377830,"position":4,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Discover_Platinum_Conventional_Tattoo_Needles_2_d6849bc5-2e6e-460d-a087-cb5074513e93.jpg?v=1583215669"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Discover_Platinum_Conventional_Tattoo_Needles_2_d6849bc5-2e6e-460d-a087-cb5074513e93.jpg?v=1583215669","width":800},{"alt":null,"id":6343138443366,"position":5,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Discover_Platinum_Conventional_Tattoo_Needles_3_9d5c9882-05b1-4b1a-9333-66a9da000b46.jpg?v=1583215669"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Discover_Platinum_Conventional_Tattoo_Needles_3_9d5c9882-05b1-4b1a-9333-66a9da000b46.jpg?v=1583215669","width":800}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cstrong\u003eThe Discover Tattoo Needles\u003c\/strong\u003e are made with Passion and Love for Tattoo Art. \u003cbr\u003eThey are available in Standard and Bugpin,textured ,a full line of configurations to achieve all artworks.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eDiscover Tattoo Needles\u003c\/strong\u003e are strictly inspected and selected to be super evenly soldered,strong sharpness,hardness and super consistency taper.\u003cbr\u003e\u003cbr\u003e\n\u003cdiv style=\"text-align: left;\" data-mce-fragment=\"1\" data-mce-style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/RL_5_480x480.jpg?v=1662355968\" alt=\"\" style=\"float: none;\" data-mce-fragment=\"1\" data-mce-style=\"float: none;\" data-mce-src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/RL_5_480x480.jpg?v=1662355968\"\u003e\u003c\/div\u003e\n\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eMade from medical stainless steel.\u003c\/li\u003e\n\u003cli\u003eNeedles are strictly inspected and selected to be consistent taper,strong hard sharpness.\u003c\/li\u003e\n\u003cli\u003eEvenly strong soldered.\u003c\/li\u003e\n\u003cli\u003eLowest throwaway rate.\u003c\/li\u003e\n\u003cli\u003eBlister individually packaged, and sterilized by E.O. Gas indicator\u003c\/li\u003e\n\u003cli\u003eDiameter: 0.35mm (#12)\u003c\/li\u003e\n\u003cli\u003eTaper: Long Taper\u003c\/li\u003e\n\u003cli\u003eDiameter available by 0.25, 0.30,0.35, 0.40mm (#08,#10,#12,#14)\u003c\/li\u003e\n\u003cli\u003eItem available: 1205RLH,1207RLH,1209RLH,1211RLH,1214RLH\u003c\/li\u003e\n\u003cli\u003ePacking:50pcs per box\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\u003cspan style=\"color: #ff2a00;\"\u003e\u003cstrong\u003eDiscover Your Craft.\u003c\/strong\u003e\u003c\/span\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-4668761571430 .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-4668761571430", { 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-4668761571430-' + 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-4668761571430 .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.quickshopOptionsMap4668761571430 = {}; Shopify.quickshopLinkOptionSelectors4668761571430(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });