Shopify.quickshopOptionsMap8453960040621 = {};
Shopify.quickshopUpdateOptionsInSelector8453960040621 = function(selectorIndex) {
switch (selectorIndex) {
case 0:
var key = 'root';
var selector = jQuery('#product-form-quick-8453960040621 .single-option-selector:eq(0)');
break;
case 1:
var key = jQuery('#product-form-quick-8453960040621 .single-option-selector:eq(0)').val();
var selector = jQuery('#product-form-quick-8453960040621 .single-option-selector:eq(1)');
break;
case 2:
var key = jQuery('#product-form-quick-8453960040621 .single-option-selector:eq(0)').val();
key += ' / ' + jQuery('#product-form-quick-8453960040621 .single-option-selector:eq(1)').val();
var selector = jQuery('#product-form-quick-8453960040621 .single-option-selector:eq(2)');
}
var initialValue = selector.val();
selector.empty();
var availableOptions = Shopify.quickshopOptionsMap8453960040621[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-8453960040621 .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.quickshopLinkOptionSelectors8453960040621 = 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.quickshopOptionsMap8453960040621['root'] = Shopify.quickshopOptionsMap8453960040621['root'] || [];
Shopify.quickshopOptionsMap8453960040621['root'].push(variant.option1);
Shopify.quickshopOptionsMap8453960040621['root'] = Shopify.uniq(Shopify.quickshopOptionsMap8453960040621['root']);
// Gathering values for the 2nd drop-down.
if (product.options.length > 1) {
var key = variant.option1;
Shopify.quickshopOptionsMap8453960040621[key] = Shopify.quickshopOptionsMap8453960040621[key] || [];
Shopify.quickshopOptionsMap8453960040621[key].push(variant.option2);
Shopify.quickshopOptionsMap8453960040621[key] = Shopify.uniq(Shopify.quickshopOptionsMap8453960040621[key]);
}
// Gathering values for the 3rd drop-down.
if (product.options.length === 3) {
var key = variant.option1 + ' / ' + variant.option2;
Shopify.quickshopOptionsMap8453960040621[key] = Shopify.quickshopOptionsMap8453960040621[key] || [];
Shopify.quickshopOptionsMap8453960040621[key].push(variant.option3);
Shopify.quickshopOptionsMap8453960040621[key] = Shopify.uniq(Shopify.quickshopOptionsMap8453960040621[key]);
}
//}
}
// Update options right away.
Shopify.quickshopUpdateOptionsInSelector8453960040621(0);
if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector8453960040621(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8453960040621(2);
// When there is an update in the first dropdown.
jQuery("#product-form-quick-8453960040621 .single-option-selector:eq(0)").change(function() {
Shopify.quickshopUpdateOptionsInSelector8453960040621(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8453960040621(2);
return true;
});
// When there is an update in the second dropdown.
jQuery("#product-form-quick-8453960040621 .single-option-selector:eq(1)").change(function() {
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8453960040621(2);
return true;
});
};
productsObj.id8453960040621 = {"id":8453960040621,"title":"360° Classic Metal Tattoo Foot Pedal Switch 1213","handle":"360-classic-metal-tattoo-toot-pedal-switch","description":"\u003cp\u003e\u003cstrong\u003e360° Classic Metal Tattoo Foot Pedal Switch 1213\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eSize:95 mm×95 mm\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSpecifications\u003c\/strong\u003e\u003cbr\u003eName: Universal Plug Foot Pedal\u003cbr\u003ePlug Type: Metal Plug\u003cbr\u003eCable Length: 1.5 m Silicone Cable\u003cbr\u003eMaterial: Metal\u003cbr\u003eWeight: Approx. 282 g\u003cbr\u003eDimensions: 95 × 95 × 31 mm\u003cbr\u003eColors: Black, Red, Green, Blue\u003c\/p\u003e\n\u003cp\u003eThe universal plug foot pedal is compatible with most tattoo power supplies.\u003cbr\u003eThe connector uses a high-elastic spring design to effectively prevent cable breakage.\u003cbr\u003e360-degree full-contact triggering ensures high sensitivity.\u003cbr\u003eLight pressure is required for operation, providing stable and efficient performance.\u003cbr\u003eA special anti-slip pad allows the pedal to maintain firm contact with the ground, enhancing stability and work efficiency during use.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eNote\u003c\/strong\u003e\u003cbr\u003eProduct dimensions and weight are measured manually and may vary slightly. Please refer to the actual product received.\u003c\/p\u003e","published_at":"2025-12-30T15:01:57+08:00","created_at":"2025-12-30T15:01:56+08:00","vendor":"Discover Device","type":"Tattoo Power Supply","tags":[],"price":2600,"price_min":2600,"price_max":2600,"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":45521680662701,"title":"Blue","option1":"Blue","option2":null,"option3":null,"sku":"1213-BL","requires_shipping":true,"taxable":true,"featured_image":{"id":38924858294445,"product_id":8453960040621,"position":1,"created_at":"2025-12-30T15:05:42+08:00","updated_at":"2025-12-30T15:05:43+08:00","alt":null,"width":800,"height":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1213-BL_360_35.webp?v=1767078343","variant_ids":[45521680662701]},"available":true,"name":"360° Classic Metal Tattoo Foot Pedal Switch 1213 - Blue","public_title":"Blue","options":["Blue"],"price":2600,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":30404088955053,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1213-BL_360_35.webp?v=1767078343"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45521680695469,"title":"Green","option1":"Green","option2":null,"option3":null,"sku":"1213-GR","requires_shipping":true,"taxable":true,"featured_image":{"id":38924858327213,"product_id":8453960040621,"position":3,"created_at":"2025-12-30T15:05:42+08:00","updated_at":"2025-12-30T15:13:06+08:00","alt":null,"width":800,"height":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1213-GN_360_35.webp?v=1767078786","variant_ids":[45521680695469]},"available":true,"name":"360° Classic Metal Tattoo Foot Pedal Switch 1213 - Green","public_title":"Green","options":["Green"],"price":2600,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":30404088987821,"position":3,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1213-GN_360_35.webp?v=1767078786"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/files\/1213-BL_360_35.webp?v=1767078343","\/\/discoverdevice.com\/cdn\/shop\/files\/IMG_5329.webp?v=1767078786","\/\/discoverdevice.com\/cdn\/shop\/files\/1213-GN_360_35.webp?v=1767078786","\/\/discoverdevice.com\/cdn\/shop\/files\/111.webp?v=1767078797","\/\/discoverdevice.com\/cdn\/shop\/files\/222.webp?v=1767078798","\/\/discoverdevice.com\/cdn\/shop\/files\/333.webp?v=1767078798"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/files\/1213-BL_360_35.webp?v=1767078343","options":["Color"],"media":[{"alt":null,"id":30404088955053,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1213-BL_360_35.webp?v=1767078343"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1213-BL_360_35.webp?v=1767078343","width":800},{"alt":null,"id":30404089020589,"position":2,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/IMG_5329.webp?v=1767078786"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/IMG_5329.webp?v=1767078786","width":800},{"alt":null,"id":30404088987821,"position":3,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1213-GN_360_35.webp?v=1767078786"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/1213-GN_360_35.webp?v=1767078786","width":800},{"alt":null,"id":30404092559533,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/111.webp?v=1767078797"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/111.webp?v=1767078797","width":1600},{"alt":null,"id":30404092592301,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/222.webp?v=1767078798"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/222.webp?v=1767078798","width":1600},{"alt":null,"id":30404092526765,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/333.webp?v=1767078798"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/333.webp?v=1767078798","width":1600}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003e360° Classic Metal Tattoo Foot Pedal Switch 1213\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eSize:95 mm×95 mm\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSpecifications\u003c\/strong\u003e\u003cbr\u003eName: Universal Plug Foot Pedal\u003cbr\u003ePlug Type: Metal Plug\u003cbr\u003eCable Length: 1.5 m Silicone Cable\u003cbr\u003eMaterial: Metal\u003cbr\u003eWeight: Approx. 282 g\u003cbr\u003eDimensions: 95 × 95 × 31 mm\u003cbr\u003eColors: Black, Red, Green, Blue\u003c\/p\u003e\n\u003cp\u003eThe universal plug foot pedal is compatible with most tattoo power supplies.\u003cbr\u003eThe connector uses a high-elastic spring design to effectively prevent cable breakage.\u003cbr\u003e360-degree full-contact triggering ensures high sensitivity.\u003cbr\u003eLight pressure is required for operation, providing stable and efficient performance.\u003cbr\u003eA special anti-slip pad allows the pedal to maintain firm contact with the ground, enhancing stability and work efficiency during use.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eNote\u003c\/strong\u003e\u003cbr\u003eProduct dimensions and weight are measured manually and may vary slightly. Please refer to the actual product received.\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-8453960040621 .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-8453960040621", {
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-8453960040621-' + i + '-' + valueHandle;
if (optionValues.indexOf(value) < 0) {
options += '