Shopify.quickshopOptionsMap7944715993261 = {};
Shopify.quickshopUpdateOptionsInSelector7944715993261 = function(selectorIndex) {
switch (selectorIndex) {
case 0:
var key = 'root';
var selector = jQuery('#product-form-quick-7944715993261 .single-option-selector:eq(0)');
break;
case 1:
var key = jQuery('#product-form-quick-7944715993261 .single-option-selector:eq(0)').val();
var selector = jQuery('#product-form-quick-7944715993261 .single-option-selector:eq(1)');
break;
case 2:
var key = jQuery('#product-form-quick-7944715993261 .single-option-selector:eq(0)').val();
key += ' / ' + jQuery('#product-form-quick-7944715993261 .single-option-selector:eq(1)').val();
var selector = jQuery('#product-form-quick-7944715993261 .single-option-selector:eq(2)');
}
var initialValue = selector.val();
selector.empty();
var availableOptions = Shopify.quickshopOptionsMap7944715993261[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-7944715993261 .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.quickshopLinkOptionSelectors7944715993261 = 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.quickshopOptionsMap7944715993261['root'] = Shopify.quickshopOptionsMap7944715993261['root'] || [];
Shopify.quickshopOptionsMap7944715993261['root'].push(variant.option1);
Shopify.quickshopOptionsMap7944715993261['root'] = Shopify.uniq(Shopify.quickshopOptionsMap7944715993261['root']);
// Gathering values for the 2nd drop-down.
if (product.options.length > 1) {
var key = variant.option1;
Shopify.quickshopOptionsMap7944715993261[key] = Shopify.quickshopOptionsMap7944715993261[key] || [];
Shopify.quickshopOptionsMap7944715993261[key].push(variant.option2);
Shopify.quickshopOptionsMap7944715993261[key] = Shopify.uniq(Shopify.quickshopOptionsMap7944715993261[key]);
}
// Gathering values for the 3rd drop-down.
if (product.options.length === 3) {
var key = variant.option1 + ' / ' + variant.option2;
Shopify.quickshopOptionsMap7944715993261[key] = Shopify.quickshopOptionsMap7944715993261[key] || [];
Shopify.quickshopOptionsMap7944715993261[key].push(variant.option3);
Shopify.quickshopOptionsMap7944715993261[key] = Shopify.uniq(Shopify.quickshopOptionsMap7944715993261[key]);
}
//}
}
// Update options right away.
Shopify.quickshopUpdateOptionsInSelector7944715993261(0);
if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector7944715993261(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7944715993261(2);
// When there is an update in the first dropdown.
jQuery("#product-form-quick-7944715993261 .single-option-selector:eq(0)").change(function() {
Shopify.quickshopUpdateOptionsInSelector7944715993261(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7944715993261(2);
return true;
});
// When there is an update in the second dropdown.
jQuery("#product-form-quick-7944715993261 .single-option-selector:eq(1)").change(function() {
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector7944715993261(2);
return true;
});
};
productsObj.id7944715993261 = {"id":7944715993261,"title":"Arcylic Tattoo Pen Holder Stand 4 piece","handle":"arcylic-tattoo-pen-holder-stand-4-piece","description":"\u003cp\u003e\u003cspan data-spm-anchor-id=\"a2g0o.detail.1000023.i1.31db0VUN0VUN9a\"\u003eTattoo Pen Holder Stand for Rotary Tattoo Gun Machine Tool Display Stand Tray Frame Rack Rest Support Organizer\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eDimension:15*5.5*1cm\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eMaterial:Acrylic\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003ePackage Included:\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e4 Pcs\/6 Pcs X Tattoo Machine Bracket(not Including Other Demo Products)\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eNote:\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e1. The Actual Color of the Item May Be Slightly Different from the Picture Displayed on the Website.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eCaused by Many Factors, Such As Display Brightness and Light Brightness.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-spm-anchor-id=\"a2g0o.detail.1000023.i0.31db0VUN0VUN9a\"\u003e\u003cspan\u003e2. Please Allow 1-5mm Hand Measurement Error.\u003c\/span\u003e\u003c\/p\u003e","published_at":"2024-10-31T16:09:38+08:00","created_at":"2024-10-31T16:09:38+08:00","vendor":"Discover Device","type":"Tattoo Accessories","tags":[],"price":1900,"price_min":1900,"price_max":2800,"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":43900963848365,"title":"4PCS","option1":"4PCS","option2":null,"option3":null,"sku":"PH-1555-4","requires_shipping":true,"taxable":false,"featured_image":{"id":35980562399405,"product_id":7944715993261,"position":6,"created_at":"2024-10-31T16:19:45+08:00","updated_at":"2024-11-01T05:58:45+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_16638d63-aa8e-4641-9fec-cc1a937c6225.jpg?v=1730411925","variant_ids":[43900963848365,43900963881133]},"available":true,"name":"Arcylic Tattoo Pen Holder Stand 4 piece - 4PCS","public_title":"4PCS","options":["4PCS"],"price":1900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"768172203079","featured_media":{"alt":null,"id":28181477195949,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_16638d63-aa8e-4641-9fec-cc1a937c6225.jpg?v=1730411925"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":43900963881133,"title":"6PCS","option1":"6PCS","option2":null,"option3":null,"sku":"PH-1555-6","requires_shipping":true,"taxable":false,"featured_image":{"id":35980562399405,"product_id":7944715993261,"position":6,"created_at":"2024-10-31T16:19:45+08:00","updated_at":"2024-11-01T05:58:45+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_16638d63-aa8e-4641-9fec-cc1a937c6225.jpg?v=1730411925","variant_ids":[43900963848365,43900963881133]},"available":true,"name":"Arcylic Tattoo Pen Holder Stand 4 piece - 6PCS","public_title":"6PCS","options":["6PCS"],"price":2800,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"768172203086","featured_media":{"alt":null,"id":28181477195949,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_16638d63-aa8e-4641-9fec-cc1a937c6225.jpg?v=1730411925"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_18d22af3-a002-41c7-a23b-e6a78544c941.jpg?v=1730412158","\/\/discoverdevice.com\/cdn\/shop\/files\/1_414cac5e-0189-40a8-8817-47e81486ff5e.jpg?v=1730411948","\/\/discoverdevice.com\/cdn\/shop\/files\/2_69b0ca77-1af3-406e-a56f-e1f871f2495c.jpg?v=1730411943","\/\/discoverdevice.com\/cdn\/shop\/files\/3_e9450a63-cc1a-42ce-9e14-58a6b9e518bd.jpg?v=1730411937","\/\/discoverdevice.com\/cdn\/shop\/files\/4_427e1ccc-f6ea-4ecf-97d2-02e74d000b11.jpg?v=1730411931","\/\/discoverdevice.com\/cdn\/shop\/files\/4_16638d63-aa8e-4641-9fec-cc1a937c6225.jpg?v=1730411925","\/\/discoverdevice.com\/cdn\/shop\/files\/6_0c7885f3-a7b9-4959-bf99-cda5c7e1699c.jpg?v=1730411917"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_18d22af3-a002-41c7-a23b-e6a78544c941.jpg?v=1730412158","options":["QTY"],"media":[{"alt":null,"id":28181427617965,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_18d22af3-a002-41c7-a23b-e6a78544c941.jpg?v=1730412158"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6391ace427ade714b70fb966024ae804_18d22af3-a002-41c7-a23b-e6a78544c941.jpg?v=1730412158","width":1600},{"alt":null,"id":28181427486893,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1_414cac5e-0189-40a8-8817-47e81486ff5e.jpg?v=1730411948"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1_414cac5e-0189-40a8-8817-47e81486ff5e.jpg?v=1730411948","width":1600},{"alt":null,"id":28181427519661,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2_69b0ca77-1af3-406e-a56f-e1f871f2495c.jpg?v=1730411943"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2_69b0ca77-1af3-406e-a56f-e1f871f2495c.jpg?v=1730411943","width":1600},{"alt":null,"id":28181427552429,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3_e9450a63-cc1a-42ce-9e14-58a6b9e518bd.jpg?v=1730411937"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3_e9450a63-cc1a-42ce-9e14-58a6b9e518bd.jpg?v=1730411937","width":1600},{"alt":null,"id":28181427585197,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_427e1ccc-f6ea-4ecf-97d2-02e74d000b11.jpg?v=1730411931"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_427e1ccc-f6ea-4ecf-97d2-02e74d000b11.jpg?v=1730411931","width":1600},{"alt":null,"id":28181477195949,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_16638d63-aa8e-4641-9fec-cc1a937c6225.jpg?v=1730411925"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_16638d63-aa8e-4641-9fec-cc1a937c6225.jpg?v=1730411925","width":1600},{"alt":null,"id":28181479784621,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6_0c7885f3-a7b9-4959-bf99-cda5c7e1699c.jpg?v=1730411917"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/6_0c7885f3-a7b9-4959-bf99-cda5c7e1699c.jpg?v=1730411917","width":1600}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cspan data-spm-anchor-id=\"a2g0o.detail.1000023.i1.31db0VUN0VUN9a\"\u003eTattoo Pen Holder Stand for Rotary Tattoo Gun Machine Tool Display Stand Tray Frame Rack Rest Support Organizer\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eDimension:15*5.5*1cm\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eMaterial:Acrylic\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003ePackage Included:\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e4 Pcs\/6 Pcs X Tattoo Machine Bracket(not Including Other Demo Products)\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eNote:\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e1. The Actual Color of the Item May Be Slightly Different from the Picture Displayed on the Website.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eCaused by Many Factors, Such As Display Brightness and Light Brightness.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-spm-anchor-id=\"a2g0o.detail.1000023.i0.31db0VUN0VUN9a\"\u003e\u003cspan\u003e2. Please Allow 1-5mm Hand Measurement Error.\u003c\/span\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-7944715993261 .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-7944715993261", {
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-7944715993261-' + i + '-' + valueHandle;
if (optionValues.indexOf(value) < 0) {
options += '