Shopify.quickshopOptionsMap4178727534646 = {}; Shopify.quickshopUpdateOptionsInSelector4178727534646 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-4178727534646 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-4178727534646 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-4178727534646 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-4178727534646 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-4178727534646 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-4178727534646 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap4178727534646[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-4178727534646 .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.quickshopLinkOptionSelectors4178727534646 = 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.quickshopOptionsMap4178727534646['root'] = Shopify.quickshopOptionsMap4178727534646['root'] || []; Shopify.quickshopOptionsMap4178727534646['root'].push(variant.option1); Shopify.quickshopOptionsMap4178727534646['root'] = Shopify.uniq(Shopify.quickshopOptionsMap4178727534646['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap4178727534646[key] = Shopify.quickshopOptionsMap4178727534646[key] || []; Shopify.quickshopOptionsMap4178727534646[key].push(variant.option2); Shopify.quickshopOptionsMap4178727534646[key] = Shopify.uniq(Shopify.quickshopOptionsMap4178727534646[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap4178727534646[key] = Shopify.quickshopOptionsMap4178727534646[key] || []; Shopify.quickshopOptionsMap4178727534646[key].push(variant.option3); Shopify.quickshopOptionsMap4178727534646[key] = Shopify.uniq(Shopify.quickshopOptionsMap4178727534646[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector4178727534646(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector4178727534646(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4178727534646(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-4178727534646 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector4178727534646(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4178727534646(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-4178727534646 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4178727534646(2); return true; }); }; productsObj.id4178727534646 = {"id":4178727534646,"title":"DISCOVER DEVICE® 1L Sharp Container Tattoo Needle Medical Waste Container 6pcs","handle":"1l-black-sharp-container-for-used-tattoo-needles","description":"\u003cstrong\u003eProduct Details\u003c\/strong\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eProduct Material: Plastic PP and PET\u003c\/li\u003e\n\u003cli\u003eNet Weight: 76g\u003c\/li\u003e\n\u003cli\u003eItem Dimension:18.5*6.1*8cm\u003c\/li\u003e\n\u003cli\u003eVolume: 1.0 L\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/IMG_7281_600x600.jpg?v=1662365895\" style=\"float: none;\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg style=\"float: none;\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/3_fc5e0dfa-bae1-4ec2-938d-d6900a3c8e0f_600x600.jpg?v=1662365942\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg style=\"float: none;\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/4_02fdf647-2ca7-45e5-878e-3e7392598f05_600x600.jpg?v=1662366007\"\u003e\u003c\/div\u003e\n\u003cstrong\u003eProduct Features\u003c\/strong\u003e\u003cbr\u003e\u003cbr\u003eContainer features built-in hub wrenches to allow one-handed, non-contact removal and disposal of needles and other sharp objects.Snap-on lids lock closed for final disposal.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eCLEAR LID\u003c\/strong\u003e - allows a view of the fill level, temporary closure for safety\u003cbr\u003eSAFE DISPOSAL - of needles, needles with syringes, or with attached tubing. Pen needles, lancets, blades (razors, scalpels, etc.) pipettes, glass slides.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003ePUNCTURE AND IMPACT RESISTANT MATERIAL\u003c\/strong\u003e - Safe to autoclave or incinerate. Meets or exceeds FDA Standards including OSHA and EPA requirements for local biohazard waste collection.\u003cbr\u003eLabeled with Biohazard warning and usage instruction on the container, no instruction sheet to lose.","published_at":"2019-10-08T21:38:06+08:00","created_at":"2019-10-08T22:08:41+08:00","vendor":"Discover Device","type":"Tattoo Accessories","tags":[],"price":4600,"price_min":4600,"price_max":4600,"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":41788850340013,"title":"BLACK-6pcs","option1":"BLACK-6pcs","option2":null,"option3":null,"sku":"2065-BK","requires_shipping":true,"taxable":false,"featured_image":{"id":12896110215222,"product_id":4178727534646,"position":6,"created_at":"2019-10-08T22:08:41+08:00","updated_at":"2022-09-05T16:16:04+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-BK.jpg?v=1662365764","variant_ids":[41788850340013]},"available":true,"name":"DISCOVER DEVICE® 1L Sharp Container Tattoo Needle Medical Waste Container 6pcs - BLACK-6pcs","public_title":"BLACK-6pcs","options":["BLACK-6pcs"],"price":4600,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":2472577859638,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-BK.jpg?v=1662365764"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":41788850372781,"title":"RED-6pcs","option1":"RED-6pcs","option2":null,"option3":null,"sku":"2065-RD","requires_shipping":true,"taxable":false,"featured_image":{"id":32193953857709,"product_id":4178727534646,"position":9,"created_at":"2022-09-05T16:15:30+08:00","updated_at":"2022-09-05T16:17:14+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-RD.jpg?v=1662365834","variant_ids":[41788850372781]},"available":true,"name":"DISCOVER DEVICE® 1L Sharp Container Tattoo Needle Medical Waste Container 6pcs - RED-6pcs","public_title":"RED-6pcs","options":["RED-6pcs"],"price":4600,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":24505181175981,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-RD.jpg?v=1662365834"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":41788850405549,"title":"YELLOW-6pcs","option1":"YELLOW-6pcs","option2":null,"option3":null,"sku":"2065-YW","requires_shipping":true,"taxable":false,"featured_image":{"id":32193953759405,"product_id":4178727534646,"position":10,"created_at":"2022-09-05T16:15:30+08:00","updated_at":"2022-09-05T16:17:10+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-YE.jpg?v=1662365830","variant_ids":[41788850405549]},"available":true,"name":"DISCOVER DEVICE® 1L Sharp Container Tattoo Needle Medical Waste Container 6pcs - YELLOW-6pcs","public_title":"YELLOW-6pcs","options":["YELLOW-6pcs"],"price":4600,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":24505181208749,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-YE.jpg?v=1662365830"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/2eb4773acbf1dddd4aa758207a6ad293.jpg?v=1662366045","\/\/discoverdevice.com\/cdn\/shop\/products\/3_632ee401-6e65-4596-a654-cd9fe552c0c7.jpg?v=1662365764","\/\/discoverdevice.com\/cdn\/shop\/products\/4_91f4d079-2cf0-4216-92af-5963571cac50.jpg?v=1662365764","\/\/discoverdevice.com\/cdn\/shop\/products\/IMG_7281.jpg?v=1662365812","\/\/discoverdevice.com\/cdn\/shop\/products\/1_2dbe7b86-d401-488c-8be2-f3c57621d984.jpg?v=1662365764","\/\/discoverdevice.com\/cdn\/shop\/products\/2065-BK.jpg?v=1662365764","\/\/discoverdevice.com\/cdn\/shop\/products\/6_75ef55bf-f0c8-43bb-af83-bb163f9d4de5.jpg?v=1662365764","\/\/discoverdevice.com\/cdn\/shop\/products\/O1CN012Li6CCzXLVWXAF9__2247709725.jpg?v=1662365804","\/\/discoverdevice.com\/cdn\/shop\/products\/2065-RD.jpg?v=1662365834","\/\/discoverdevice.com\/cdn\/shop\/products\/2065-YE.jpg?v=1662365830","\/\/discoverdevice.com\/cdn\/shop\/products\/IMG_7276.jpg?v=1662365822","\/\/discoverdevice.com\/cdn\/shop\/products\/IMG_7279.jpg?v=1662365817"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/2eb4773acbf1dddd4aa758207a6ad293.jpg?v=1662366045","options":["Color"],"media":[{"alt":null,"id":24505175867565,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2eb4773acbf1dddd4aa758207a6ad293.jpg?v=1662366045"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2eb4773acbf1dddd4aa758207a6ad293.jpg?v=1662366045","width":1600},{"alt":null,"id":2472577728566,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_632ee401-6e65-4596-a654-cd9fe552c0c7.jpg?v=1662365764"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_632ee401-6e65-4596-a654-cd9fe552c0c7.jpg?v=1662365764","width":1000},{"alt":null,"id":2472577826870,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_91f4d079-2cf0-4216-92af-5963571cac50.jpg?v=1662365764"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_91f4d079-2cf0-4216-92af-5963571cac50.jpg?v=1662365764","width":1000},{"alt":null,"id":24505181307053,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/IMG_7281.jpg?v=1662365812"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/IMG_7281.jpg?v=1662365812","width":1000},{"alt":null,"id":2472577794102,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_2dbe7b86-d401-488c-8be2-f3c57621d984.jpg?v=1662365764"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_2dbe7b86-d401-488c-8be2-f3c57621d984.jpg?v=1662365764","width":1000},{"alt":null,"id":2472577859638,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-BK.jpg?v=1662365764"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-BK.jpg?v=1662365764","width":1000},{"alt":null,"id":2472577892406,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/6_75ef55bf-f0c8-43bb-af83-bb163f9d4de5.jpg?v=1662365764"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/6_75ef55bf-f0c8-43bb-af83-bb163f9d4de5.jpg?v=1662365764","width":1000},{"alt":null,"id":24505181339821,"position":8,"preview_image":{"aspect_ratio":1.0,"height":750,"width":750,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/O1CN012Li6CCzXLVWXAF9__2247709725.jpg?v=1662365804"},"aspect_ratio":1.0,"height":750,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/O1CN012Li6CCzXLVWXAF9__2247709725.jpg?v=1662365804","width":750},{"alt":null,"id":24505181175981,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-RD.jpg?v=1662365834"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-RD.jpg?v=1662365834","width":1000},{"alt":null,"id":24505181208749,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-YE.jpg?v=1662365830"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2065-YE.jpg?v=1662365830","width":1000},{"alt":null,"id":24505181241517,"position":11,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/IMG_7276.jpg?v=1662365822"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/IMG_7276.jpg?v=1662365822","width":1000},{"alt":null,"id":24505181274285,"position":12,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/IMG_7279.jpg?v=1662365817"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/IMG_7279.jpg?v=1662365817","width":1000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cstrong\u003eProduct Details\u003c\/strong\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eProduct Material: Plastic PP and PET\u003c\/li\u003e\n\u003cli\u003eNet Weight: 76g\u003c\/li\u003e\n\u003cli\u003eItem Dimension:18.5*6.1*8cm\u003c\/li\u003e\n\u003cli\u003eVolume: 1.0 L\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/IMG_7281_600x600.jpg?v=1662365895\" style=\"float: none;\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg style=\"float: none;\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/3_fc5e0dfa-bae1-4ec2-938d-d6900a3c8e0f_600x600.jpg?v=1662365942\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg style=\"float: none;\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/4_02fdf647-2ca7-45e5-878e-3e7392598f05_600x600.jpg?v=1662366007\"\u003e\u003c\/div\u003e\n\u003cstrong\u003eProduct Features\u003c\/strong\u003e\u003cbr\u003e\u003cbr\u003eContainer features built-in hub wrenches to allow one-handed, non-contact removal and disposal of needles and other sharp objects.Snap-on lids lock closed for final disposal.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eCLEAR LID\u003c\/strong\u003e - allows a view of the fill level, temporary closure for safety\u003cbr\u003eSAFE DISPOSAL - of needles, needles with syringes, or with attached tubing. Pen needles, lancets, blades (razors, scalpels, etc.) pipettes, glass slides.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003ePUNCTURE AND IMPACT RESISTANT MATERIAL\u003c\/strong\u003e - Safe to autoclave or incinerate. Meets or exceeds FDA Standards including OSHA and EPA requirements for local biohazard waste collection.\u003cbr\u003eLabeled with Biohazard warning and usage instruction on the container, no instruction sheet to lose."}; 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-4178727534646 .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-4178727534646", { 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-4178727534646-' + 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-4178727534646 .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.quickshopOptionsMap4178727534646 = {}; Shopify.quickshopLinkOptionSelectors4178727534646(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });