Shopify.quickshopOptionsMap8313044238509 = {}; Shopify.quickshopUpdateOptionsInSelector8313044238509 = function(selectorIndex) { switch (selectorIndex) { case 0: var key = 'root'; var selector = jQuery('#product-form-quick-8313044238509 .single-option-selector:eq(0)'); break; case 1: var key = jQuery('#product-form-quick-8313044238509 .single-option-selector:eq(0)').val(); var selector = jQuery('#product-form-quick-8313044238509 .single-option-selector:eq(1)'); break; case 2: var key = jQuery('#product-form-quick-8313044238509 .single-option-selector:eq(0)').val(); key += ' / ' + jQuery('#product-form-quick-8313044238509 .single-option-selector:eq(1)').val(); var selector = jQuery('#product-form-quick-8313044238509 .single-option-selector:eq(2)'); } var initialValue = selector.val(); selector.empty(); var availableOptions = Shopify.quickshopOptionsMap8313044238509[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-8313044238509 .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.quickshopLinkOptionSelectors8313044238509 = 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.quickshopOptionsMap8313044238509['root'] = Shopify.quickshopOptionsMap8313044238509['root'] || []; Shopify.quickshopOptionsMap8313044238509['root'].push(variant.option1); Shopify.quickshopOptionsMap8313044238509['root'] = Shopify.uniq(Shopify.quickshopOptionsMap8313044238509['root']); // Gathering values for the 2nd drop-down. if (product.options.length > 1) { var key = variant.option1; Shopify.quickshopOptionsMap8313044238509[key] = Shopify.quickshopOptionsMap8313044238509[key] || []; Shopify.quickshopOptionsMap8313044238509[key].push(variant.option2); Shopify.quickshopOptionsMap8313044238509[key] = Shopify.uniq(Shopify.quickshopOptionsMap8313044238509[key]); } // Gathering values for the 3rd drop-down. if (product.options.length === 3) { var key = variant.option1 + ' / ' + variant.option2; Shopify.quickshopOptionsMap8313044238509[key] = Shopify.quickshopOptionsMap8313044238509[key] || []; Shopify.quickshopOptionsMap8313044238509[key].push(variant.option3); Shopify.quickshopOptionsMap8313044238509[key] = Shopify.uniq(Shopify.quickshopOptionsMap8313044238509[key]); } //} } // Update options right away. Shopify.quickshopUpdateOptionsInSelector8313044238509(0); if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector8313044238509(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8313044238509(2); // When there is an update in the first dropdown. jQuery("#product-form-quick-8313044238509 .single-option-selector:eq(0)").change(function() { Shopify.quickshopUpdateOptionsInSelector8313044238509(1); if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8313044238509(2); return true; }); // When there is an update in the second dropdown. jQuery("#product-form-quick-8313044238509 .single-option-selector:eq(1)").change(function() { if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector8313044238509(2); return true; }); }; productsObj.id8313044238509 = {"id":8313044238509,"title":"Discover Device Cordless Electric Hair Clipper","handle":"discover-device-cordless-electric-hair-clipper","description":"\u003cp\u003eThe smart,stylish designed and duty made multi-functional hair clipper meets your vary needs.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eProduct Parameters\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eModel: L-939W\u003c\/li\u003e\n\u003cli\u003eColor: Black, Red, Golden\u003c\/li\u003e\n\u003cli\u003ePower: 5W\u003c\/li\u003e\n\u003cli\u003eRated Voltage: 5V-1A\u003c\/li\u003e\n\u003cli\u003eBattery Type: Large 18650: 1200mAh, Small 14500: 600mAh\u003c\/li\u003e\n\u003cli\u003eCharging Time: 3 hours\u003c\/li\u003e\n\u003cli\u003eUsage Time: Approximately 90-100 minutes\u003c\/li\u003e\n\u003cli\u003eBody Material: ABS + Paint\u003c\/li\u003e\n\u003cli\u003eBlade Material: Large Stainless Steel + Black Ceramic, Small: Stainless Steel\u003c\/li\u003e\n\u003cli\u003eMotor Type: Large 337, Small 280\u003c\/li\u003e\n\u003cli\u003eBox Dimensions: 21.8 x 17.1 x 7.7cm\u003c\/li\u003e\n\u003cli\u003eUnit Weight: 0.78kg (including box)\u003c\/li\u003e\n\u003cli\u003ePackaging Dimensions: 45.5 x 40 x 36.5cm\u003c\/li\u003e\n\u003cli\u003ePackaging Quantity: 20 pcs\u003c\/li\u003e\n\u003cli\u003eGross Weight: 16.5kg\u003c\/li\u003e\n\u003cli\u003eNet Weight: 15.5kg\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eMain Features\u003c\/strong\u003e \u003c\/p\u003e\n\u003cp\u003e1. Ergonomic design, stylish appearance, dual-color design, multiple color options available.\u003cbr\u003e2. Ceramic heads and a high-capacity lithium battery ensure fast charging and long-lasting battery life.\u003cbr\u003e3. Intelligent, large digital display with dual battery level and speed indicators.\u003cbr\u003e4. Built-in lighting with one-touch on\/off allows for haircuts even in poor visibility.\u003cbr\u003e5. Type-C charging port, English packaging instructions, and multi-language user manuals make this product suitable for cross-border use.\u003cbr\u003e6. Five speed settings for flexible adjustment based on your needs.\u003c\/p\u003e","published_at":"2025-09-12T11:58:22+08:00","created_at":"2025-09-12T11:58:20+08:00","vendor":"Discover Device","type":"","tags":[],"price":4990,"price_min":4990,"price_max":4990,"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":44904046231725,"title":"Red","option1":"Red","option2":null,"option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":{"id":38065569923245,"product_id":8313044238509,"position":2,"created_at":"2025-09-12T11:55:07+08:00","updated_at":"2025-09-12T13:21:19+08:00","alt":null,"width":800,"height":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-RDred_0598a74c-ec20-4da3-b6d9-7c620944a8d1.jpg?v=1757654479","variant_ids":[44904046231725]},"available":true,"name":"Discover Device Cordless Electric Hair Clipper - Red","public_title":"Red","options":["Red"],"price":4990,"weight":1000,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":29577729278125,"position":2,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-RDred_0598a74c-ec20-4da3-b6d9-7c620944a8d1.jpg?v=1757654479"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44904046264493,"title":"Gold","option1":"Gold","option2":null,"option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":{"id":38065569890477,"product_id":8313044238509,"position":3,"created_at":"2025-09-12T11:55:07+08:00","updated_at":"2025-09-12T13:21:14+08:00","alt":null,"width":800,"height":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-GLDgolden_dc6fab05-9672-451b-a146-478fe3a00134.jpg?v=1757654474","variant_ids":[44904046264493]},"available":true,"name":"Discover Device Cordless Electric Hair Clipper - Gold","public_title":"Gold","options":["Gold"],"price":4990,"weight":1000,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":29577729212589,"position":3,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-GLDgolden_dc6fab05-9672-451b-a146-478fe3a00134.jpg?v=1757654474"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44904066384045,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":{"id":38065569857709,"product_id":8313044238509,"position":1,"created_at":"2025-09-12T11:55:07+08:00","updated_at":"2025-09-12T13:21:08+08:00","alt":null,"width":800,"height":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-BKblack_ec8222c7-1b04-4b35-ad3a-e5948d33c45c.jpg?v=1757654468","variant_ids":[44904066384045]},"available":true,"name":"Discover Device Cordless Electric Hair Clipper - Black","public_title":"Black","options":["Black"],"price":4990,"weight":1000,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":29577729147053,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-BKblack_ec8222c7-1b04-4b35-ad3a-e5948d33c45c.jpg?v=1757654468"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-BKblack_ec8222c7-1b04-4b35-ad3a-e5948d33c45c.jpg?v=1757654468","\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-RDred_0598a74c-ec20-4da3-b6d9-7c620944a8d1.jpg?v=1757654479","\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-GLDgolden_dc6fab05-9672-451b-a146-478fe3a00134.jpg?v=1757654474","\/\/discoverdevice.com\/cdn\/shop\/files\/3_57bfa323-9151-485b-9975-36013effbd6c.jpg?v=1757654461"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-BKblack_ec8222c7-1b04-4b35-ad3a-e5948d33c45c.jpg?v=1757654468","options":["Color"],"media":[{"alt":null,"id":29577729147053,"position":1,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-BKblack_ec8222c7-1b04-4b35-ad3a-e5948d33c45c.jpg?v=1757654468"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-BKblack_ec8222c7-1b04-4b35-ad3a-e5948d33c45c.jpg?v=1757654468","width":800},{"alt":null,"id":29577729278125,"position":2,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-RDred_0598a74c-ec20-4da3-b6d9-7c620944a8d1.jpg?v=1757654479"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-RDred_0598a74c-ec20-4da3-b6d9-7c620944a8d1.jpg?v=1757654479","width":800},{"alt":null,"id":29577729212589,"position":3,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-GLDgolden_dc6fab05-9672-451b-a146-478fe3a00134.jpg?v=1757654474"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/L-939W-GLDgolden_dc6fab05-9672-451b-a146-478fe3a00134.jpg?v=1757654474","width":800},{"alt":null,"id":29577729114285,"position":4,"preview_image":{"aspect_ratio":1.0,"height":800,"width":800,"src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3_57bfa323-9151-485b-9975-36013effbd6c.jpg?v=1757654461"},"aspect_ratio":1.0,"height":800,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/files\/3_57bfa323-9151-485b-9975-36013effbd6c.jpg?v=1757654461","width":800}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eThe smart,stylish designed and duty made multi-functional hair clipper meets your vary needs.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eProduct Parameters\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eModel: L-939W\u003c\/li\u003e\n\u003cli\u003eColor: Black, Red, Golden\u003c\/li\u003e\n\u003cli\u003ePower: 5W\u003c\/li\u003e\n\u003cli\u003eRated Voltage: 5V-1A\u003c\/li\u003e\n\u003cli\u003eBattery Type: Large 18650: 1200mAh, Small 14500: 600mAh\u003c\/li\u003e\n\u003cli\u003eCharging Time: 3 hours\u003c\/li\u003e\n\u003cli\u003eUsage Time: Approximately 90-100 minutes\u003c\/li\u003e\n\u003cli\u003eBody Material: ABS + Paint\u003c\/li\u003e\n\u003cli\u003eBlade Material: Large Stainless Steel + Black Ceramic, Small: Stainless Steel\u003c\/li\u003e\n\u003cli\u003eMotor Type: Large 337, Small 280\u003c\/li\u003e\n\u003cli\u003eBox Dimensions: 21.8 x 17.1 x 7.7cm\u003c\/li\u003e\n\u003cli\u003eUnit Weight: 0.78kg (including box)\u003c\/li\u003e\n\u003cli\u003ePackaging Dimensions: 45.5 x 40 x 36.5cm\u003c\/li\u003e\n\u003cli\u003ePackaging Quantity: 20 pcs\u003c\/li\u003e\n\u003cli\u003eGross Weight: 16.5kg\u003c\/li\u003e\n\u003cli\u003eNet Weight: 15.5kg\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eMain Features\u003c\/strong\u003e \u003c\/p\u003e\n\u003cp\u003e1. Ergonomic design, stylish appearance, dual-color design, multiple color options available.\u003cbr\u003e2. Ceramic heads and a high-capacity lithium battery ensure fast charging and long-lasting battery life.\u003cbr\u003e3. Intelligent, large digital display with dual battery level and speed indicators.\u003cbr\u003e4. Built-in lighting with one-touch on\/off allows for haircuts even in poor visibility.\u003cbr\u003e5. Type-C charging port, English packaging instructions, and multi-language user manuals make this product suitable for cross-border use.\u003cbr\u003e6. Five speed settings for flexible adjustment based on your needs.\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-8313044238509 .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-8313044238509", { 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-8313044238509-' + 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-8313044238509 .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.quickshopOptionsMap8313044238509 = {}; Shopify.quickshopLinkOptionSelectors8313044238509(product); } } else { //single variant layout.find('form.product-form .product-options > select').remove(); var variant_field = ''; layout.find('form.product-form').append(variant_field); } });