${(function(){ const get_random_six_digits = () => { return Math.random().toString().slice(-6) }; const wholesale_enabled = false; const setting_product_image_display = "133.33%"; const product_image = data.image; const secondary_image = data.secondImage; const image_width = product_image.width; let image_height = product_image.height; if(setting_product_image_display == '100%'){ image_height = image_width }else if(setting_product_image_display == '133.33%'){ image_height = image_width * 1.3333; }; const product_image_hover_on = true && !!secondary_image.src; const has_save_label = true && ((+data.compare_at_price) > (+data.price)); const is_single_variant = data.variants.length == 1; const min_price_variant_href = (data.min_price_variant && data.min_price_variant.available) ? data.min_price_variant.withinUrl : data.withinUrl; const retail_price_max = data.retail_price_max || data.compare_at_price_max; const THUMBNAILS_MAX_SIZE = 3; const thumbnails = data.thumbVariants.slice(0, THUMBNAILS_MAX_SIZE); const image_wrap_id = 'image_wrap_' + get_random_six_digits(); const image_carousel_id = 'image_carousel_' + get_random_six_digits(); const thumbnails_selector_id = 'thumbnails_selector_' + get_random_six_digits(); const form_id = 'form_' + get_random_six_digits(); const mixed_wholesale = data.mixed_wholesale; return `
${ data.available ? `${ (+data.compare_at_price > +data.price) ? `Save
` : '' }` : "Sold out" }
Mixed Lot
${data.title}
${ data.price_min != data.price_max ? `from
` : `
` }
+${data.remainInvisibleThumbCount}
` })()}
Log in
Create an account
${data.data && data.data.count}
Home
Wigs
Department
Women's Wigs
Wigs For Black Women
Men's Wigs
Kid's Wigs
Party Wigs
Hair Type
Synthetic Wigs
Closure Wig
Human Hair Wigs
Brazilian Hair Wigs
Peruvian Hair Wigs
Afro Wig
Full Lace Wigs
Lace Front Bob Wigs
Lace Wig
Lace Front Wigs
Style
Frontal Wig
Pixie Cut Wig
Braided Wigs
Blonde Wig
Curly Wigs
Bob Wigs
Short Wigs
Curly Frontal Wig
Short Curly Wigs
Bob Cut Wigs
Curly Bob Wig
Water Wave Wig
Body Wave Wig
Deep Wave Wig
Curl Activator For Wigs
Fringe Wig
Straight Hair
Full Frontal Wig
Headband Wigs
Wig Inches
8 Inch Bob Wig
10 Inch Bob Wig
8 Inch Wig
10 Inch Wig
12 Inch Wig
14 Inch Wig
16 Inch Wig
18 Inch Wig
20 Inch Wig
26 Inch Wig
Save
R4,630.00
Save
R4,630.00
Frontal Wig 13*4 Lace Frontal Human Hair Wigs Short Bob Wig
R4,870.00
R9,500.00
Hair Pieces & Extensions
Hair Extensions
Hair Pieces
Curly Hair Pieces
Save
R260.00
Save
R260.00
Synthetic Two-Tone Hair Extensions
R310.00
R570.00
Care & Accessories
Wig Cap
Elastic Band For Wigs
Wax Stick For Wigs
Wig Glue
Wig Stand
Mousse For Wigs
Hairspray
Hair Protein
Hair Vitamin
Hair Dryer
Hair Straightener
Save
R150.00
Save
R150.00
Camellia Oil Shampoo
R290.00
R440.00
Wigs For Sale
More links
${(function(){ const formatLinks = (links) => { return links.map(link => { link.tag = tags[link.title.toUpperCase()] || {}; link.target_attr = link.target == '_blank' ? 'target="_blank"' : ''; link.href_attr = link.url ? `href="${link.url}"` : ''; if(link.children && link.children.length){ link.children = formatLinks(link.children); } return link; }) }; const tags = "{}"; let linkList = [ { id: 60668761, title: "Home", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 60668763, title: "Wigs", url: "\/collections\/wigs", target: "", levels: 2, product0: { id: ("f28c665a-2bc9-4ac0-96f7-95d31e1e0831") }, children: [ { title: "Department", url: "\/collections\/wigs", target: "", levels: 1, children: [ { title: "Women's Wigs", url: "\/collections\/womens-wigs", target: "", levels: 0, }, { title: "Wigs For Black Women", url: "\/collections\/wigs-for-black-women", target: "", levels: 0, }, { title: "Men's Wigs", url: "\/collections\/wigs-for-men", target: "", levels: 0, }, { title: "Kid's Wigs", url: "\/collections\/kids-wigs", target: "", levels: 0, }, { title: "Party Wigs", url: "\/collections\/party-wigs", target: "", levels: 0, }, ] }, { title: "Hair Type", url: "\/collections\/hair-type", target: "", levels: 1, children: [ { title: "Synthetic Wigs", url: "\/collections\/synthetic-wigs", target: "", levels: 0, }, { title: "Closure Wig", url: "\/collections\/closure-wig", target: "", levels: 0, }, { title: "Human Hair Wigs", url: "\/collections\/human-hair-wigs", target: "", levels: 0, }, { title: "Brazilian Hair Wigs", url: "\/collections\/brazilian-hair-wigs", target: "", levels: 0, }, { title: "Peruvian Hair Wigs", url: "\/collections\/peruvian-hair-wigs", target: "", levels: 0, }, { title: "Afro Wig", url: "\/collections\/afro-wig", target: "", levels: 0, }, { title: "Full Lace Wigs", url: "\/collections\/full-lace-wigs", target: "", levels: 0, }, { title: "Lace Front Bob Wigs", url: "\/collections\/lace-front-bob-wigs", target: "", levels: 0, }, { title: "Lace Wig", url: "\/collections\/lace-wig", target: "", levels: 0, }, { title: "Lace Front Wigs", url: "\/collections\/lace-front-wigs", target: "", levels: 0, }, ] }, { title: "Style", url: "\/collections\/style", target: "", levels: 1, children: [ { title: "Frontal Wig", url: "\/collections\/frontal-wig", target: "", levels: 0, }, { title: "Pixie Cut Wig", url: "\/collections\/pixie-cut-wig", target: "", levels: 0, }, { title: "Braided Wigs", url: "\/collections\/braided-wigs", target: "", levels: 0, }, { title: "Blonde Wig", url: "\/collections\/blonde-wig", target: "", levels: 0, }, { title: "Curly Wigs", url: "\/collections\/curly-wigs", target: "", levels: 0, }, { title: "Bob Wigs", url: "\/collections\/bob-wigs", target: "", levels: 0, }, { title: "Short Wigs", url: "\/collections\/short-wigs", target: "", levels: 0, }, { title: "Curly Frontal Wig", url: "\/collections\/curly-frontal-wig", target: "", levels: 0, }, { title: "Short Curly Wigs", url: "\/collections\/short-curly-wigs", target: "", levels: 0, }, { title: "Bob Cut Wigs", url: "\/collections\/bob-cut-wigs", target: "", levels: 0, }, { title: "Curly Bob Wig", url: "\/collections\/curly-bob-wig", target: "", levels: 0, }, { title: "Water Wave Wig", url: "\/collections\/water-wave-wig", target: "", levels: 0, }, { title: "Body Wave Wig", url: "\/collections\/body-wave-wig", target: "", levels: 0, }, { title: "Deep Wave Wig", url: "\/collections\/deep-wave-wig", target: "", levels: 0, }, { title: "Curl Activator For Wigs", url: "\/collections\/curl-activator-for-wigs", target: "", levels: 0, }, { title: "Fringe Wig", url: "\/collections\/fringe-wig", target: "", levels: 0, }, { title: "Straight Hair", url: "\/collections\/straight-hair", target: "", levels: 0, }, { title: "Full Frontal Wig", url: "\/collections\/full-frontal-wig", target: "", levels: 0, }, { title: "Headband Wigs", url: "\/collections\/headband-wigs", target: "", levels: 0, }, ] }, { title: "Wig Inches", url: "\/collections\/wig-inches", target: "", levels: 1, children: [ { title: "8 Inch Bob Wig", url: "\/collections\/8-inch-bob-wig", target: "", levels: 0, }, { title: "10 Inch Bob Wig", url: "\/collections\/10-inch-bob-wig", target: "", levels: 0, }, { title: "8 Inch Wig", url: "\/collections\/8-inch-wig", target: "", levels: 0, }, { title: "10 Inch Wig", url: "\/collections\/10-inch-wig", target: "", levels: 0, }, { title: "12 Inch Wig", url: "\/collections\/12-inch-wig", target: "", levels: 0, }, { title: "14 Inch Wig", url: "\/collections\/14-inch-wig", target: "", levels: 0, }, { title: "16 Inch Wig", url: "\/collections\/16-inch-wig", target: "", levels: 0, }, { title: "18 Inch Wig", url: "\/collections\/18-inch-wig", target: "", levels: 0, }, { title: "20 Inch Wig", url: "\/collections\/20-inch-wig", target: "", levels: 0, }, { title: "26 Inch Wig", url: "\/collections\/26-inch-wig", target: "", levels: 0, }, ] }, ] }, { id: 60668861, title: "Hair Pieces & Extensions", url: "\/collections\/hair-pieces-extensions", target: "", levels: 1, product0: { id: ("46dde397-de95-420d-b51a-586509ba065f") }, children: [ { title: "Hair Extensions", url: "\/collections\/hair-extensions", target: "", levels: 0, children: [ ] }, { title: "Hair Pieces", url: "\/collections\/hair-pieces", target: "", levels: 0, children: [ ] }, { title: "Curly Hair Pieces", url: "\/collections\/curly-hair-pieces", target: "", levels: 0, children: [ ] }, ] }, { id: 60668869, title: "Care & Accessories", url: "\/collections\/care-accessories", target: "", levels: 1, product0: { id: ("19418276-2e21-407d-9026-65cad8a2a431") }, children: [ { title: "Wig Cap", url: "\/collections\/wig-cap", target: "", levels: 0, children: [ ] }, { title: "Elastic Band For Wigs", url: "\/collections\/elastic-band-for-wigs", target: "", levels: 0, children: [ ] }, { title: "Wax Stick For Wigs", url: "\/collections\/wax-stick-for-wigs", target: "", levels: 0, children: [ ] }, { title: "Wig Glue", url: "\/collections\/wig-glue", target: "", levels: 0, children: [ ] }, { title: "Wig Stand", url: "\/collections\/wig-stand", target: "", levels: 0, children: [ ] }, { title: "Mousse For Wigs", url: "\/collections\/mousse-for-wigs", target: "", levels: 0, children: [ ] }, { title: "Hairspray", url: "\/collections\/hairspray", target: "", levels: 0, children: [ ] }, { title: "Hair Protein", url: "\/collections\/hair-protein", target: "", levels: 0, children: [ ] }, { title: "Hair Vitamin", url: "\/collections\/hair-vitamin", target: "", levels: 0, children: [ ] }, { title: "Hair Dryer", url: "\/collections\/hair-dryer", target: "", levels: 0, children: [ ] }, { title: "Hair Straightener", url: "\/collections\/hair-straightener", target: "", levels: 0, children: [ ] }, ] }, { id: 60668893, title: "Wigs For Sale", url: "\/collections\/wigs-for-sale", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, ].slice(offset); linkList = formatLinks(linkList); const hasChild = linkList.some(link => !!(link.children && link.children.length || link.product0.id)); return `
${link.title}
${link.tag.label}
${second_link.title}
${second_link.tag.label}
${third_links.title}
${third_links.tag.label}
${link.title}
${link.tag.label}
` })()}
Home
Wigs
Department
Women's Wigs
Wigs For Black Women
Men's Wigs
Kid's Wigs
Party Wigs
Hair Type
Synthetic Wigs
Closure Wig
Human Hair Wigs
Brazilian Hair Wigs
Peruvian Hair Wigs
Afro Wig
Full Lace Wigs
Lace Front Bob Wigs
Lace Wig
Lace Front Wigs
Style
Frontal Wig
Pixie Cut Wig
Braided Wigs
Blonde Wig
Curly Wigs
Bob Wigs
Short Wigs
Curly Frontal Wig
Short Curly Wigs
Bob Cut Wigs
Curly Bob Wig
Water Wave Wig
Body Wave Wig
Deep Wave Wig
Curl Activator For Wigs
Fringe Wig
Straight Hair
Full Frontal Wig
Headband Wigs
Wig Inches
8 Inch Bob Wig
10 Inch Bob Wig
8 Inch Wig
10 Inch Wig
12 Inch Wig
14 Inch Wig
16 Inch Wig
18 Inch Wig
20 Inch Wig
26 Inch Wig
Save
R4,630.00
Save
R4,630.00
Frontal Wig 13*4 Lace Frontal Human Hair Wigs Short Bob Wig
R4,870.00
R9,500.00
Hair Pieces & Extensions
Hair Extensions
Hair Pieces
Curly Hair Pieces
Save
R260.00
Save
R260.00
Synthetic Two-Tone Hair Extensions
R310.00
R570.00
Care & Accessories
Wig Cap
Elastic Band For Wigs
Wax Stick For Wigs
Wig Glue
Wig Stand
Mousse For Wigs
Hairspray
Hair Protein
Hair Vitamin
Hair Dryer
Hair Straightener
Save
R150.00
Save
R150.00
Camellia Oil Shampoo
R290.00
R440.00
Wigs For Sale
More links
${(function(){ const formatLinks = (links) => { return links.map(link => { link.tag = tags[link.title.toUpperCase()] || {}; link.target_attr = link.target == '_blank' ? 'target="_blank"' : ''; link.href_attr = link.url ? `href="${link.url}"` : ''; if(link.children && link.children.length){ link.children = formatLinks(link.children); } return link; }) }; const tags = "{}"; let linkList = [ { id: 60668761, title: "Home", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 60668763, title: "Wigs", url: "\/collections\/wigs", target: "", levels: 2, product0: { id: ("f28c665a-2bc9-4ac0-96f7-95d31e1e0831") }, children: [ { title: "Department", url: "\/collections\/wigs", target: "", levels: 1, children: [ { title: "Women's Wigs", url: "\/collections\/womens-wigs", target: "", levels: 0, }, { title: "Wigs For Black Women", url: "\/collections\/wigs-for-black-women", target: "", levels: 0, }, { title: "Men's Wigs", url: "\/collections\/wigs-for-men", target: "", levels: 0, }, { title: "Kid's Wigs", url: "\/collections\/kids-wigs", target: "", levels: 0, }, { title: "Party Wigs", url: "\/collections\/party-wigs", target: "", levels: 0, }, ] }, { title: "Hair Type", url: "\/collections\/hair-type", target: "", levels: 1, children: [ { title: "Synthetic Wigs", url: "\/collections\/synthetic-wigs", target: "", levels: 0, }, { title: "Closure Wig", url: "\/collections\/closure-wig", target: "", levels: 0, }, { title: "Human Hair Wigs", url: "\/collections\/human-hair-wigs", target: "", levels: 0, }, { title: "Brazilian Hair Wigs", url: "\/collections\/brazilian-hair-wigs", target: "", levels: 0, }, { title: "Peruvian Hair Wigs", url: "\/collections\/peruvian-hair-wigs", target: "", levels: 0, }, { title: "Afro Wig", url: "\/collections\/afro-wig", target: "", levels: 0, }, { title: "Full Lace Wigs", url: "\/collections\/full-lace-wigs", target: "", levels: 0, }, { title: "Lace Front Bob Wigs", url: "\/collections\/lace-front-bob-wigs", target: "", levels: 0, }, { title: "Lace Wig", url: "\/collections\/lace-wig", target: "", levels: 0, }, { title: "Lace Front Wigs", url: "\/collections\/lace-front-wigs", target: "", levels: 0, }, ] }, { title: "Style", url: "\/collections\/style", target: "", levels: 1, children: [ { title: "Frontal Wig", url: "\/collections\/frontal-wig", target: "", levels: 0, }, { title: "Pixie Cut Wig", url: "\/collections\/pixie-cut-wig", target: "", levels: 0, }, { title: "Braided Wigs", url: "\/collections\/braided-wigs", target: "", levels: 0, }, { title: "Blonde Wig", url: "\/collections\/blonde-wig", target: "", levels: 0, }, { title: "Curly Wigs", url: "\/collections\/curly-wigs", target: "", levels: 0, }, { title: "Bob Wigs", url: "\/collections\/bob-wigs", target: "", levels: 0, }, { title: "Short Wigs", url: "\/collections\/short-wigs", target: "", levels: 0, }, { title: "Curly Frontal Wig", url: "\/collections\/curly-frontal-wig", target: "", levels: 0, }, { title: "Short Curly Wigs", url: "\/collections\/short-curly-wigs", target: "", levels: 0, }, { title: "Bob Cut Wigs", url: "\/collections\/bob-cut-wigs", target: "", levels: 0, }, { title: "Curly Bob Wig", url: "\/collections\/curly-bob-wig", target: "", levels: 0, }, { title: "Water Wave Wig", url: "\/collections\/water-wave-wig", target: "", levels: 0, }, { title: "Body Wave Wig", url: "\/collections\/body-wave-wig", target: "", levels: 0, }, { title: "Deep Wave Wig", url: "\/collections\/deep-wave-wig", target: "", levels: 0, }, { title: "Curl Activator For Wigs", url: "\/collections\/curl-activator-for-wigs", target: "", levels: 0, }, { title: "Fringe Wig", url: "\/collections\/fringe-wig", target: "", levels: 0, }, { title: "Straight Hair", url: "\/collections\/straight-hair", target: "", levels: 0, }, { title: "Full Frontal Wig", url: "\/collections\/full-frontal-wig", target: "", levels: 0, }, { title: "Headband Wigs", url: "\/collections\/headband-wigs", target: "", levels: 0, }, ] }, { title: "Wig Inches", url: "\/collections\/wig-inches", target: "", levels: 1, children: [ { title: "8 Inch Bob Wig", url: "\/collections\/8-inch-bob-wig", target: "", levels: 0, }, { title: "10 Inch Bob Wig", url: "\/collections\/10-inch-bob-wig", target: "", levels: 0, }, { title: "8 Inch Wig", url: "\/collections\/8-inch-wig", target: "", levels: 0, }, { title: "10 Inch Wig", url: "\/collections\/10-inch-wig", target: "", levels: 0, }, { title: "12 Inch Wig", url: "\/collections\/12-inch-wig", target: "", levels: 0, }, { title: "14 Inch Wig", url: "\/collections\/14-inch-wig", target: "", levels: 0, }, { title: "16 Inch Wig", url: "\/collections\/16-inch-wig", target: "", levels: 0, }, { title: "18 Inch Wig", url: "\/collections\/18-inch-wig", target: "", levels: 0, }, { title: "20 Inch Wig", url: "\/collections\/20-inch-wig", target: "", levels: 0, }, { title: "26 Inch Wig", url: "\/collections\/26-inch-wig", target: "", levels: 0, }, ] }, ] }, { id: 60668861, title: "Hair Pieces & Extensions", url: "\/collections\/hair-pieces-extensions", target: "", levels: 1, product0: { id: ("46dde397-de95-420d-b51a-586509ba065f") }, children: [ { title: "Hair Extensions", url: "\/collections\/hair-extensions", target: "", levels: 0, children: [ ] }, { title: "Hair Pieces", url: "\/collections\/hair-pieces", target: "", levels: 0, children: [ ] }, { title: "Curly Hair Pieces", url: "\/collections\/curly-hair-pieces", target: "", levels: 0, children: [ ] }, ] }, { id: 60668869, title: "Care & Accessories", url: "\/collections\/care-accessories", target: "", levels: 1, product0: { id: ("19418276-2e21-407d-9026-65cad8a2a431") }, children: [ { title: "Wig Cap", url: "\/collections\/wig-cap", target: "", levels: 0, children: [ ] }, { title: "Elastic Band For Wigs", url: "\/collections\/elastic-band-for-wigs", target: "", levels: 0, children: [ ] }, { title: "Wax Stick For Wigs", url: "\/collections\/wax-stick-for-wigs", target: "", levels: 0, children: [ ] }, { title: "Wig Glue", url: "\/collections\/wig-glue", target: "", levels: 0, children: [ ] }, { title: "Wig Stand", url: "\/collections\/wig-stand", target: "", levels: 0, children: [ ] }, { title: "Mousse For Wigs", url: "\/collections\/mousse-for-wigs", target: "", levels: 0, children: [ ] }, { title: "Hairspray", url: "\/collections\/hairspray", target: "", levels: 0, children: [ ] }, { title: "Hair Protein", url: "\/collections\/hair-protein", target: "", levels: 0, children: [ ] }, { title: "Hair Vitamin", url: "\/collections\/hair-vitamin", target: "", levels: 0, children: [ ] }, { title: "Hair Dryer", url: "\/collections\/hair-dryer", target: "", levels: 0, children: [ ] }, { title: "Hair Straightener", url: "\/collections\/hair-straightener", target: "", levels: 0, children: [ ] }, ] }, { id: 60668893, title: "Wigs For Sale", url: "\/collections\/wigs-for-sale", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, ].slice(offset); linkList = formatLinks(linkList); const hasChild = linkList.some(link => !!(link.children && link.children.length || link.product0.id)); return `
${link.title}
${link.tag.label}
${second_link.title}
${second_link.tag.label}
${third_links.title}
${third_links.tag.label}
${link.title}
${link.tag.label}
` })()}
Log in
Create an account
${data.data && data.data.count}
${(function(){ if (data === undefined || typeof data !== 'string' || data == '') return '
'; const keyword = encodeURIComponent(data); return `
View more
Your search for '${data}' did not yield any results.
` })()}
Home
Wigs
Wigs
Department
Department
Women's Wigs
Wigs For Black Women
Men's Wigs
Kid's Wigs
Party Wigs
Hair Type
Hair Type
Synthetic Wigs
Closure Wig
Human Hair Wigs
Brazilian Hair Wigs
Peruvian Hair Wigs
Afro Wig
Full Lace Wigs
Lace Front Bob Wigs
Lace Wig
Lace Front Wigs
Style
Style
Frontal Wig
Pixie Cut Wig
Braided Wigs
Blonde Wig
Curly Wigs
Bob Wigs
Short Wigs
Curly Frontal Wig
Short Curly Wigs
Bob Cut Wigs
Curly Bob Wig
Water Wave Wig
Body Wave Wig
Deep Wave Wig
Curl Activator For Wigs
Fringe Wig
Straight Hair
Full Frontal Wig
Headband Wigs
Wig Inches
Wig Inches
8 Inch Bob Wig
10 Inch Bob Wig
8 Inch Wig
10 Inch Wig
12 Inch Wig
14 Inch Wig
16 Inch Wig
18 Inch Wig
20 Inch Wig
26 Inch Wig
Hair Pieces & Extensions
Hair Pieces & Extensions
Hair Extensions
Hair Pieces
Curly Hair Pieces
Care & Accessories
Care & Accessories
Wig Cap
Elastic Band For Wigs
Wax Stick For Wigs
Wig Glue
Wig Stand
Mousse For Wigs
Hairspray
Hair Protein
Hair Vitamin
Hair Dryer
Hair Straightener
Wigs For Sale
Log in
(function(){ let w = window.innerWidth; function setHeaderCssVar() { const headerEle = document.getElementById('shoplaza-section-header'); if(!headerEle){ return }; document.body.style.setProperty('--window-height', `${window.innerHeight}px`); document.body.style.setProperty('--header-height', `${headerEle.clientHeight}px`); const mdScorllHideEle = headerEle.querySelector('.header__mobile .header__scroll_hide'); if (mdScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-md', `${mdScorllHideEle.clientHeight}px`); } const pcScorllHideEle = headerEle.querySelector('.header__desktop .header__scroll_hide'); if (pcScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-pc', `${pcScorllHideEle.clientHeight}px`); } } function handlResize() { if(w == window.innerWidth){return}; w = window.innerWidth; setHeaderCssVar(); }; function init(){ setHeaderCssVar(); window.removeEventListener('resize', window._theme_header_listener) window._theme_header_listener = handlResize; window.addEventListener('resize', window._theme_header_listener); } init(); })();
Register
Please fill in the information below:
${data.errors && data.errors[0]}
First name
First name is required.
Contains invalid characters
Last name
Last name is required.
Contains invalid characters
Email
Email is required
Please enter a valid email.
Password
Password is required.
Password must be between 6-16 characters long.
Subscribe to get latest offers and discounts.
Register
View Cart
${function(){ const productData = data.product; let product_change_event = '', mouse_over_event = ' '; mouse_out_event = ''; const product_options = productData.options.filter(Boolean) || []; for (let opt of product_options) { product_change_event = product_change_event + `quick-shop-selected-variant-${opt.name}.rerender(data=event.selectedValues.${opt.name});`; mouse_out_event = mouse_out_event + `quick-shop-selected-variant-${opt.name}.rerender(data=event.selectData.${opt.name});`; mouse_over_event = mouse_over_event + `@${opt.name}Mouseover="quick-shop-selected-variant-${opt.name}.rerender(data=event);"`; } const selectedVariant = productData.variants.find(v => v.available) || productData.variants[0]; const statusLan = ((selectedVariant && !selectedVariant.available) || (!selectedVariant && !productData.available)) ? "Sold out" : "Add to cart"; return `
${statusLan}
` }()}
${function(){ const currentSelectVariant = data.variant; const defaultVariant = (data.product && data.product.variants && data.product.variants[0]); const variantData = currentSelectVariant || defaultVariant || data; const retail_price = variantData.retail_price || 0; return `
Retail
` }()}
${function(){ const wholesale_enabled = false; const qty = data.quantity || 1; const currentSelectVariant = data.variant; const defaultVariant = (data.product && data.product.variants && data.product.variants[0]); const productVariant = null; const variantData = currentSelectVariant || defaultVariant || productVariant; const wholesale_price = variantData.wholesale_price || []; if(wholesale_enabled && wholesale_price.length > 0) { let wholesaleIndex = wholesale_price.findIndex(item => { return item.min_quantity > qty; }); if(wholesaleIndex < 0){ wholesaleIndex = wholesale_price.length - 1; }else if(wholesaleIndex > 0){ wholesaleIndex = wholesaleIndex - 1; } const wholesalePrice = wholesale_price[wholesaleIndex] || ''; return `
` }else { const price = variantData && variantData.price; return price != undefined ? `
` : '
'; } }()}
${function() { let variantImageShowed = false; const currentProduct = data.product; return (currentProduct.options || []).map((option, index) => { const optionName = option.name || ''; const position = `option${index + 1}`; let isThumbImage = false; if (currentProduct.need_variant_image && !variantImageShowed) { const variantNames = ["color"] || []; for (let i = 0, len = variantNames.length; i < len; i++) { const name = variantNames[i].toLowerCase(); if (name === optionName.toLowerCase()) { isThumbImage = true; variantImageShowed = true; } } } const variantType = "button"; const thumbStyle = "image_with_text"; return `
${optionName}:
${option.values.map((value, idx) => { const selected = data.selectedValues[optionName] == value ? 'checked' : ''; let thumbImage = null; if (isThumbImage) { const variants = currentProduct.variants; for (let i = 0, len = variants.length; i < len; i++) { const variant = variants[i]; if (variant[position] == value && thumbImage == null) { thumbImage = variant.image; break; } } } return `
${value}
` }).join('')}
${optionName}
${option.values.map(value => { const selected = data.selectedValues[optionName] == value ? 'selected' : ''; return `
${value}
` }).join('')}
` }).join(''); }()}
${data.originData && data.originData.value || data.value}