Shopify.quickshopOptionsMap4679599915110 = {};
Shopify.quickshopUpdateOptionsInSelector4679599915110 = function(selectorIndex) {
switch (selectorIndex) {
case 0:
var key = 'root';
var selector = jQuery('#product-form-quick-4679599915110 .single-option-selector:eq(0)');
break;
case 1:
var key = jQuery('#product-form-quick-4679599915110 .single-option-selector:eq(0)').val();
var selector = jQuery('#product-form-quick-4679599915110 .single-option-selector:eq(1)');
break;
case 2:
var key = jQuery('#product-form-quick-4679599915110 .single-option-selector:eq(0)').val();
key += ' / ' + jQuery('#product-form-quick-4679599915110 .single-option-selector:eq(1)').val();
var selector = jQuery('#product-form-quick-4679599915110 .single-option-selector:eq(2)');
}
var initialValue = selector.val();
selector.empty();
var availableOptions = Shopify.quickshopOptionsMap4679599915110[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-4679599915110 .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.quickshopLinkOptionSelectors4679599915110 = 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.quickshopOptionsMap4679599915110['root'] = Shopify.quickshopOptionsMap4679599915110['root'] || [];
Shopify.quickshopOptionsMap4679599915110['root'].push(variant.option1);
Shopify.quickshopOptionsMap4679599915110['root'] = Shopify.uniq(Shopify.quickshopOptionsMap4679599915110['root']);
// Gathering values for the 2nd drop-down.
if (product.options.length > 1) {
var key = variant.option1;
Shopify.quickshopOptionsMap4679599915110[key] = Shopify.quickshopOptionsMap4679599915110[key] || [];
Shopify.quickshopOptionsMap4679599915110[key].push(variant.option2);
Shopify.quickshopOptionsMap4679599915110[key] = Shopify.uniq(Shopify.quickshopOptionsMap4679599915110[key]);
}
// Gathering values for the 3rd drop-down.
if (product.options.length === 3) {
var key = variant.option1 + ' / ' + variant.option2;
Shopify.quickshopOptionsMap4679599915110[key] = Shopify.quickshopOptionsMap4679599915110[key] || [];
Shopify.quickshopOptionsMap4679599915110[key].push(variant.option3);
Shopify.quickshopOptionsMap4679599915110[key] = Shopify.uniq(Shopify.quickshopOptionsMap4679599915110[key]);
}
//}
}
// Update options right away.
Shopify.quickshopUpdateOptionsInSelector4679599915110(0);
if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector4679599915110(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4679599915110(2);
// When there is an update in the first dropdown.
jQuery("#product-form-quick-4679599915110 .single-option-selector:eq(0)").change(function() {
Shopify.quickshopUpdateOptionsInSelector4679599915110(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4679599915110(2);
return true;
});
// When there is an update in the second dropdown.
jQuery("#product-form-quick-4679599915110 .single-option-selector:eq(1)").change(function() {
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4679599915110(2);
return true;
});
};
productsObj.id4679599915110 = {"id":4679599915110,"title":"DISCOVER DEVICE® Tattoo Pen Machines 2000mAh Thunder G1","handle":"discover-device-thunder-g1-electronic-tattoo-pen-machines-2000mah","description":"\u003cp\u003e\u003cspan style=\"color: #ff2a00;\"\u003e\u003cstrong\u003eDiscover Device Thunder G1 Electronic Tattoo Pen Machines 2000mAh \u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan style=\"color: #ff8000;\"\u003e\u003cstrong\u003eFree of cables,free of creation,the Thunder G1 makes it\u003c\/strong\u003e\u003c\/span\u003e.\u003cbr\u003e\u003cstrong\u003eParameter\u003c\/strong\u003e:\u003cbr\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eSpecifications:Battery Capacity : 2000mAh\u003c\/li\u003e\n\u003cli\u003eRecharging Time : 2 hrs\u003c\/li\u003e\n\u003cli\u003ePowerpack Working time : Approx. 6 hoursOutput Voltage : 5V to 10V\u003c\/li\u003e\n\u003cli\u003eStroke Length : 3.5mm\u003c\/li\u003e\n\u003cli\u003eNeedle protrusion : 0-4.5mm\u003c\/li\u003e\n\u003cli\u003eFor lining : 7.5V-9V\u003c\/li\u003e\n\u003cli\u003eFor colour packing \/shading : 6V-8V\u003c\/li\u003e\n\u003cli\u003eRPM: 8000-10000\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eFeatures\u003c\/strong\u003e\u003cbr\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eThe Wireless Battery Pen is a revolution system designed for free tattooing.\u003c\/li\u003e\n\u003cli\u003eContinual working range for 6 hours.\u003c\/li\u003e\n\u003cli\u003eThe voltage,battery level and usage time will be shown on the LED display.\u003c\/li\u003e\n\u003cli\u003eThe voltage can be adjusted through button (+) and (-) respectively with the voltage of 0.1 V on each press.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003ePRICE includes 1pcs Wireless Battery Pen, 4pcs Pen Grips \u0026amp; 1pcs USB Charging cable\u003c\/strong\u003e\u003c\/p\u003e","published_at":"2020-03-21T15:47:46+08:00","created_at":"2020-03-21T16:10:11+08:00","vendor":"Discover Device","type":"Tattoo Machine","tags":[],"price":25895,"price_min":25895,"price_max":25895,"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":31514164396134,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"8259-BK","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Tattoo Pen Machines 2000mAh Thunder G1 - Black","public_title":"Black","options":["Black"],"price":25895,"weight":700,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396546465","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31514164428902,"title":"Red","option1":"Red","option2":null,"option3":null,"sku":"8259-RD","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Tattoo Pen Machines 2000mAh Thunder G1 - Red","public_title":"Red","options":["Red"],"price":25895,"weight":700,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396546472","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31514164461670,"title":"Silver","option1":"Silver","option2":null,"option3":null,"sku":"8259-SL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Tattoo Pen Machines 2000mAh Thunder G1 - Silver","public_title":"Silver","options":["Silver"],"price":25895,"weight":700,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396546489","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31514164494438,"title":"Rose Gold","option1":"Rose Gold","option2":null,"option3":null,"sku":"8259-RG","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Tattoo Pen Machines 2000mAh Thunder G1 - Rose Gold","public_title":"Rose Gold","options":["Rose Gold"],"price":25895,"weight":700,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396546496","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31514164527206,"title":"Gold","option1":"Gold","option2":null,"option3":null,"sku":"8259-GD","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Tattoo Pen Machines 2000mAh Thunder G1 - Gold","public_title":"Gold","options":["Gold"],"price":25895,"weight":700,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396546502","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31514164559974,"title":"Sky Blue","option1":"Sky Blue","option2":null,"option3":null,"sku":"8259-BL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"DISCOVER DEVICE® Tattoo Pen Machines 2000mAh Thunder G1 - Sky Blue","public_title":"Sky Blue","options":["Sky Blue"],"price":25895,"weight":700,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396546519","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverDevice8259.jpg?v=1584778248","\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverDevice2_0ab697ec-3eeb-45f2-b8f2-847c618ddcb5.jpg?v=1584778248","\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverThunderSeriesPens.jpg?v=1584778251"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverDevice8259.jpg?v=1584778248","options":["Color"],"media":[{"alt":null,"id":6455245406310,"position":1,"preview_image":{"aspect_ratio":1.001,"height":1079,"width":1080,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverDevice8259.jpg?v=1584778248"},"aspect_ratio":1.001,"height":1079,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverDevice8259.jpg?v=1584778248","width":1080},{"alt":null,"id":6455245439078,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverDevice2_0ab697ec-3eeb-45f2-b8f2-847c618ddcb5.jpg?v=1584778248"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverDevice2_0ab697ec-3eeb-45f2-b8f2-847c618ddcb5.jpg?v=1584778248","width":1000},{"alt":null,"id":6455245471846,"position":3,"preview_image":{"aspect_ratio":1.386,"height":1847,"width":2560,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverThunderSeriesPens.jpg?v=1584778251"},"aspect_ratio":1.386,"height":1847,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/DiscoverThunderSeriesPens.jpg?v=1584778251","width":2560}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cspan style=\"color: #ff2a00;\"\u003e\u003cstrong\u003eDiscover Device Thunder G1 Electronic Tattoo Pen Machines 2000mAh \u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan style=\"color: #ff8000;\"\u003e\u003cstrong\u003eFree of cables,free of creation,the Thunder G1 makes it\u003c\/strong\u003e\u003c\/span\u003e.\u003cbr\u003e\u003cstrong\u003eParameter\u003c\/strong\u003e:\u003cbr\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eSpecifications:Battery Capacity : 2000mAh\u003c\/li\u003e\n\u003cli\u003eRecharging Time : 2 hrs\u003c\/li\u003e\n\u003cli\u003ePowerpack Working time : Approx. 6 hoursOutput Voltage : 5V to 10V\u003c\/li\u003e\n\u003cli\u003eStroke Length : 3.5mm\u003c\/li\u003e\n\u003cli\u003eNeedle protrusion : 0-4.5mm\u003c\/li\u003e\n\u003cli\u003eFor lining : 7.5V-9V\u003c\/li\u003e\n\u003cli\u003eFor colour packing \/shading : 6V-8V\u003c\/li\u003e\n\u003cli\u003eRPM: 8000-10000\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eFeatures\u003c\/strong\u003e\u003cbr\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eThe Wireless Battery Pen is a revolution system designed for free tattooing.\u003c\/li\u003e\n\u003cli\u003eContinual working range for 6 hours.\u003c\/li\u003e\n\u003cli\u003eThe voltage,battery level and usage time will be shown on the LED display.\u003c\/li\u003e\n\u003cli\u003eThe voltage can be adjusted through button (+) and (-) respectively with the voltage of 0.1 V on each press.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003ePRICE includes 1pcs Wireless Battery Pen, 4pcs Pen Grips \u0026amp; 1pcs USB Charging cable\u003c\/strong\u003e\u003c\/p\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-4679599915110 .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-4679599915110", {
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-4679599915110-' + i + '-' + valueHandle;
if (optionValues.indexOf(value) < 0) {
options += '