Shopify.quickshopOptionsMap4308557594726 = {}; Shopify.quickshopUpdateOptionsInSelector4308557594726 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-4308557594726 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-4308557594726 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-4308557594726 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-4308557594726 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-4308557594726 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-4308557594726 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap4308557594726[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-4308557594726 .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.quickshopLinkOptionSelectors4308557594726 = 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.quickshopOptionsMap4308557594726['root'] = Shopify.quickshopOptionsMap4308557594726['root'] || []; Shopify.quickshopOptionsMap4308557594726['root'].push(variant.option1); Shopify.quickshopOptionsMap4308557594726['root'] = Shopify.uniq(Shopify.quickshopOptionsMap4308557594726['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap4308557594726[key] = Shopify.quickshopOptionsMap4308557594726[key] || []; Shopify.quickshopOptionsMap4308557594726[key].push(variant.option2); Shopify.quickshopOptionsMap4308557594726[key] = Shopify.uniq(Shopify.quickshopOptionsMap4308557594726[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap4308557594726[key] = Shopify.quickshopOptionsMap4308557594726[key] || []; Shopify.quickshopOptionsMap4308557594726[key].push(variant.option3); Shopify.quickshopOptionsMap4308557594726[key] = Shopify.uniq(Shopify.quickshopOptionsMap4308557594726[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector4308557594726(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector4308557594726(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4308557594726(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-4308557594726 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector4308557594726(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4308557594726(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-4308557594726 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4308557594726(2); return true; }); }; productsObj.id4308557594726 = {"id":4308557594726,"title":"DISCOVER DEVICE® Tattoo Pen Machine Starry V2","handle":"starry-v2-tattoo-pen-machine","description":"\u003cstrong\u003eSTARRY\u003c\/strong\u003e V2 Pen Machine designed and approved by artists.Each has LED Light Indicator Light,Brass RCA outlet,discountable of motor parts,which get itself fantastic performance for all kinds of tattooing.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eProduct Details\u003c\/strong\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eMaterial: aircraft aluminum\u003c\/li\u003e\n\u003cli\u003eCraft: CNC,color anodized processing.\u003c\/li\u003e\n\u003cli\u003eMotor:8V 9000rpm \/ 10V\u003c\/li\u003e\n\u003cli\u003eBearing stroke:3.5mm\u003c\/li\u003e\n\u003cli\u003eRecommended voltage:6-8V\u003c\/li\u003e\n\u003cli\u003eNet weight: 161grams 5.7Oz. \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003ePacking:1pcs of pen,1pcs of RCA cord and 3 pcs of needle cartridge free for testing.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg style=\"float: none;\" alt=\"\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/banner_970x600_0826.jpg?v=1662364119\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/A_0826.jpg?v=1662364178\" style=\"float: none;\"\u003e\u003c\/div\u003e\n\u003cp\u003e \u003ciframe src=\"https:\/\/www.youtube.com\/embed\/RWb25Sxs6XA\" title=\"YouTube video player\" width=\"901\" height=\"507\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\"\u003e\u003c\/iframe\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePacking\u003c\/strong\u003e\u003cbr\u003e\u003cbr\u003e1X starry pen\u003c\/p\u003e\n\u003cp\u003e1X spare parts\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eProducts Features\u003c\/strong\u003e\u003cbr\u003e\u003cbr\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.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eSTARRY PEN MACHINE IS A RELIABLE device.\u003c\/strong\u003e\u003c\/p\u003e","published_at":"2019-10-24T11:42:04+08:00","created_at":"2019-10-24T11:51:52+08:00","vendor":"Discover Device","type":"Tattoo Machine","tags":[],"price":15995,"price_min":15995,"price_max":15995,"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":31952701587558,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"8257-Black","requires_shipping":true,"taxable":false,"featured_image":{"id":32193856602285,"product_id":4308557594726,"position":1,"created_at":"2022-09-05T15:50:42+08:00","updated_at":"2022-09-05T15:53:15+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Starry2-pen-machine_0826.jpg?v=1662364395","variant_ids":[31952701587558]},"available":true,"name":"DISCOVER DEVICE® Tattoo Pen Machine Starry V2 - Black","public_title":"Black","options":["Black"],"price":15995,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396546557","featured_media":{"alt":null,"id":24505082216621,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Starry2-pen-machine_0826.jpg?v=1662364395"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31952701620326,"title":"Golden","option1":"Golden","option2":null,"option3":null,"sku":"8257-GLOD","requires_shipping":true,"taxable":false,"featured_image":{"id":32193866596525,"product_id":4308557594726,"position":9,"created_at":"2022-09-05T15:56:02+08:00","updated_at":"2022-09-05T15:56:42+08:00","alt":null,"width":1000,"height":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257-GD_addb94b2-5bb5-4348-a686-f8558f3685c5.jpg?v=1662364602","variant_ids":[31952701620326]},"available":true,"name":"DISCOVER DEVICE® Tattoo Pen Machine Starry V2 - Golden","public_title":"Golden","options":["Golden"],"price":15995,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"745396546564","featured_media":{"alt":null,"id":24505093161133,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257-GD_addb94b2-5bb5-4348-a686-f8558f3685c5.jpg?v=1662364602"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/Starry2-pen-machine_0826.jpg?v=1662364395","\/\/discoverdevice.com\/cdn\/shop\/products\/8257_1225_0826_cd4d3d57-acda-4521-b16b-0c6f225e132e.jpg?v=1662364402","\/\/discoverdevice.com\/cdn\/shop\/products\/6_1ad59afc-6a0b-4385-9b33-8cdb042b6084.jpg?v=1662364379","\/\/discoverdevice.com\/cdn\/shop\/products\/2_9029e287-a211-4ddb-91b1-6ecfa1c8c4b4.jpg?v=1662364371","\/\/discoverdevice.com\/cdn\/shop\/products\/4_51e98696-d2d5-47ad-864d-d5f0265a77fd.jpg?v=1662364384","\/\/discoverdevice.com\/cdn\/shop\/products\/8257_7f5cf541-f2cf-4e84-a9aa-f2c4877e830c.jpg?v=1662364296","\/\/discoverdevice.com\/cdn\/shop\/products\/8257_1225_0826.jpg?v=1662364609","\/\/discoverdevice.com\/cdn\/shop\/products\/3_44c4236a-f205-4b20-8090-d3a4f3e40ade.jpg?v=1662364390","\/\/discoverdevice.com\/cdn\/shop\/products\/8257-GD_addb94b2-5bb5-4348-a686-f8558f3685c5.jpg?v=1662364602"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/Starry2-pen-machine_0826.jpg?v=1662364395","options":["Color"],"media":[{"alt":null,"id":24505082216621,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Starry2-pen-machine_0826.jpg?v=1662364395"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/Starry2-pen-machine_0826.jpg?v=1662364395","width":1600},{"alt":null,"id":24505082183853,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257_1225_0826_cd4d3d57-acda-4521-b16b-0c6f225e132e.jpg?v=1662364402"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257_1225_0826_cd4d3d57-acda-4521-b16b-0c6f225e132e.jpg?v=1662364402","width":1500},{"alt":null,"id":24505082347693,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/6_1ad59afc-6a0b-4385-9b33-8cdb042b6084.jpg?v=1662364379"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/6_1ad59afc-6a0b-4385-9b33-8cdb042b6084.jpg?v=1662364379","width":1600},{"alt":null,"id":24505082249389,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_9029e287-a211-4ddb-91b1-6ecfa1c8c4b4.jpg?v=1662364371"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_9029e287-a211-4ddb-91b1-6ecfa1c8c4b4.jpg?v=1662364371","width":1500},{"alt":null,"id":24505082314925,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_51e98696-d2d5-47ad-864d-d5f0265a77fd.jpg?v=1662364384"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/4_51e98696-d2d5-47ad-864d-d5f0265a77fd.jpg?v=1662364384","width":1600},{"alt":null,"id":23502844199085,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257_7f5cf541-f2cf-4e84-a9aa-f2c4877e830c.jpg?v=1662364296"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257_7f5cf541-f2cf-4e84-a9aa-f2c4877e830c.jpg?v=1662364296","width":1500},{"alt":null,"id":24505082151085,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257_1225_0826.jpg?v=1662364609"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257_1225_0826.jpg?v=1662364609","width":1500},{"alt":null,"id":24505082282157,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_44c4236a-f205-4b20-8090-d3a4f3e40ade.jpg?v=1662364390"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3_44c4236a-f205-4b20-8090-d3a4f3e40ade.jpg?v=1662364390","width":1600},{"alt":null,"id":24505093161133,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1000,"width":1000,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257-GD_addb94b2-5bb5-4348-a686-f8558f3685c5.jpg?v=1662364602"},"aspect_ratio":1.0,"height":1000,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/8257-GD_addb94b2-5bb5-4348-a686-f8558f3685c5.jpg?v=1662364602","width":1000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cstrong\u003eSTARRY\u003c\/strong\u003e V2 Pen Machine designed and approved by artists.Each has LED Light Indicator Light,Brass RCA outlet,discountable of motor parts,which get itself fantastic performance for all kinds of tattooing.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eProduct Details\u003c\/strong\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eMaterial: aircraft aluminum\u003c\/li\u003e\n\u003cli\u003eCraft: CNC,color anodized processing.\u003c\/li\u003e\n\u003cli\u003eMotor:8V 9000rpm \/ 10V\u003c\/li\u003e\n\u003cli\u003eBearing stroke:3.5mm\u003c\/li\u003e\n\u003cli\u003eRecommended voltage:6-8V\u003c\/li\u003e\n\u003cli\u003eNet weight: 161grams 5.7Oz. \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003ePacking:1pcs of pen,1pcs of RCA cord and 3 pcs of needle cartridge free for testing.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg style=\"float: none;\" alt=\"\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/banner_970x600_0826.jpg?v=1662364119\"\u003e\u003c\/div\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/A_0826.jpg?v=1662364178\" style=\"float: none;\"\u003e\u003c\/div\u003e\n\u003cp\u003e \u003ciframe src=\"https:\/\/www.youtube.com\/embed\/RWb25Sxs6XA\" title=\"YouTube video player\" width=\"901\" height=\"507\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\"\u003e\u003c\/iframe\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePacking\u003c\/strong\u003e\u003cbr\u003e\u003cbr\u003e1X starry pen\u003c\/p\u003e\n\u003cp\u003e1X spare parts\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eProducts Features\u003c\/strong\u003e\u003cbr\u003e\u003cbr\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.\u003cbr\u003e\u003cbr\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-4308557594726 .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-4308557594726", { 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-4308557594726-' + i + '-' + valueHandle; if (optionValues.indexOf(value) < 0) { options += '
'; if (is_color) { options += '
' + value + '
'; } options += ''; if (is_color) { if(vimg && woodmart_settings.product_data.product_swatch_setting == '2'){ options += ''; }else{ options += ''; } } else { options += ''; } options += '
'; if (variant.available) { $('#product-form-quick-4308557594726 .swatch[data-option-index="' + i + '"] .' + valueHandle).removeClass('soldout').addClass('available').find(':radio').removeAttr('disabled'); } optionValues.push(value); } } options += '
'; options += '
'; } if(swatch_color_type == '1' || swatch_color_type == '2'){ layout.find('form.product-form .product-options > select').after(options); layout.find('.swatch :radio').change(function() { var optionIndex = $(this).closest('.swatch').attr('data-option-index'); var optionValue = $(this).val(); $(this) .closest('form') .find('.single-option-selector') .eq(optionIndex) .val(optionValue) .trigger('change'); }); } if (product.available) { Shopify.quickshopOptionsMap4308557594726 = {}; Shopify.quickshopLinkOptionSelectors4308557594726(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });