Shopify.quickshopOptionsMap4647007223910 = {};
Shopify.quickshopUpdateOptionsInSelector4647007223910 = function(selectorIndex) {
switch (selectorIndex) {
case 0:
var key = 'root';
var selector = jQuery('#product-form-quick-4647007223910 .single-option-selector:eq(0)');
break;
case 1:
var key = jQuery('#product-form-quick-4647007223910 .single-option-selector:eq(0)').val();
var selector = jQuery('#product-form-quick-4647007223910 .single-option-selector:eq(1)');
break;
case 2:
var key = jQuery('#product-form-quick-4647007223910 .single-option-selector:eq(0)').val();
key += ' / ' + jQuery('#product-form-quick-4647007223910 .single-option-selector:eq(1)').val();
var selector = jQuery('#product-form-quick-4647007223910 .single-option-selector:eq(2)');
}
var initialValue = selector.val();
selector.empty();
var availableOptions = Shopify.quickshopOptionsMap4647007223910[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-4647007223910 .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.quickshopLinkOptionSelectors4647007223910 = 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.quickshopOptionsMap4647007223910['root'] = Shopify.quickshopOptionsMap4647007223910['root'] || [];
Shopify.quickshopOptionsMap4647007223910['root'].push(variant.option1);
Shopify.quickshopOptionsMap4647007223910['root'] = Shopify.uniq(Shopify.quickshopOptionsMap4647007223910['root']);
// Gathering values for the 2nd drop-down.
if (product.options.length > 1) {
var key = variant.option1;
Shopify.quickshopOptionsMap4647007223910[key] = Shopify.quickshopOptionsMap4647007223910[key] || [];
Shopify.quickshopOptionsMap4647007223910[key].push(variant.option2);
Shopify.quickshopOptionsMap4647007223910[key] = Shopify.uniq(Shopify.quickshopOptionsMap4647007223910[key]);
}
// Gathering values for the 3rd drop-down.
if (product.options.length === 3) {
var key = variant.option1 + ' / ' + variant.option2;
Shopify.quickshopOptionsMap4647007223910[key] = Shopify.quickshopOptionsMap4647007223910[key] || [];
Shopify.quickshopOptionsMap4647007223910[key].push(variant.option3);
Shopify.quickshopOptionsMap4647007223910[key] = Shopify.uniq(Shopify.quickshopOptionsMap4647007223910[key]);
}
//}
}
// Update options right away.
Shopify.quickshopUpdateOptionsInSelector4647007223910(0);
if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector4647007223910(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4647007223910(2);
// When there is an update in the first dropdown.
jQuery("#product-form-quick-4647007223910 .single-option-selector:eq(0)").change(function() {
Shopify.quickshopUpdateOptionsInSelector4647007223910(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4647007223910(2);
return true;
});
// When there is an update in the second dropdown.
jQuery("#product-form-quick-4647007223910 .single-option-selector:eq(1)").change(function() {
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4647007223910(2);
return true;
});
};
productsObj.id4647007223910 = {"id":4647007223910,"title":"DISCOVER DEVICE® Cushion Cartridge Needle 0.35mm Round Liner Box of 10pcs","handle":"discover-cushion-cartridge-needle-0-35mm-round-liner-box-of-10pcs","description":"Discover Cushion Cartridge System featured with a soft rubber cushion that \u003cstrong\u003efits cheyenne cartridge needles.\u003c\/strong\u003e\u003cbr\u003e10pcs per pack and pre-sterilized by E.O.gas.\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\/970x600banner.jpg?v=1662357495\" 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\/970x600banner.jpg?v=1662357495\"\u003e\u003c\/div\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\/banner2.jpg?v=1662100544\" 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\/banner2.jpg?v=1662100544\"\u003e\u003c\/div\u003e\n\u003cbr\u003e\u003cstrong\u003eItem Details\u003c\/strong\u003e\u003cbr\u003e1.made of medical grade of plastic and stainless steel.\u003cbr\u003e2.0.35mm single needles with long taper.Used for bold outline tattoo works.\u003cbr\u003e3.sizes available by \u003cstrong\u003e1201RL,1203RL,1205RL,1207RL,1209RL,1211RL,1214RL (0.35mm).\u003c\/strong\u003e\u003cbr\u003e4.sterilized by E.O. gas.\u003cbr\u003e5.box of 10pcs.\u003cbr\u003e6.the cushion enlarges the outer diameter of needle cartridge and make it more fit with the pen.\u003cbr\u003e7.cushion come with anti-skid groove desing,that features with shock absorption and reduce fatigue.","published_at":"2020-02-27T15:59:09+08:00","created_at":"2020-02-27T16:27:16+08:00","vendor":"Discover Device","type":"Tattoo Needle Cartridge","tags":["TATTOO CATRIDGE NEEDLE"],"price":1300,"price_min":1300,"price_max":1600,"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":31460695408742,"title":"1201RL","option1":"1201RL","option2":null,"option3":null,"sku":"CC1201RL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Cushion Cartridge Needle 0.35mm Round Liner Box of 10pcs - 1201RL","public_title":"1201RL","options":["1201RL"],"price":1300,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31460695441510,"title":"1203RL","option1":"1203RL","option2":null,"option3":null,"sku":"CC1203RL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Cushion Cartridge Needle 0.35mm Round Liner Box of 10pcs - 1203RL","public_title":"1203RL","options":["1203RL"],"price":1400,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31460695474278,"title":"1205RL","option1":"1205RL","option2":null,"option3":null,"sku":"CC1205RL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Cushion Cartridge Needle 0.35mm Round Liner Box of 10pcs - 1205RL","public_title":"1205RL","options":["1205RL"],"price":1400,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31460695507046,"title":"1207RL","option1":"1207RL","option2":null,"option3":null,"sku":"CC1207RL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Cushion Cartridge Needle 0.35mm Round Liner Box of 10pcs - 1207RL","public_title":"1207RL","options":["1207RL"],"price":1400,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31460695539814,"title":"1209RL","option1":"1209RL","option2":null,"option3":null,"sku":"CC1209RL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Cushion Cartridge Needle 0.35mm Round Liner Box of 10pcs - 1209RL","public_title":"1209RL","options":["1209RL"],"price":1400,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31460695572582,"title":"1211RL","option1":"1211RL","option2":null,"option3":null,"sku":"CC1211RL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Cushion Cartridge Needle 0.35mm Round Liner Box of 10pcs - 1211RL","public_title":"1211RL","options":["1211RL"],"price":1600,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31460695605350,"title":"1214RL","option1":"1214RL","option2":null,"option3":null,"sku":"CC1214RL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Cushion Cartridge Needle 0.35mm Round Liner Box of 10pcs - 1214RL","public_title":"1214RL","options":["1214RL"],"price":1600,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/1_de218946-54ee-4333-8750-36142381a9d5.jpg?v=1582792059","\/\/discoverdevice.com\/cdn\/shop\/products\/2_1dddb6f2-32e3-47e7-a387-526935b660aa.jpg?v=1582792058","\/\/discoverdevice.com\/cdn\/shop\/products\/3_5096c10a-fe21-4b0b-b04f-317f8400c170.jpg?v=1582792058"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_de218946-54ee-4333-8750-36142381a9d5.jpg?v=1582792059","options":["Item"],"media":[{"alt":null,"id":6308432642150,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_de218946-54ee-4333-8750-36142381a9d5.jpg?v=1582792059"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_de218946-54ee-4333-8750-36142381a9d5.jpg?v=1582792059","width":1000},{"alt":null,"id":6308432674918,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_1dddb6f2-32e3-47e7-a387-526935b660aa.jpg?v=1582792058"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_1dddb6f2-32e3-47e7-a387-526935b660aa.jpg?v=1582792058","width":1000},{"alt":null,"id":6308432707686,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_5096c10a-fe21-4b0b-b04f-317f8400c170.jpg?v=1582792058"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_5096c10a-fe21-4b0b-b04f-317f8400c170.jpg?v=1582792058","width":1000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"Discover Cushion Cartridge System featured with a soft rubber cushion that \u003cstrong\u003efits cheyenne cartridge needles.\u003c\/strong\u003e\u003cbr\u003e10pcs per pack and pre-sterilized by E.O.gas.\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\/970x600banner.jpg?v=1662357495\" 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\/970x600banner.jpg?v=1662357495\"\u003e\u003c\/div\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\/banner2.jpg?v=1662100544\" 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\/banner2.jpg?v=1662100544\"\u003e\u003c\/div\u003e\n\u003cbr\u003e\u003cstrong\u003eItem Details\u003c\/strong\u003e\u003cbr\u003e1.made of medical grade of plastic and stainless steel.\u003cbr\u003e2.0.35mm single needles with long taper.Used for bold outline tattoo works.\u003cbr\u003e3.sizes available by \u003cstrong\u003e1201RL,1203RL,1205RL,1207RL,1209RL,1211RL,1214RL (0.35mm).\u003c\/strong\u003e\u003cbr\u003e4.sterilized by E.O. gas.\u003cbr\u003e5.box of 10pcs.\u003cbr\u003e6.the cushion enlarges the outer diameter of needle cartridge and make it more fit with the pen.\u003cbr\u003e7.cushion come with anti-skid groove desing,that features with shock absorption and reduce fatigue."};
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-4647007223910 .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-4647007223910", {
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-4647007223910-' + i + '-' + valueHandle;
if (optionValues.indexOf(value) < 0) {
options += '