Shopify.quickshopOptionsMap4115102400566 = {};
Shopify.quickshopUpdateOptionsInSelector4115102400566 = function(selectorIndex) {
switch (selectorIndex) {
case 0:
var key = 'root';
var selector = jQuery('#product-form-quick-4115102400566 .single-option-selector:eq(0)');
break;
case 1:
var key = jQuery('#product-form-quick-4115102400566 .single-option-selector:eq(0)').val();
var selector = jQuery('#product-form-quick-4115102400566 .single-option-selector:eq(1)');
break;
case 2:
var key = jQuery('#product-form-quick-4115102400566 .single-option-selector:eq(0)').val();
key += ' / ' + jQuery('#product-form-quick-4115102400566 .single-option-selector:eq(1)').val();
var selector = jQuery('#product-form-quick-4115102400566 .single-option-selector:eq(2)');
}
var initialValue = selector.val();
selector.empty();
var availableOptions = Shopify.quickshopOptionsMap4115102400566[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-4115102400566 .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.quickshopLinkOptionSelectors4115102400566 = 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.quickshopOptionsMap4115102400566['root'] = Shopify.quickshopOptionsMap4115102400566['root'] || [];
Shopify.quickshopOptionsMap4115102400566['root'].push(variant.option1);
Shopify.quickshopOptionsMap4115102400566['root'] = Shopify.uniq(Shopify.quickshopOptionsMap4115102400566['root']);
// Gathering values for the 2nd drop-down.
if (product.options.length > 1) {
var key = variant.option1;
Shopify.quickshopOptionsMap4115102400566[key] = Shopify.quickshopOptionsMap4115102400566[key] || [];
Shopify.quickshopOptionsMap4115102400566[key].push(variant.option2);
Shopify.quickshopOptionsMap4115102400566[key] = Shopify.uniq(Shopify.quickshopOptionsMap4115102400566[key]);
}
// Gathering values for the 3rd drop-down.
if (product.options.length === 3) {
var key = variant.option1 + ' / ' + variant.option2;
Shopify.quickshopOptionsMap4115102400566[key] = Shopify.quickshopOptionsMap4115102400566[key] || [];
Shopify.quickshopOptionsMap4115102400566[key].push(variant.option3);
Shopify.quickshopOptionsMap4115102400566[key] = Shopify.uniq(Shopify.quickshopOptionsMap4115102400566[key]);
}
//}
}
// Update options right away.
Shopify.quickshopUpdateOptionsInSelector4115102400566(0);
if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector4115102400566(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4115102400566(2);
// When there is an update in the first dropdown.
jQuery("#product-form-quick-4115102400566 .single-option-selector:eq(0)").change(function() {
Shopify.quickshopUpdateOptionsInSelector4115102400566(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4115102400566(2);
return true;
});
// When there is an update in the second dropdown.
jQuery("#product-form-quick-4115102400566 .single-option-selector:eq(1)").change(function() {
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4115102400566(2);
return true;
});
};
productsObj.id4115102400566 = {"id":4115102400566,"title":"DISCOVER DEVICE® Tattoo RCA cord Ultra Slim","handle":"ultra-slim-high-duty-tattoo-rca-cord","description":"Ultra Slim High Duty Tattoo RCA cord for Rotary Pen Tattoo Machines\u003cbr\u003e\u003cstrong\u003eLightweight and convenient,light as wireless\u003c\/strong\u003e.40 oxygen free copper wires,stable conduction,low loss,resistant to breaking.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eProduct parameters\u003c\/strong\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eLength: 2.2 m\u003c\/li\u003e\n\u003cli\u003eOuter wire cover diameter: 2mm\u003c\/li\u003e\n\u003cli\u003eCore: 40 copper oxide free and tin plating\u003c\/li\u003e\n\u003cli\u003eNet weight 27g\u003c\/li\u003e\n\u003cli\u003eGross weight 30g\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\u003cstrong\u003eProduct features\u003c\/strong\u003e\u003cbr\u003e\u003cbr\u003e1. The total length is 220 cm, which ensures sufficient working length;\u003cbr\u003e2. The wire outer diameter of 2mm is soft and comfortable,as light as wireless, and does not bind hands in the working process;\u003cbr\u003e3. Strong tensile resistance wire internal blended tensile resistance fiber two-way force of a total of 58 kg;\u003cbr\u003e4. Strong electrical conductivity meets the requirement of doubling the number of offline diameters under normal working conditions;\u003cbr\u003e5. The 1\/4'' phone jack plug looks smaller and comfortable to plug in;\u003cbr\u003e6. The RCA split center results with better connection and durability. \u003cbr\u003e\u003cbr\u003eDesigned and Built for the professionals.","published_at":"2019-09-23T16:35:17+08:00","created_at":"2019-09-23T16:42:56+08:00","vendor":"Discover Device","type":"Tattoo Accessories","tags":[],"price":2195,"price_min":2195,"price_max":2195,"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":30237965975606,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"1432-BK","requires_shipping":true,"taxable":false,"featured_image":{"id":12687267233846,"product_id":4115102400566,"position":2,"created_at":"2019-09-23T16:42:56+08:00","updated_at":"2019-10-29T18:34:08+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Black_a1031577-1362-40fa-91d5-d95c23b6c465.jpg?v=1572345248","variant_ids":[30237965975606]},"available":true,"name":"DISCOVER DEVICE® Tattoo RCA cord Ultra Slim - Black","public_title":"Black","options":["Black"],"price":2195,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":841700671542,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Black_a1031577-1362-40fa-91d5-d95c23b6c465.jpg?v=1572345248"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":30237966106678,"title":"Red","option1":"Red","option2":null,"option3":null,"sku":"1432-RD","requires_shipping":true,"taxable":false,"featured_image":{"id":12687267332150,"product_id":4115102400566,"position":5,"created_at":"2019-09-23T16:42:56+08:00","updated_at":"2019-10-29T18:32:15+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Red_fdd6e53a-2100-4c70-9f6c-aa9ed8795d13.jpg?v=1572345135","variant_ids":[30237966106678]},"available":true,"name":"DISCOVER DEVICE® Tattoo RCA cord Ultra Slim - Red","public_title":"Red","options":["Red"],"price":2195,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":841700769846,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Red_fdd6e53a-2100-4c70-9f6c-aa9ed8795d13.jpg?v=1572345135"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":30237966204982,"title":"Green","option1":"Green","option2":null,"option3":null,"sku":"1432-GN","requires_shipping":true,"taxable":false,"featured_image":{"id":12687267266614,"product_id":4115102400566,"position":3,"created_at":"2019-09-23T16:42:56+08:00","updated_at":"2019-10-29T18:34:05+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Green_448b4e47-3581-4669-82da-6ba532925ab3.jpg?v=1572345245","variant_ids":[30237966204982]},"available":true,"name":"DISCOVER DEVICE® Tattoo RCA cord Ultra Slim - Green","public_title":"Green","options":["Green"],"price":2195,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":841700704310,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Green_448b4e47-3581-4669-82da-6ba532925ab3.jpg?v=1572345245"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":30237966237750,"title":"Orange","option1":"Orange","option2":null,"option3":null,"sku":"1432-OR","requires_shipping":true,"taxable":false,"featured_image":{"id":12687267299382,"product_id":4115102400566,"position":4,"created_at":"2019-09-23T16:42:56+08:00","updated_at":"2019-10-29T18:34:08+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Orange_9c308059-cf3a-48bc-af36-907d347eb0b0.jpg?v=1572345248","variant_ids":[30237966237750]},"available":true,"name":"DISCOVER DEVICE® Tattoo RCA cord Ultra Slim - Orange","public_title":"Orange","options":["Orange"],"price":2195,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":841700737078,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Orange_9c308059-cf3a-48bc-af36-907d347eb0b0.jpg?v=1572345248"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":30237966303286,"title":"Teal","option1":"Teal","option2":null,"option3":null,"sku":"1432-TE","requires_shipping":true,"taxable":false,"featured_image":{"id":12687267364918,"product_id":4115102400566,"position":6,"created_at":"2019-09-23T16:42:56+08:00","updated_at":"2019-10-29T18:32:12+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Teal_76fcc4f7-4998-45f6-a7e1-84a0429fa99a.jpg?v=1572345132","variant_ids":[30237966303286]},"available":true,"name":"DISCOVER DEVICE® Tattoo RCA cord Ultra Slim - Teal","public_title":"Teal","options":["Teal"],"price":2195,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":841700802614,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Teal_76fcc4f7-4998-45f6-a7e1-84a0429fa99a.jpg?v=1572345132"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/1_a9b6d202-ecf9-4d6d-a5d4-780f660a275a.jpg?v=1572345376","\/\/discoverdevice.com\/cdn\/shop\/products\/Black_a1031577-1362-40fa-91d5-d95c23b6c465.jpg?v=1572345248","\/\/discoverdevice.com\/cdn\/shop\/products\/Green_448b4e47-3581-4669-82da-6ba532925ab3.jpg?v=1572345245","\/\/discoverdevice.com\/cdn\/shop\/products\/Orange_9c308059-cf3a-48bc-af36-907d347eb0b0.jpg?v=1572345248","\/\/discoverdevice.com\/cdn\/shop\/products\/Red_fdd6e53a-2100-4c70-9f6c-aa9ed8795d13.jpg?v=1572345135","\/\/discoverdevice.com\/cdn\/shop\/products\/Teal_76fcc4f7-4998-45f6-a7e1-84a0429fa99a.jpg?v=1572345132","\/\/discoverdevice.com\/cdn\/shop\/products\/Teal_dd60d321-a05d-4a25-aba0-efd148bb464b.jpg?v=1572345135","\/\/discoverdevice.com\/cdn\/shop\/products\/3_51357b88-206d-460d-86c4-297e998582a3.jpg?v=1572345023","\/\/discoverdevice.com\/cdn\/shop\/products\/4_39137efe-05e3-4632-b87f-ad159cc8aa02.jpg?v=1572345022"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_a9b6d202-ecf9-4d6d-a5d4-780f660a275a.jpg?v=1572345376","options":["Color"],"media":[{"alt":null,"id":841989685302,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_a9b6d202-ecf9-4d6d-a5d4-780f660a275a.jpg?v=1572345376"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_a9b6d202-ecf9-4d6d-a5d4-780f660a275a.jpg?v=1572345376","width":1000},{"alt":null,"id":841700671542,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Black_a1031577-1362-40fa-91d5-d95c23b6c465.jpg?v=1572345248"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Black_a1031577-1362-40fa-91d5-d95c23b6c465.jpg?v=1572345248","width":1000},{"alt":null,"id":841700704310,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Green_448b4e47-3581-4669-82da-6ba532925ab3.jpg?v=1572345245"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Green_448b4e47-3581-4669-82da-6ba532925ab3.jpg?v=1572345245","width":1000},{"alt":null,"id":841700737078,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Orange_9c308059-cf3a-48bc-af36-907d347eb0b0.jpg?v=1572345248"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Orange_9c308059-cf3a-48bc-af36-907d347eb0b0.jpg?v=1572345248","width":1000},{"alt":null,"id":841700769846,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Red_fdd6e53a-2100-4c70-9f6c-aa9ed8795d13.jpg?v=1572345135"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Red_fdd6e53a-2100-4c70-9f6c-aa9ed8795d13.jpg?v=1572345135","width":1000},{"alt":null,"id":841700802614,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Teal_76fcc4f7-4998-45f6-a7e1-84a0429fa99a.jpg?v=1572345132"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Teal_76fcc4f7-4998-45f6-a7e1-84a0429fa99a.jpg?v=1572345132","width":1000},{"alt":null,"id":841700835382,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Teal_dd60d321-a05d-4a25-aba0-efd148bb464b.jpg?v=1572345135"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Teal_dd60d321-a05d-4a25-aba0-efd148bb464b.jpg?v=1572345135","width":1000},{"alt":null,"id":842023108662,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_51357b88-206d-460d-86c4-297e998582a3.jpg?v=1572345023"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_51357b88-206d-460d-86c4-297e998582a3.jpg?v=1572345023","width":1000},{"alt":null,"id":842023174198,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_39137efe-05e3-4632-b87f-ad159cc8aa02.jpg?v=1572345022"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_39137efe-05e3-4632-b87f-ad159cc8aa02.jpg?v=1572345022","width":1000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"Ultra Slim High Duty Tattoo RCA cord for Rotary Pen Tattoo Machines\u003cbr\u003e\u003cstrong\u003eLightweight and convenient,light as wireless\u003c\/strong\u003e.40 oxygen free copper wires,stable conduction,low loss,resistant to breaking.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eProduct parameters\u003c\/strong\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eLength: 2.2 m\u003c\/li\u003e\n\u003cli\u003eOuter wire cover diameter: 2mm\u003c\/li\u003e\n\u003cli\u003eCore: 40 copper oxide free and tin plating\u003c\/li\u003e\n\u003cli\u003eNet weight 27g\u003c\/li\u003e\n\u003cli\u003eGross weight 30g\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cbr\u003e\u003cstrong\u003eProduct features\u003c\/strong\u003e\u003cbr\u003e\u003cbr\u003e1. The total length is 220 cm, which ensures sufficient working length;\u003cbr\u003e2. The wire outer diameter of 2mm is soft and comfortable,as light as wireless, and does not bind hands in the working process;\u003cbr\u003e3. Strong tensile resistance wire internal blended tensile resistance fiber two-way force of a total of 58 kg;\u003cbr\u003e4. Strong electrical conductivity meets the requirement of doubling the number of offline diameters under normal working conditions;\u003cbr\u003e5. The 1\/4'' phone jack plug looks smaller and comfortable to plug in;\u003cbr\u003e6. The RCA split center results with better connection and durability. \u003cbr\u003e\u003cbr\u003eDesigned and Built for the professionals."};
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-4115102400566 .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-4115102400566", {
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-4115102400566-' + i + '-' + valueHandle;
if (optionValues.indexOf(value) < 0) {
options += '