${(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}
` })()}
Free Shipping on Order Over $69
Free Shipping on Order Over $69
Log in
Create an account
${data.data && data.data.count}
Home
Classic Linen& Cottom
Dresses
Bottoms
Shirts
Save
$27.78
Save
$27.78
Simple Waist Embroidery Mid -sleeved Dress
$37.22
$65.00
Spring & Summer
Summer Wardrobe
Linen & Cotton
Linen Jumpsuit
Vintage Linen Dresses
Backless Dresses
Chic Two-Piece Set
Midi Dresses
Mini Dresses
Save
$37.51
Save
$37.51
Chic slit casual two-piece set
$56.79
$94.30
Hoodie & Sweatshirt
Women's Hoodies & Tees
Men's Hoodies & Tees
Merry Christmas
Save
$0.70
Save
$0.70
Alphabet Knit Tube Socks
$4.86
$5.56
+1
Autumn & Winter
Split Knitted Dresses
Mini Sweater Dresses
Coat
Tops
Bottoms
Jeans
Save
$39.28
Save
$39.28
Casual One Size Split Sweater Dress
$58.32
$97.60
+3
Delicate Accessories
Woven bags
Scarfs & Socks
Necklaces
Earrings
Rings
Save
$16.23
Save
$16.23
Party Vintage Pearl Multilayer Necklace Clavicle Chain
$34.87
$51.10
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: 58906725, title: "Home", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 58906727, title: "Classic Linen& Cottom", url: "\/collections\/flat-lay", target: "", levels: 1, product0: { id: ("04669338-b0a9-44be-8ea9-0bd7cf6ef20e") }, children: [ { title: "Dresses", url: "\/collections\/flat-lay-dresses", target: "", levels: 0, children: [ ] }, { title: "Bottoms", url: "\/collections\/flat-lay-skirts", target: "", levels: 0, children: [ ] }, { title: "Shirts", url: "\/collections\/flat-lay-tops", target: "", levels: 0, children: [ ] }, ] }, { id: 58906735, title: "Spring & Summer", url: "\/collections\/2024-spring-summer", target: "", levels: 1, product0: { id: ("f08a6975-355a-4e15-bfb7-7c0ecb2fc3d5") }, children: [ { title: "Summer Wardrobe", url: "\/collections\/summer-wardrobe", target: "", levels: 0, children: [ ] }, { title: "Linen & Cotton", url: "\/collections\/linen-cotton", target: "", levels: 0, children: [ ] }, { title: "Linen Jumpsuit", url: "\/collections\/linen-jumpsuit", target: "", levels: 0, children: [ ] }, { title: "Vintage Linen Dresses", url: "\/collections\/vintage-linen-dresses", target: "", levels: 0, children: [ ] }, { title: "Backless Dresses", url: "\/collections\/best-seller", target: "", levels: 0, children: [ ] }, { title: "Chic Two-Piece Set", url: "\/collections\/chic-two-piece-set", target: "", levels: 0, children: [ ] }, { title: "Midi Dresses", url: "\/collections\/chic-backless-dresses-sets", target: "", levels: 0, children: [ ] }, { title: "Mini Dresses", url: "\/collections\/mini-dress", target: "", levels: 0, children: [ ] }, ] }, { id: 58906753, title: "Hoodie & Sweatshirt", url: "\/collections\/hoodie-sweatshirt", target: "", levels: 1, product0: { id: ("eae79edb-d71e-4413-81d6-dfcd0f136058") }, children: [ { title: "Women's Hoodies & Tees", url: "\/collections\/womens-hoodies-tees", target: "", levels: 0, children: [ ] }, { title: "Men's Hoodies & Tees", url: "\/collections\/mens-hoodies-tees", target: "", levels: 0, children: [ ] }, { title: "Merry Christmas", url: "\/collections\/merry-christmas", target: "", levels: 0, children: [ ] }, ] }, { id: 58906761, title: "Autumn & Winter", url: "\/collections\/split-casual-knitted-dresses", target: "", levels: 1, product0: { id: ("93e6d8c5-49cc-4150-a9c0-5b852e59576c") }, children: [ { title: "Split Knitted Dresses", url: "\/collections\/split-casual-knitted-dresses", target: "", levels: 0, children: [ ] }, { title: "Mini Sweater Dresses ", url: "\/collections\/mini-sweater-dresses", target: "", levels: 0, children: [ ] }, { title: "Coat", url: "\/collections\/coat", target: "", levels: 0, children: [ ] }, { title: "Tops", url: "\/collections\/cozy-tops", target: "", levels: 0, children: [ ] }, { title: "Bottoms", url: "\/collections\/winter-pants", target: "", levels: 0, children: [ ] }, { title: "Jeans", url: "\/collections\/jeans", target: "", levels: 0, children: [ ] }, ] }, { id: 58906775, title: "Delicate Accessories", url: "\/collections\/delicate-accessories", target: "", levels: 1, product0: { id: ("4f92b59d-0252-46bf-a9f7-142469af8c48") }, children: [ { title: "Woven bags", url: "\/collections\/woven-accessories", target: "", levels: 0, children: [ ] }, { title: "Scarfs & Socks", url: "\/collections\/scarfs-socks", target: "", levels: 0, children: [ ] }, { title: "Necklaces", url: "\/collections\/necklaces", target: "", levels: 0, children: [ ] }, { title: "Earrings", url: "\/collections\/earrings", target: "", levels: 0, children: [ ] }, { title: "Rings", url: "\/collections\/rings", target: "", levels: 0, 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
Classic Linen& Cottom
Dresses
Bottoms
Shirts
Save
$27.78
Save
$27.78
Simple Waist Embroidery Mid -sleeved Dress
$37.22
$65.00
Spring & Summer
Summer Wardrobe
Linen & Cotton
Linen Jumpsuit
Vintage Linen Dresses
Backless Dresses
Chic Two-Piece Set
Midi Dresses
Mini Dresses
Save
$37.51
Save
$37.51
Chic slit casual two-piece set
$56.79
$94.30
Hoodie & Sweatshirt
Women's Hoodies & Tees
Men's Hoodies & Tees
Merry Christmas
Save
$0.70
Save
$0.70
Alphabet Knit Tube Socks
$4.86
$5.56
+1
Autumn & Winter
Split Knitted Dresses
Mini Sweater Dresses
Coat
Tops
Bottoms
Jeans
Save
$39.28
Save
$39.28
Casual One Size Split Sweater Dress
$58.32
$97.60
+3
Delicate Accessories
Woven bags
Scarfs & Socks
Necklaces
Earrings
Rings
Save
$16.23
Save
$16.23
Party Vintage Pearl Multilayer Necklace Clavicle Chain
$34.87
$51.10
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: 58906725, title: "Home", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 58906727, title: "Classic Linen& Cottom", url: "\/collections\/flat-lay", target: "", levels: 1, product0: { id: ("04669338-b0a9-44be-8ea9-0bd7cf6ef20e") }, children: [ { title: "Dresses", url: "\/collections\/flat-lay-dresses", target: "", levels: 0, children: [ ] }, { title: "Bottoms", url: "\/collections\/flat-lay-skirts", target: "", levels: 0, children: [ ] }, { title: "Shirts", url: "\/collections\/flat-lay-tops", target: "", levels: 0, children: [ ] }, ] }, { id: 58906735, title: "Spring & Summer", url: "\/collections\/2024-spring-summer", target: "", levels: 1, product0: { id: ("f08a6975-355a-4e15-bfb7-7c0ecb2fc3d5") }, children: [ { title: "Summer Wardrobe", url: "\/collections\/summer-wardrobe", target: "", levels: 0, children: [ ] }, { title: "Linen & Cotton", url: "\/collections\/linen-cotton", target: "", levels: 0, children: [ ] }, { title: "Linen Jumpsuit", url: "\/collections\/linen-jumpsuit", target: "", levels: 0, children: [ ] }, { title: "Vintage Linen Dresses", url: "\/collections\/vintage-linen-dresses", target: "", levels: 0, children: [ ] }, { title: "Backless Dresses", url: "\/collections\/best-seller", target: "", levels: 0, children: [ ] }, { title: "Chic Two-Piece Set", url: "\/collections\/chic-two-piece-set", target: "", levels: 0, children: [ ] }, { title: "Midi Dresses", url: "\/collections\/chic-backless-dresses-sets", target: "", levels: 0, children: [ ] }, { title: "Mini Dresses", url: "\/collections\/mini-dress", target: "", levels: 0, children: [ ] }, ] }, { id: 58906753, title: "Hoodie & Sweatshirt", url: "\/collections\/hoodie-sweatshirt", target: "", levels: 1, product0: { id: ("eae79edb-d71e-4413-81d6-dfcd0f136058") }, children: [ { title: "Women's Hoodies & Tees", url: "\/collections\/womens-hoodies-tees", target: "", levels: 0, children: [ ] }, { title: "Men's Hoodies & Tees", url: "\/collections\/mens-hoodies-tees", target: "", levels: 0, children: [ ] }, { title: "Merry Christmas", url: "\/collections\/merry-christmas", target: "", levels: 0, children: [ ] }, ] }, { id: 58906761, title: "Autumn & Winter", url: "\/collections\/split-casual-knitted-dresses", target: "", levels: 1, product0: { id: ("93e6d8c5-49cc-4150-a9c0-5b852e59576c") }, children: [ { title: "Split Knitted Dresses", url: "\/collections\/split-casual-knitted-dresses", target: "", levels: 0, children: [ ] }, { title: "Mini Sweater Dresses ", url: "\/collections\/mini-sweater-dresses", target: "", levels: 0, children: [ ] }, { title: "Coat", url: "\/collections\/coat", target: "", levels: 0, children: [ ] }, { title: "Tops", url: "\/collections\/cozy-tops", target: "", levels: 0, children: [ ] }, { title: "Bottoms", url: "\/collections\/winter-pants", target: "", levels: 0, children: [ ] }, { title: "Jeans", url: "\/collections\/jeans", target: "", levels: 0, children: [ ] }, ] }, { id: 58906775, title: "Delicate Accessories", url: "\/collections\/delicate-accessories", target: "", levels: 1, product0: { id: ("4f92b59d-0252-46bf-a9f7-142469af8c48") }, children: [ { title: "Woven bags", url: "\/collections\/woven-accessories", target: "", levels: 0, children: [ ] }, { title: "Scarfs & Socks", url: "\/collections\/scarfs-socks", target: "", levels: 0, children: [ ] }, { title: "Necklaces", url: "\/collections\/necklaces", target: "", levels: 0, children: [ ] }, { title: "Earrings", url: "\/collections\/earrings", target: "", levels: 0, children: [ ] }, { title: "Rings", url: "\/collections\/rings", target: "", levels: 0, 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
Classic Linen& Cottom
Classic Linen& Cottom
Dresses
Bottoms
Shirts
Spring & Summer
Spring & Summer
Summer Wardrobe
Linen & Cotton
Linen Jumpsuit
Vintage Linen Dresses
Backless Dresses
Chic Two-Piece Set
Midi Dresses
Mini Dresses
Hoodie & Sweatshirt
Hoodie & Sweatshirt
Women's Hoodies & Tees
Men's Hoodies & Tees
Merry Christmas
Autumn & Winter
Autumn & Winter
Split Knitted Dresses
Mini Sweater Dresses
Coat
Tops
Bottoms
Jeans
Delicate Accessories
Delicate Accessories
Woven bags
Scarfs & Socks
Necklaces
Earrings
Rings
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(); })();
Home
/
Mini Dress
Mini Dress
602 Products
${function(){ const product_total = data.total if(product_total <= 1){ return `${product_total} Product` } return `${product_total} Products` }()}
Save
$22.70
Save
$22.70
Casual V Neck Belted High Waist Cotton- Linen Dress
$39.67
$62.37
Save
$30.45
Save
$30.45
Cross Back Cocktail Dress
$37.40
$67.85
Save
$26.14
Save
$26.14
Casual Irregularity Hem Mini Shirt Dress
$27.21
$53.35
+1
Save
$18.96
Save
$18.96
Casual Solid Button Shirt Collar Blouse
$28.44
$47.40
+2
Save
$23.68
Save
$23.68
Women's Fake Two Loose Long Sleeve Cotton Linen Skirts Dress
$34.59
$58.27
+1
Save
$29.54
Save
$29.54
Square Neck Casual Maxi Dress
$39.55
$69.09
Save
$21.92
Save
$21.92
Solid color A-Line Top
$23.75
$45.67
+2
Save
$20.19
Save
$20.19
Comfortable rib elastic waist women's trousers
$25.69
$45.88
+2
Save
$20.84
Save
$20.84
Women's loose solid color wide-leg pants
$24.47
$45.31
+1
Save
$21.13
Save
$21.13
Double Pockets Elastic Waist Cozy Pants
$24.81
$45.94
+1
Save
$26.52
Save
$26.52
Casual Drawstring Loose Shape Shirt Dress
$37.08
$63.60
Save
$27.33
Save
$27.33
Casual Classic Shirt Dress
$38.20
$65.53
Save
$13.19
Save
$13.19
Women's V-neck Plus Size Shirt
$23.06
$36.25
Save
$7.53
Save
$7.53
Elegant Loose Long Sleeve Shirt Top
$24.47
$32.00
Save
$20.55
Save
$20.55
Classic Solid Color Skirt
$29.57
$50.12
Save
$21.82
Save
$21.82
Elegant Waist Belted Maxi Dress
$38.13
$59.95
Save
$19.20
Save
$19.20
Plus Size Women's Loose Shoulder Sleeve Cotton Dress
$32.05
$51.25
Save
$16.66
Save
$16.66
Women's solid color casual stand collar 3/4 sleeves shirt
$23.98
$40.64
Save
$14.16
Save
$14.16
Fashion Contrast Stitching Midi Dress
$21.61
$35.77
Save
$24.29
Save
$24.29
Casual V-Neck Pleated Mini Dress
$37.08
$61.37
Save
$17.67
Save
$17.67
Women's thin cotton and linen 9-point sleeve shirt
$26.51
$44.18
+2
Save
$23.08
Save
$23.08
Ladies Striped Pocket Loose Mini Dress
$33.21
$56.29
Save
$25.29
Save
$25.29
Solid Color Button Fly Daily Casual Dresses
$32.41
$57.70
+1
Save
$18.94
Save
$18.94
WOMEN FASHION LONG SLEEVE CASUAL BLOUSE
$26.15
$45.09
Save
$27.49
Save
$27.49
Solid Draped V-neck Half Sleeves Casual Blouse
$28.61
$56.10
+4
Save
$26.57
Save
$26.57
Women's Solid Color Cotton Loose Casual Strap Pants
$35.56
$62.13
Save
$23.03
Save
$23.03
Ladies casual long sleeve dress
$36.75
$59.78
+2
Save
$26.90
Save
$26.90
Gauzy Cotton Endless Spring Dress
$42.94
$69.84
Save
$18.86
Save
$18.86
Vintage Cottage Home Garden Double Pockets Apron Pinafore Dress
$24.18
$43.04
Save
$26.46
Save
$26.46
Linen Round Neck Two-pieces Set
$40.40
$66.86
Save
$15.67
Save
$15.67
Spaghetti Strap Linen Blend Top
$16.31
$31.98
Save
$27.12
Save
$27.12
Square collar cotton loose dress
$36.29
$63.41
Save
$25.15
Save
$25.15
Ladies Literary Retro Cotton&Linen V-neck Large Swing Dress-3color,8size
$35.16
$60.31
Save
$18.08
Save
$18.08
Woman's Plus Size Cotton and Linen Half Sleeve Solid Color Blouse
$20.39
$38.47
Save
$10.97
Save
$10.97
Summer Women PANT Flat Pan Linen Pocket
$29.68
$40.65
+1
Save
$18.20
Save
$18.20
Solid Color High-waist Pleated Casual Pants
$26.19
$44.39
+1
Save
$15.27
Save
$15.27
Lace embroidery long-sleeved shirt
$26.68
$41.95
9 Colors Crew Neck Women Plus Size Dresses
$36.31
+1
Save
$29.28
Save
$29.28
Elegant and Delicate Maxi White Dress
$42.77
$72.05
Save
$33.62
Save
$33.62
Chic Sexy Back Summer Dress
$39.56
$73.18
No products found
Use fewer filters or
clear all
Recently Viewed
Cart
Your shopping bag is empty
Continue shopping
${item.product_title}
${item.options.map(option => option.value).join('/')}
${propertie.name}/${propertie.isImage ? `
View image
` : propertie.value}
Free gift
Mixed Lot
*${item.quantity}
${item.item_text}
${discount_item.title}
(-
)
${(function(){ var total_price = data.total_price; var postageFreeAmount = 69; var freeAmount = postageFreeAmount - total_price; var isFreeShipping = freeAmount <= 0; var rate = Math.min(total_price / postageFreeAmount * 100, 100).toFixed(2); const textArray = ("Spend {{ amount }} more and get free shipping!").split(/\{\{\s*amount\s*\}\}/); const textArrayHtml = textArray.map((text, index) => { if (index == 0) { return `
${text}
`; } return `
${text}
`; }).join(''); return `
${textArrayHtml}
You've got free shipping
${rate}%
` })()}
Total:
${function() { const textArray = ("Save {{save_amount}}").split(/\{\{\s*save_amount\}\}/); if (textArray.length > 0 && textArray.length < 2) { textArray.push(''); } return textArray.map((text, index) => { if (index == 0) { return `
${text}
`; } return `
${text}
`; }).join(''); }()}
${function() { const textArray = ("Save {{save_amount}}").split(/\{\{\s*save_amount\}\}/); if (textArray.length > 0 && textArray.length < 2) { textArray.push(''); } return textArray.map((text, index) => { if (index == 0) { return `
${text}
`; } return `
${text}
`; }).join(''); }()}
${discount_application.title}:
-
${data.invalid_msg}
Check out
Taxes and shipping calculated at checkout
${(function(){ var total_price = data.total_price; var postageFreeAmount = 69; var freeAmount = postageFreeAmount - total_price; var isFreeShipping = freeAmount <= 0; var rate = Math.min(total_price / postageFreeAmount * 100, 100).toFixed(2); const textArray = ("Spend {{ amount }} more and get free shipping!").split(/\{\{\s*amount\s*\}\}/); const textArrayHtml = textArray.map((text, index) => { if (index == 0) { return `
${text}
`; } return `
${text}
`; }).join(''); return `
${textArrayHtml}
You've got free shipping
${rate}%
` })()}
${data.invalid_msg}
Total:
${function() { const textArray = ("Save {{save_amount}}").split(/\{\{\s*save_amount\}\}/); if (textArray.length > 0 && textArray.length < 2) { textArray.push(''); } return textArray.map((text, index) => { if (index == 0) { return `
${text}
`; } return `
${text}
`; }).join(''); }()}
${function() { const textArray = ("Save {{save_amount}}").split(/\{\{\s*save_amount\}\}/); if (textArray.length > 0 && textArray.length < 2) { textArray.push(''); } return textArray.map((text, index) => { if (index == 0) { return `
${text}
`; } return `
${text}
`; }).join(''); }()}
${function() { const textArray = ("Save {{save_amount}}").split(/\{\{\s*save_amount\}\}/); if (textArray.length > 0 && textArray.length < 2) { textArray.push(''); } return textArray.map((text, index) => { if (index == 0) { return `
${text}
`; } return `
${text}
`; }).join(''); }()}
${discount_application.title}:
-
Check out
${data.invalid_msg}
Check out
Taxes and shipping calculated at checkout
Subtotal:
${discount_application.title}:
-
Total:
Check out
Taxes and shipping calculated at checkout
const summaryStickyRender = document.querySelector('#cart-drawer-summary-sticky-render'); if (summaryStickyRender) { document.body.style.setProperty('--cart-drawer-summary-sticky-height', summaryStickyRender.clientHeight + 'px'); }
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}