Shopify.quickshopOptionsMap2192514547766 = {};
Shopify.quickshopUpdateOptionsInSelector2192514547766 = function(selectorIndex) {
switch (selectorIndex) {
case 0:
var key = 'root';
var selector = jQuery('#product-form-quick-2192514547766 .single-option-selector:eq(0)');
break;
case 1:
var key = jQuery('#product-form-quick-2192514547766 .single-option-selector:eq(0)').val();
var selector = jQuery('#product-form-quick-2192514547766 .single-option-selector:eq(1)');
break;
case 2:
var key = jQuery('#product-form-quick-2192514547766 .single-option-selector:eq(0)').val();
key += ' / ' + jQuery('#product-form-quick-2192514547766 .single-option-selector:eq(1)').val();
var selector = jQuery('#product-form-quick-2192514547766 .single-option-selector:eq(2)');
}
var initialValue = selector.val();
selector.empty();
var availableOptions = Shopify.quickshopOptionsMap2192514547766[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-2192514547766 .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.quickshopLinkOptionSelectors2192514547766 = 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.quickshopOptionsMap2192514547766['root'] = Shopify.quickshopOptionsMap2192514547766['root'] || [];
Shopify.quickshopOptionsMap2192514547766['root'].push(variant.option1);
Shopify.quickshopOptionsMap2192514547766['root'] = Shopify.uniq(Shopify.quickshopOptionsMap2192514547766['root']);
// Gathering values for the 2nd drop-down.
if (product.options.length > 1) {
var key = variant.option1;
Shopify.quickshopOptionsMap2192514547766[key] = Shopify.quickshopOptionsMap2192514547766[key] || [];
Shopify.quickshopOptionsMap2192514547766[key].push(variant.option2);
Shopify.quickshopOptionsMap2192514547766[key] = Shopify.uniq(Shopify.quickshopOptionsMap2192514547766[key]);
}
// Gathering values for the 3rd drop-down.
if (product.options.length === 3) {
var key = variant.option1 + ' / ' + variant.option2;
Shopify.quickshopOptionsMap2192514547766[key] = Shopify.quickshopOptionsMap2192514547766[key] || [];
Shopify.quickshopOptionsMap2192514547766[key].push(variant.option3);
Shopify.quickshopOptionsMap2192514547766[key] = Shopify.uniq(Shopify.quickshopOptionsMap2192514547766[key]);
}
//}
}
// Update options right away.
Shopify.quickshopUpdateOptionsInSelector2192514547766(0);
if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector2192514547766(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector2192514547766(2);
// When there is an update in the first dropdown.
jQuery("#product-form-quick-2192514547766 .single-option-selector:eq(0)").change(function() {
Shopify.quickshopUpdateOptionsInSelector2192514547766(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector2192514547766(2);
return true;
});
// When there is an update in the second dropdown.
jQuery("#product-form-quick-2192514547766 .single-option-selector:eq(1)").change(function() {
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector2192514547766(2);
return true;
});
};
productsObj.id2192514547766 = {"id":2192514547766,"title":"STARRY V1 Pen Tattoo Machine for Cheyenne Needle Catridges","handle":"discover-device-starry-v1-pen-tattoo-machine-for-cheyenne-needle-catridges","description":"\u003cp\u003e\u003cstrong\u003eSTARRY V1\u003c\/strong\u003e Pen Machine designed and approved by artists.Each has LED Light Indicator Light,Brass RCA outlet,Vary colors anodized,discountable of motor parts,which get itself fantastic performance for all kinds of tattooing.\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/3_large.jpg?v=1561798690\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/2_large.jpg?v=1561800199\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eProduct’s Details\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e1. Material: aluminum and CNC,color anodized processing.\u003cbr\u003e2. Motor:8V 9000rpm \/ 10V,11000rmp for option.\u003cbr\u003e3. Bearing stroke:3.5mm\u003cbr\u003e4. Recommended voltage:6-8V\u003cbr\u003e5. Net weight: 153grams 5.4Oz.\u003cbr\u003e6. Packing:1pcs of pen,1pcs of RCA cord and 3 pcs of needle cartridge free for testing.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePacking\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e1X starry pen,1X premium RCA,1X27mm grip,1X pen tray,1X spare parts,3pcs testing cartridge.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eProduct’s Features\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e1. It has a brass RCA outlet,featured with high electric conductive.\u003cbr\u003e2. A warm blue LED indicator light will help users to be easily aware of the working status of the machine.\u003cbr\u003e3. Different motors of 9000RPM and 11000RPM for option.(price offered for only one)\u003cbr\u003e4. Fit with all brands of standard needle cartridges.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSTARRY PEN MACHINE IS A RELIABLE device.\u003c\/strong\u003e\u003c\/p\u003e","published_at":"2019-07-01T12:19:56+08:00","created_at":"2019-07-01T12:21:12+08:00","vendor":"Discover Device","type":"Tattoo Machine","tags":[],"price":11295,"price_min":11295,"price_max":11295,"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":20751725527094,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"8252-BK","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"STARRY V1 Pen Tattoo Machine for Cheyenne Needle Catridges - Black","public_title":"Black","options":["Black"],"price":11295,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":20751725559862,"title":"Blue","option1":"Blue","option2":null,"option3":null,"sku":"8252-BL","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"STARRY V1 Pen Tattoo Machine for Cheyenne Needle Catridges - Blue","public_title":"Blue","options":["Blue"],"price":11295,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":20751725592630,"title":"Red","option1":"Red","option2":null,"option3":null,"sku":"8252-RD","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"STARRY V1 Pen Tattoo Machine for Cheyenne Needle Catridges - Red","public_title":"Red","options":["Red"],"price":11295,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":20751725625398,"title":"Gun Metal","option1":"Gun Metal","option2":null,"option3":null,"sku":"8252-GM","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"STARRY V1 Pen Tattoo Machine for Cheyenne Needle Catridges - Gun Metal","public_title":"Gun Metal","options":["Gun Metal"],"price":11295,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":20751725658166,"title":"Orange","option1":"Orange","option2":null,"option3":null,"sku":"8252-OR","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"STARRY V1 Pen Tattoo Machine for Cheyenne Needle Catridges - Orange","public_title":"Orange","options":["Orange"],"price":11295,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/1.jpg?v=1671775853","\/\/discoverdevice.com\/cdn\/shop\/products\/2_b6568f96-968f-41f2-ba51-0f814aa89698.jpg?v=1671775853","\/\/discoverdevice.com\/cdn\/shop\/products\/8.jpg?v=1671775853","\/\/discoverdevice.com\/cdn\/shop\/products\/3_3bda1e75-066f-4af2-9493-1722e9b46c3b.jpg?v=1572346929","\/\/discoverdevice.com\/cdn\/shop\/products\/4.jpg?v=1572346927","\/\/discoverdevice.com\/cdn\/shop\/products\/5_47655bc6-a9eb-4ddb-8176-4ea9592bd9c0.jpg?v=1572346928","\/\/discoverdevice.com\/cdn\/shop\/products\/6_490a8970-9157-4ab5-a304-85278eb02c77.jpg?v=1572346811","\/\/discoverdevice.com\/cdn\/shop\/products\/7_a734f567-f113-4341-b79f-cf000e9ee627.jpg?v=1572346808"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/1.jpg?v=1671775853","options":["Colors"],"media":[{"alt":null,"id":1933994033206,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1.jpg?v=1671775853"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1.jpg?v=1671775853","width":1000},{"alt":null,"id":1933993967670,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_b6568f96-968f-41f2-ba51-0f814aa89698.jpg?v=1671775853"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_b6568f96-968f-41f2-ba51-0f814aa89698.jpg?v=1671775853","width":1000},{"alt":null,"id":1933994000438,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8.jpg?v=1671775853"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8.jpg?v=1671775853","width":1000},{"alt":null,"id":1933994262582,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_3bda1e75-066f-4af2-9493-1722e9b46c3b.jpg?v=1572346929"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_3bda1e75-066f-4af2-9493-1722e9b46c3b.jpg?v=1572346929","width":1000},{"alt":null,"id":1933994328118,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4.jpg?v=1572346927"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4.jpg?v=1572346927","width":1000},{"alt":null,"id":1933994524726,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/5_47655bc6-a9eb-4ddb-8176-4ea9592bd9c0.jpg?v=1572346928"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/5_47655bc6-a9eb-4ddb-8176-4ea9592bd9c0.jpg?v=1572346928","width":1000},{"alt":null,"id":1933994721334,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/6_490a8970-9157-4ab5-a304-85278eb02c77.jpg?v=1572346811"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/6_490a8970-9157-4ab5-a304-85278eb02c77.jpg?v=1572346811","width":1000},{"alt":null,"id":1933995081782,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/7_a734f567-f113-4341-b79f-cf000e9ee627.jpg?v=1572346808"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/7_a734f567-f113-4341-b79f-cf000e9ee627.jpg?v=1572346808","width":1000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cstrong\u003eSTARRY V1\u003c\/strong\u003e Pen Machine designed and approved by artists.Each has LED Light Indicator Light,Brass RCA outlet,Vary colors anodized,discountable of motor parts,which get itself fantastic performance for all kinds of tattooing.\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/3_large.jpg?v=1561798690\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/2_large.jpg?v=1561800199\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eProduct’s Details\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e1. Material: aluminum and CNC,color anodized processing.\u003cbr\u003e2. Motor:8V 9000rpm \/ 10V,11000rmp for option.\u003cbr\u003e3. Bearing stroke:3.5mm\u003cbr\u003e4. Recommended voltage:6-8V\u003cbr\u003e5. Net weight: 153grams 5.4Oz.\u003cbr\u003e6. Packing:1pcs of pen,1pcs of RCA cord and 3 pcs of needle cartridge free for testing.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePacking\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e1X starry pen,1X premium RCA,1X27mm grip,1X pen tray,1X spare parts,3pcs testing cartridge.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eProduct’s Features\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e1. It has a brass RCA outlet,featured with high electric conductive.\u003cbr\u003e2. A warm blue LED indicator light will help users to be easily aware of the working status of the machine.\u003cbr\u003e3. Different motors of 9000RPM and 11000RPM for option.(price offered for only one)\u003cbr\u003e4. Fit with all brands of standard needle cartridges.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSTARRY PEN MACHINE IS A RELIABLE device.\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-2192514547766 .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-2192514547766", {
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-2192514547766-' + i + '-' + valueHandle;
if (optionValues.indexOf(value) < 0) {
options += '