Shopify.quickshopOptionsMap4911507439718 = {};
Shopify.quickshopUpdateOptionsInSelector4911507439718 = function(selectorIndex) {
switch (selectorIndex) {
case 0:
var key = 'root';
var selector = jQuery('#product-form-quick-4911507439718 .single-option-selector:eq(0)');
break;
case 1:
var key = jQuery('#product-form-quick-4911507439718 .single-option-selector:eq(0)').val();
var selector = jQuery('#product-form-quick-4911507439718 .single-option-selector:eq(1)');
break;
case 2:
var key = jQuery('#product-form-quick-4911507439718 .single-option-selector:eq(0)').val();
key += ' / ' + jQuery('#product-form-quick-4911507439718 .single-option-selector:eq(1)').val();
var selector = jQuery('#product-form-quick-4911507439718 .single-option-selector:eq(2)');
}
var initialValue = selector.val();
selector.empty();
var availableOptions = Shopify.quickshopOptionsMap4911507439718[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-4911507439718 .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.quickshopLinkOptionSelectors4911507439718 = 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.quickshopOptionsMap4911507439718['root'] = Shopify.quickshopOptionsMap4911507439718['root'] || [];
Shopify.quickshopOptionsMap4911507439718['root'].push(variant.option1);
Shopify.quickshopOptionsMap4911507439718['root'] = Shopify.uniq(Shopify.quickshopOptionsMap4911507439718['root']);
// Gathering values for the 2nd drop-down.
if (product.options.length > 1) {
var key = variant.option1;
Shopify.quickshopOptionsMap4911507439718[key] = Shopify.quickshopOptionsMap4911507439718[key] || [];
Shopify.quickshopOptionsMap4911507439718[key].push(variant.option2);
Shopify.quickshopOptionsMap4911507439718[key] = Shopify.uniq(Shopify.quickshopOptionsMap4911507439718[key]);
}
// Gathering values for the 3rd drop-down.
if (product.options.length === 3) {
var key = variant.option1 + ' / ' + variant.option2;
Shopify.quickshopOptionsMap4911507439718[key] = Shopify.quickshopOptionsMap4911507439718[key] || [];
Shopify.quickshopOptionsMap4911507439718[key].push(variant.option3);
Shopify.quickshopOptionsMap4911507439718[key] = Shopify.uniq(Shopify.quickshopOptionsMap4911507439718[key]);
}
//}
}
// Update options right away.
Shopify.quickshopUpdateOptionsInSelector4911507439718(0);
if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector4911507439718(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4911507439718(2);
// When there is an update in the first dropdown.
jQuery("#product-form-quick-4911507439718 .single-option-selector:eq(0)").change(function() {
Shopify.quickshopUpdateOptionsInSelector4911507439718(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4911507439718(2);
return true;
});
// When there is an update in the second dropdown.
jQuery("#product-form-quick-4911507439718 .single-option-selector:eq(1)").change(function() {
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4911507439718(2);
return true;
});
};
productsObj.id4911507439718 = {"id":4911507439718,"title":"DISCOVER DEVICE® NM1 Rotary Tattoo Pen Machine 2.8mm Stroke","handle":"discover-rotary-tattoo-pen-machine","description":"\u003cp\u003eDISCOVER DEVICE tattoo pen has custom coreless motor, working at least 3,000 hours.This rotary tattoo machine simple, classic, and the most suitable machine for precise line work, black and grey shading, solid color packing. Gives a possibility to pack faster, more quality and less trauma. Perfect tool for tattoo artists. \u003cbr\u003e\u003cbr\u003eMachine had a high quality stainless steel spring inside its body mechanism. Special mechanism makes a good direct hit together with enough softness. Perfect machine for all kind of works. Lining, fine dotwork, color parcking, shading, black and grey realistic.\u003cbr\u003e\u003cbr\u003eTested lots of times and use polymer materials RCA jack. Compatible \u003cbr\u003ewith all standard tattoo power supplies.\u003c\/p\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/1_253ff810-76f3-47bb-97e7-707370014ae8_600x600.jpg?v=1662195142\" style=\"float: none;\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/3_a42367ea-c0d9-4235-876a-cef62ed19d02_600x600.jpg?v=1662195188\" alt=\"\" style=\"float: none;\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cbr\u003e\u003c\/div\u003e\n\u003cp\u003e\u003cstrong\u003eFeatures\u003c\/strong\u003e\u003cbr\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eThis tattoo machine made for tattoo artists to travelling and needing to place easy.LED light working.\u003c\/li\u003e\n\u003cli\u003eThis tattoo machine frame part is separate with the grip. Clean the tattoo machine frame easily. And the grip is autoclavable. Seamless frame that protect the inside of the machine.\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan\u003eThe grip is safe to be sterilized in an autoclave. Rotate the grip to \u003c\/span\u003eremove it or adjust needle depth. Stroke Length: 3.5mm.Needles Depth: 0-4mm\u003c\/li\u003e\n\u003cli\u003eMachine frame are made from solid rods of high grade aluminum then polished and anodized, laser engraved logo.\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eCompatible with all standard tattoo power supplies. \u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\u003e","published_at":"2020-08-25T15:47:41+08:00","created_at":"2020-08-25T15:47:38+08:00","vendor":"Discover Device","type":"Tattoo Machine","tags":[],"price":13800,"price_min":13800,"price_max":13800,"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":32046793916518,"title":"NM1-Black-2.8mm","option1":"NM1-Black-2.8mm","option2":null,"option3":null,"sku":"8258-BK","requires_shipping":true,"taxable":false,"featured_image":{"id":15368394342502,"product_id":4911507439718,"position":9,"created_at":"2020-08-25T15:48:03+08:00","updated_at":"2022-09-03T16:55:18+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8b9cc7c9808a81fc8db0eaf67a4d79d7.jpg?v=1662195318","variant_ids":[32046793916518]},"available":true,"name":"DISCOVER DEVICE® NM1 Rotary Tattoo Pen Machine 2.8mm Stroke - NM1-Black-2.8mm","public_title":"NM1-Black-2.8mm","options":["NM1-Black-2.8mm"],"price":13800,"weight":200,"compare_at_price":null,"inventory_management":"shopify","barcode":"784633866775","featured_media":{"alt":null,"id":7543703142502,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8b9cc7c9808a81fc8db0eaf67a4d79d7.jpg?v=1662195318"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":32046793949286,"title":"NM1-Grey-2.8mm","option1":"NM1-Grey-2.8mm","option2":null,"option3":null,"sku":"8258-GY","requires_shipping":true,"taxable":false,"featured_image":{"id":15368394440806,"product_id":4911507439718,"position":10,"created_at":"2020-08-25T15:48:05+08:00","updated_at":"2022-09-03T16:55:18+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/0ec53160375b63b510abe4162c1542c9.jpg?v=1662195318","variant_ids":[32046793949286]},"available":true,"name":"DISCOVER DEVICE® NM1 Rotary Tattoo Pen Machine 2.8mm Stroke - NM1-Grey-2.8mm","public_title":"NM1-Grey-2.8mm","options":["NM1-Grey-2.8mm"],"price":13800,"weight":200,"compare_at_price":null,"inventory_management":"shopify","barcode":"784633866775","featured_media":{"alt":null,"id":7543703240806,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/0ec53160375b63b510abe4162c1542c9.jpg?v=1662195318"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/1_3f1c4a11-6b85-46ed-934e-a01675185648.jpg?v=1598342290","\/\/discoverdevice.com\/cdn\/shop\/products\/3_90ef55cb-accd-4a0a-828d-09c47173c9dd.jpg?v=1662195406","\/\/discoverdevice.com\/cdn\/shop\/products\/5_04ae9fa6-f004-487c-8e32-480ae534fd21.jpg?v=1662195318","\/\/discoverdevice.com\/cdn\/shop\/products\/4_f84ed8f0-09bd-4bdb-b4ea-f9bf529bc5ba.jpg?v=1662195318","\/\/discoverdevice.com\/cdn\/shop\/products\/3_75ddbb46-2189-4512-b802-c8788fd3d75e.jpg?v=1662195318","\/\/discoverdevice.com\/cdn\/shop\/products\/6_f5ae3942-3493-44f5-9cdf-d30fd463054b.jpg?v=1662195318","\/\/discoverdevice.com\/cdn\/shop\/products\/2_065c5db2-f507-4af4-bd64-d30df5c09738.jpg?v=1662195318","\/\/discoverdevice.com\/cdn\/shop\/products\/7_d34c604c-9a37-43c6-8719-a2787b654de6.jpg?v=1662195318","\/\/discoverdevice.com\/cdn\/shop\/products\/8b9cc7c9808a81fc8db0eaf67a4d79d7.jpg?v=1662195318","\/\/discoverdevice.com\/cdn\/shop\/products\/0ec53160375b63b510abe4162c1542c9.jpg?v=1662195318"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_3f1c4a11-6b85-46ed-934e-a01675185648.jpg?v=1598342290","options":["Color"],"media":[{"alt":null,"id":7543701438566,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_3f1c4a11-6b85-46ed-934e-a01675185648.jpg?v=1598342290"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_3f1c4a11-6b85-46ed-934e-a01675185648.jpg?v=1598342290","width":1000},{"alt":null,"id":24499134136493,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_90ef55cb-accd-4a0a-828d-09c47173c9dd.jpg?v=1662195406"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_90ef55cb-accd-4a0a-828d-09c47173c9dd.jpg?v=1662195406","width":1600},{"alt":null,"id":7543701471334,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/5_04ae9fa6-f004-487c-8e32-480ae534fd21.jpg?v=1662195318"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/5_04ae9fa6-f004-487c-8e32-480ae534fd21.jpg?v=1662195318","width":1000},{"alt":null,"id":7543701504102,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_f84ed8f0-09bd-4bdb-b4ea-f9bf529bc5ba.jpg?v=1662195318"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_f84ed8f0-09bd-4bdb-b4ea-f9bf529bc5ba.jpg?v=1662195318","width":1000},{"alt":null,"id":7543701536870,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_75ddbb46-2189-4512-b802-c8788fd3d75e.jpg?v=1662195318"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_75ddbb46-2189-4512-b802-c8788fd3d75e.jpg?v=1662195318","width":1000},{"alt":null,"id":7543701569638,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/6_f5ae3942-3493-44f5-9cdf-d30fd463054b.jpg?v=1662195318"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/6_f5ae3942-3493-44f5-9cdf-d30fd463054b.jpg?v=1662195318","width":1000},{"alt":null,"id":7543701602406,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_065c5db2-f507-4af4-bd64-d30df5c09738.jpg?v=1662195318"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_065c5db2-f507-4af4-bd64-d30df5c09738.jpg?v=1662195318","width":1000},{"alt":null,"id":7543701635174,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/7_d34c604c-9a37-43c6-8719-a2787b654de6.jpg?v=1662195318"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/7_d34c604c-9a37-43c6-8719-a2787b654de6.jpg?v=1662195318","width":1000},{"alt":null,"id":7543703142502,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8b9cc7c9808a81fc8db0eaf67a4d79d7.jpg?v=1662195318"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8b9cc7c9808a81fc8db0eaf67a4d79d7.jpg?v=1662195318","width":1000},{"alt":null,"id":7543703240806,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/0ec53160375b63b510abe4162c1542c9.jpg?v=1662195318"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/0ec53160375b63b510abe4162c1542c9.jpg?v=1662195318","width":1000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eDISCOVER DEVICE tattoo pen has custom coreless motor, working at least 3,000 hours.This rotary tattoo machine simple, classic, and the most suitable machine for precise line work, black and grey shading, solid color packing. Gives a possibility to pack faster, more quality and less trauma. Perfect tool for tattoo artists. \u003cbr\u003e\u003cbr\u003eMachine had a high quality stainless steel spring inside its body mechanism. Special mechanism makes a good direct hit together with enough softness. Perfect machine for all kind of works. Lining, fine dotwork, color parcking, shading, black and grey realistic.\u003cbr\u003e\u003cbr\u003eTested lots of times and use polymer materials RCA jack. Compatible \u003cbr\u003ewith all standard tattoo power supplies.\u003c\/p\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/1_253ff810-76f3-47bb-97e7-707370014ae8_600x600.jpg?v=1662195142\" style=\"float: none;\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/3_a42367ea-c0d9-4235-876a-cef62ed19d02_600x600.jpg?v=1662195188\" alt=\"\" style=\"float: none;\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cbr\u003e\u003c\/div\u003e\n\u003cp\u003e\u003cstrong\u003eFeatures\u003c\/strong\u003e\u003cbr\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eThis tattoo machine made for tattoo artists to travelling and needing to place easy.LED light working.\u003c\/li\u003e\n\u003cli\u003eThis tattoo machine frame part is separate with the grip. Clean the tattoo machine frame easily. And the grip is autoclavable. Seamless frame that protect the inside of the machine.\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan\u003eThe grip is safe to be sterilized in an autoclave. Rotate the grip to \u003c\/span\u003eremove it or adjust needle depth. Stroke Length: 3.5mm.Needles Depth: 0-4mm\u003c\/li\u003e\n\u003cli\u003eMachine frame are made from solid rods of high grade aluminum then polished and anodized, laser engraved logo.\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eCompatible with all standard tattoo power supplies. \u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\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-4911507439718 .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-4911507439718", {
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-4911507439718-' + i + '-' + valueHandle;
if (optionValues.indexOf(value) < 0) {
options += '