Shopify.quickshopOptionsMap8305795268781 = {}; Shopify.quickshopUpdateOptionsInSelector8305795268781 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-8305795268781 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-8305795268781 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-8305795268781 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-8305795268781 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-8305795268781 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-8305795268781 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap8305795268781[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-8305795268781 .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.quickshopLinkOptionSelectors8305795268781 = 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.quickshopOptionsMap8305795268781['root'] = Shopify.quickshopOptionsMap8305795268781['root'] || []; Shopify.quickshopOptionsMap8305795268781['root'].push(variant.option1); Shopify.quickshopOptionsMap8305795268781['root'] = Shopify.uniq(Shopify.quickshopOptionsMap8305795268781['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap8305795268781[key] = Shopify.quickshopOptionsMap8305795268781[key] || []; Shopify.quickshopOptionsMap8305795268781[key].push(variant.option2); Shopify.quickshopOptionsMap8305795268781[key] = Shopify.uniq(Shopify.quickshopOptionsMap8305795268781[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap8305795268781[key] = Shopify.quickshopOptionsMap8305795268781[key] || []; Shopify.quickshopOptionsMap8305795268781[key].push(variant.option3); Shopify.quickshopOptionsMap8305795268781[key] = Shopify.uniq(Shopify.quickshopOptionsMap8305795268781[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector8305795268781(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector8305795268781(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8305795268781(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-8305795268781 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector8305795268781(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8305795268781(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-8305795268781 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8305795268781(2); return true; }); }; productsObj.id8305795268781 = {"id":8305795268781,"title":"Stainless Steel Tattoo Rinse Cup Holder","handle":"stainless-steel-tattoo-rinse-cup-holder-1","description":"\u003cp\u003eTattoo rinse cup holder keeps rinse cups secure and upright, reducing spills and cross-contamination while keeping your station clean and organized. Fits standard disposable cups. Heavy-duty, weighted, non-slip build stays put and wipes clean in seconds between clients.\u003c\/p\u003e\n\u003cp\u003eMODEL:WASH CUP HOLDER\u003cbr\u003eMATERIAL:316 MEDICAL STEEL\u003cbr\u003eWEIGHT: 386G\u003cbr\u003eWASH CUP: 6.8 oz - 8.45 oz (200ML-250ML)\u003c\/p\u003e","published_at":"2025-09-03T18:11:10+08:00","created_at":"2025-09-03T18:11:08+08:00","vendor":"Discover Device","type":"Tattoo Accessories","tags":[],"price":1395,"price_min":1395,"price_max":1695,"available":true,"price_varies":true,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":44878985232557,"title":"DOUBLE CUP","option1":"DOUBLE CUP","option2":null,"option3":null,"sku":"316RCH-2","requires_shipping":true,"taxable":false,"featured_image":{"id":38017560019117,"product_id":8305795268781,"position":1,"created_at":"2025-09-03T18:11:26+08:00","updated_at":"2025-09-03T19:23:08+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/88f978d15e05a02ffe99f55a4d2375a8.jpg?v=1756898588","variant_ids":[44878985232557]},"available":true,"name":"Stainless Steel Tattoo Rinse Cup Holder - DOUBLE CUP","public_title":"DOUBLE CUP","options":["DOUBLE CUP"],"price":1695,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"701555872547","featured_media":{"alt":null,"id":29531001389229,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/88f978d15e05a02ffe99f55a4d2375a8.jpg?v=1756898588"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44878985265325,"title":"ONE CUP","option1":"ONE CUP","option2":null,"option3":null,"sku":"316RCH-3","requires_shipping":true,"taxable":false,"featured_image":{"id":38017580138669,"product_id":8305795268781,"position":7,"created_at":"2025-09-03T18:26:34+08:00","updated_at":"2025-09-03T19:23:16+08:00","alt":null,"width":1600,"height":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/981c7ffbe7e65e7747017b78f4d69887.jpg?v=1756898596","variant_ids":[44878985265325]},"available":true,"name":"Stainless Steel Tattoo Rinse Cup Holder - ONE CUP","public_title":"ONE CUP","options":["ONE CUP"],"price":1395,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":29531021508781,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/981c7ffbe7e65e7747017b78f4d69887.jpg?v=1756898596"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/files\/88f978d15e05a02ffe99f55a4d2375a8.jpg?v=1756898588","\/\/discoverdevice.com\/cdn\/shop\/files\/2_917caa94-24b8-4567-a4ff-d47420f133b1.jpg?v=1756898565","\/\/discoverdevice.com\/cdn\/shop\/files\/5_70d8dde5-269e-405a-be91-60c061b0e1ba.jpg?v=1756898583","\/\/discoverdevice.com\/cdn\/shop\/files\/3_1db0d9e2-defb-4aaf-b72d-02c48c4b3ed8.jpg?v=1756898571","\/\/discoverdevice.com\/cdn\/shop\/files\/4_2df36fa3-07cc-4d84-b590-8d5849105ad0.jpg?v=1756898577","\/\/discoverdevice.com\/cdn\/shop\/files\/fe4758fb38e40ee28ccd935906a7f966.jpg?v=1756898559","\/\/discoverdevice.com\/cdn\/shop\/files\/981c7ffbe7e65e7747017b78f4d69887.jpg?v=1756898596"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/files\/88f978d15e05a02ffe99f55a4d2375a8.jpg?v=1756898588","options":["SIZE"],"media":[{"alt":null,"id":29531001389229,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/88f978d15e05a02ffe99f55a4d2375a8.jpg?v=1756898588"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/88f978d15e05a02ffe99f55a4d2375a8.jpg?v=1756898588","width":1600},{"alt":null,"id":29531001258157,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2_917caa94-24b8-4567-a4ff-d47420f133b1.jpg?v=1756898565"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/2_917caa94-24b8-4567-a4ff-d47420f133b1.jpg?v=1756898565","width":1600},{"alt":null,"id":29531001356461,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/5_70d8dde5-269e-405a-be91-60c061b0e1ba.jpg?v=1756898583"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/5_70d8dde5-269e-405a-be91-60c061b0e1ba.jpg?v=1756898583","width":1600},{"alt":null,"id":29531001290925,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3_1db0d9e2-defb-4aaf-b72d-02c48c4b3ed8.jpg?v=1756898571"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3_1db0d9e2-defb-4aaf-b72d-02c48c4b3ed8.jpg?v=1756898571","width":1600},{"alt":null,"id":29531001323693,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_2df36fa3-07cc-4d84-b590-8d5849105ad0.jpg?v=1756898577"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/4_2df36fa3-07cc-4d84-b590-8d5849105ad0.jpg?v=1756898577","width":1600},{"alt":null,"id":29531001225389,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/fe4758fb38e40ee28ccd935906a7f966.jpg?v=1756898559"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/fe4758fb38e40ee28ccd935906a7f966.jpg?v=1756898559","width":1600},{"alt":null,"id":29531021508781,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1600,"width":1600,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/981c7ffbe7e65e7747017b78f4d69887.jpg?v=1756898596"},"aspect_ratio":1.0,"height":1600,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/981c7ffbe7e65e7747017b78f4d69887.jpg?v=1756898596","width":1600}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eTattoo rinse cup holder keeps rinse cups secure and upright, reducing spills and cross-contamination while keeping your station clean and organized. Fits standard disposable cups. Heavy-duty, weighted, non-slip build stays put and wipes clean in seconds between clients.\u003c\/p\u003e\n\u003cp\u003eMODEL:WASH CUP HOLDER\u003cbr\u003eMATERIAL:316 MEDICAL STEEL\u003cbr\u003eWEIGHT: 386G\u003cbr\u003eWASH CUP: 6.8 oz - 8.45 oz (200ML-250ML)\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-8305795268781 .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-8305795268781", { 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-8305795268781-' + 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-8305795268781 .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.quickshopOptionsMap8305795268781 = {}; Shopify.quickshopLinkOptionSelectors8305795268781(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });