Shopify.quickshopOptionsMap4882537873510 = {};
Shopify.quickshopUpdateOptionsInSelector4882537873510 = function(selectorIndex) {
switch (selectorIndex) {
case 0:
var key = 'root';
var selector = jQuery('#product-form-quick-4882537873510 .single-option-selector:eq(0)');
break;
case 1:
var key = jQuery('#product-form-quick-4882537873510 .single-option-selector:eq(0)').val();
var selector = jQuery('#product-form-quick-4882537873510 .single-option-selector:eq(1)');
break;
case 2:
var key = jQuery('#product-form-quick-4882537873510 .single-option-selector:eq(0)').val();
key += ' / ' + jQuery('#product-form-quick-4882537873510 .single-option-selector:eq(1)').val();
var selector = jQuery('#product-form-quick-4882537873510 .single-option-selector:eq(2)');
}
var initialValue = selector.val();
selector.empty();
var availableOptions = Shopify.quickshopOptionsMap4882537873510[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-4882537873510 .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.quickshopLinkOptionSelectors4882537873510 = 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.quickshopOptionsMap4882537873510['root'] = Shopify.quickshopOptionsMap4882537873510['root'] || [];
Shopify.quickshopOptionsMap4882537873510['root'].push(variant.option1);
Shopify.quickshopOptionsMap4882537873510['root'] = Shopify.uniq(Shopify.quickshopOptionsMap4882537873510['root']);
// Gathering values for the 2nd drop-down.
if (product.options.length > 1) {
var key = variant.option1;
Shopify.quickshopOptionsMap4882537873510[key] = Shopify.quickshopOptionsMap4882537873510[key] || [];
Shopify.quickshopOptionsMap4882537873510[key].push(variant.option2);
Shopify.quickshopOptionsMap4882537873510[key] = Shopify.uniq(Shopify.quickshopOptionsMap4882537873510[key]);
}
// Gathering values for the 3rd drop-down.
if (product.options.length === 3) {
var key = variant.option1 + ' / ' + variant.option2;
Shopify.quickshopOptionsMap4882537873510[key] = Shopify.quickshopOptionsMap4882537873510[key] || [];
Shopify.quickshopOptionsMap4882537873510[key].push(variant.option3);
Shopify.quickshopOptionsMap4882537873510[key] = Shopify.uniq(Shopify.quickshopOptionsMap4882537873510[key]);
}
//}
}
// Update options right away.
Shopify.quickshopUpdateOptionsInSelector4882537873510(0);
if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector4882537873510(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4882537873510(2);
// When there is an update in the first dropdown.
jQuery("#product-form-quick-4882537873510 .single-option-selector:eq(0)").change(function() {
Shopify.quickshopUpdateOptionsInSelector4882537873510(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4882537873510(2);
return true;
});
// When there is an update in the second dropdown.
jQuery("#product-form-quick-4882537873510 .single-option-selector:eq(1)").change(function() {
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4882537873510(2);
return true;
});
};
productsObj.id4882537873510 = {"id":4882537873510,"title":"DISCOVER DEVICE® Premium RCA Cord 6 ft","handle":"discover-6-feet-right-angle-rca-cord-for-tattoo-machines","description":"\u003cp\u003eThe premium 6' Long Premium RCA Cord features a lightweight micro-barrel design that allows for easier movement and dramatically reduces the strain on the machine.\u003c\/p\u003e\n\u003cp\u003eIt is 6 ft. long with a gold-plated quarter inch jack mono plug on one end and a gold-plated split-tip center pin with a segmented shield on the other end.\u003c\/p\u003e\n\u003cp\u003eIt features a frosted outer silicone jacket on the cable and reinforced strain relief for extra durability and longevity.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eSpecifications:\u003c\/strong\u003e\u003cbr\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eCord Length: 6 ft.\u003c\/li\u003e\n\u003cli\u003eGold-plated 1\/4\" jack mono plug\u003c\/li\u003e\n\u003cli\u003eGold-plated split-tip center pin and segmented shield\u003c\/li\u003e\n\u003cli\u003eFrosted outer silicone jacket on cable\u003c\/li\u003e\n\u003cli\u003eReinforced and integrated strain relief\u003c\/li\u003e\n\u003cli\u003eLightweight micro barrel design\u003c\/li\u003e\n\u003c\/ul\u003e","published_at":"2020-07-16T19:15:07+08:00","created_at":"2020-07-16T19:15:04+08:00","vendor":"Discover Device","type":"Tattoo Accessories","tags":[],"price":2695,"price_min":2695,"price_max":2695,"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":31970511978598,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"1436- BK","requires_shipping":true,"taxable":false,"featured_image":{"id":15133903257702,"product_id":4882537873510,"position":7,"created_at":"2020-07-16T19:21:44+08:00","updated_at":"2020-07-16T19:26:01+08:00","alt":null,"width":800,"height":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BK.jpg?v=1594898761","variant_ids":[31970511978598]},"available":true,"name":"DISCOVER DEVICE® Premium RCA Cord 6 ft - Black","public_title":"Black","options":["Black"],"price":2695,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396545840","featured_media":{"alt":null,"id":7309117456486,"position":7,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BK.jpg?v=1594898761"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31970512011366,"title":"Blue","option1":"Blue","option2":null,"option3":null,"sku":"1436-BL","requires_shipping":true,"taxable":false,"featured_image":{"id":15133903421542,"product_id":4882537873510,"position":8,"created_at":"2020-07-16T19:21:45+08:00","updated_at":"2020-07-16T19:24:02+08:00","alt":null,"width":800,"height":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BL.jpg?v=1594898642","variant_ids":[31970512011366]},"available":true,"name":"DISCOVER DEVICE® Premium RCA Cord 6 ft - Blue","public_title":"Blue","options":["Blue"],"price":2695,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396545857","featured_media":{"alt":null,"id":7309117522022,"position":8,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BL.jpg?v=1594898642"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31970512044134,"title":"Purple","option1":"Purple","option2":null,"option3":null,"sku":"1436-PU","requires_shipping":true,"taxable":false,"featured_image":{"id":15133904142438,"product_id":4882537873510,"position":9,"created_at":"2020-07-16T19:21:48+08:00","updated_at":"2020-07-16T19:23:59+08:00","alt":null,"width":800,"height":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-PU.jpg?v=1594898639","variant_ids":[31970512044134]},"available":true,"name":"DISCOVER DEVICE® Premium RCA Cord 6 ft - Purple","public_title":"Purple","options":["Purple"],"price":2695,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396545864","featured_media":{"alt":null,"id":7309118177382,"position":9,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-PU.jpg?v=1594898639"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31970512076902,"title":"Red","option1":"Red","option2":null,"option3":null,"sku":"1436-RD","requires_shipping":true,"taxable":false,"featured_image":{"id":15133904765030,"product_id":4882537873510,"position":10,"created_at":"2020-07-16T19:21:51+08:00","updated_at":"2020-07-16T19:24:00+08:00","alt":null,"width":800,"height":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-RD.jpg?v=1594898640","variant_ids":[31970512076902]},"available":true,"name":"DISCOVER DEVICE® Premium RCA Cord 6 ft - Red","public_title":"Red","options":["Red"],"price":2695,"weight":100,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396545871","featured_media":{"alt":null,"id":7309118898278,"position":10,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-RD.jpg?v=1594898640"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/discover1_180fc12e-0565-4859-b7c8-8db3b3a8c105.jpg?v=1594898292","\/\/discoverdevice.com\/cdn\/shop\/products\/discover2_0be15488-7012-4276-8251-621a7749f1c2.jpg?v=1594898297","\/\/discoverdevice.com\/cdn\/shop\/products\/discover3_df27650a-7021-4975-bb23-224b002305aa.jpg?v=1594898294","\/\/discoverdevice.com\/cdn\/shop\/products\/discover4_879140f1-e07f-4b31-9d1e-a6bbe70d7ed3.jpg?v=1594898169","\/\/discoverdevice.com\/cdn\/shop\/products\/discover5_ae0d9409-7ae6-4a7b-9079-214b24651578.jpg?v=1594898168","\/\/discoverdevice.com\/cdn\/shop\/products\/discover6_87bf1320-151f-4824-b318-916a47a72984.jpg?v=1594898175","\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BK.jpg?v=1594898761","\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BL.jpg?v=1594898642","\/\/discoverdevice.com\/cdn\/shop\/products\/1436-PU.jpg?v=1594898639","\/\/discoverdevice.com\/cdn\/shop\/products\/1436-RD.jpg?v=1594898640"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover1_180fc12e-0565-4859-b7c8-8db3b3a8c105.jpg?v=1594898292","options":["Color"],"media":[{"alt":null,"id":7309075873894,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover1_180fc12e-0565-4859-b7c8-8db3b3a8c105.jpg?v=1594898292"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover1_180fc12e-0565-4859-b7c8-8db3b3a8c105.jpg?v=1594898292","width":1000},{"alt":null,"id":7309075906662,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover2_0be15488-7012-4276-8251-621a7749f1c2.jpg?v=1594898297"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover2_0be15488-7012-4276-8251-621a7749f1c2.jpg?v=1594898297","width":1000},{"alt":null,"id":7309075939430,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover3_df27650a-7021-4975-bb23-224b002305aa.jpg?v=1594898294"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover3_df27650a-7021-4975-bb23-224b002305aa.jpg?v=1594898294","width":1000},{"alt":null,"id":7309075972198,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover4_879140f1-e07f-4b31-9d1e-a6bbe70d7ed3.jpg?v=1594898169"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover4_879140f1-e07f-4b31-9d1e-a6bbe70d7ed3.jpg?v=1594898169","width":1000},{"alt":null,"id":7309076004966,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover5_ae0d9409-7ae6-4a7b-9079-214b24651578.jpg?v=1594898168"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover5_ae0d9409-7ae6-4a7b-9079-214b24651578.jpg?v=1594898168","width":1000},{"alt":null,"id":7309076037734,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover6_87bf1320-151f-4824-b318-916a47a72984.jpg?v=1594898175"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/discover6_87bf1320-151f-4824-b318-916a47a72984.jpg?v=1594898175","width":1000},{"alt":null,"id":7309117456486,"position":7,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BK.jpg?v=1594898761"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BK.jpg?v=1594898761","width":800},{"alt":null,"id":7309117522022,"position":8,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BL.jpg?v=1594898642"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-BL.jpg?v=1594898642","width":800},{"alt":null,"id":7309118177382,"position":9,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-PU.jpg?v=1594898639"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-PU.jpg?v=1594898639","width":800},{"alt":null,"id":7309118898278,"position":10,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-RD.jpg?v=1594898640"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1436-RD.jpg?v=1594898640","width":800}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eThe premium 6' Long Premium RCA Cord features a lightweight micro-barrel design that allows for easier movement and dramatically reduces the strain on the machine.\u003c\/p\u003e\n\u003cp\u003eIt is 6 ft. long with a gold-plated quarter inch jack mono plug on one end and a gold-plated split-tip center pin with a segmented shield on the other end.\u003c\/p\u003e\n\u003cp\u003eIt features a frosted outer silicone jacket on the cable and reinforced strain relief for extra durability and longevity.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eSpecifications:\u003c\/strong\u003e\u003cbr\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eCord Length: 6 ft.\u003c\/li\u003e\n\u003cli\u003eGold-plated 1\/4\" jack mono plug\u003c\/li\u003e\n\u003cli\u003eGold-plated split-tip center pin and segmented shield\u003c\/li\u003e\n\u003cli\u003eFrosted outer silicone jacket on cable\u003c\/li\u003e\n\u003cli\u003eReinforced and integrated strain relief\u003c\/li\u003e\n\u003cli\u003eLightweight micro barrel design\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-4882537873510 .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-4882537873510", {
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-4882537873510-' + i + '-' + valueHandle;
if (optionValues.indexOf(value) < 0) {
options += '