${(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 ${ data.off_ratio }% ` : '' }` : "Sold out" }
Mixed Lot
${data.title}
${ data.price_min != data.price_max ? `from
` : `
` }
+${data.remainInvisibleThumbCount}
` })()}
Free Shipping on Order $69+
Free Shipping on Order $69+
Log in
Create an account
${data.data && data.data.count}
HOME
NEW IN
TOP RATED
CLOTHING
Linen & Cotton
Linen Dresses
Linen Jumpsuits
Cotton Blouses & Shirts
Cotton Pants
Spring & Summer
HOT
Chic Dresses & Sets
PRIME
Gorgeous Sets & Dresses
Two Piece Sets
Rompers & Jumpsuits
Winter & Fall
Casual Sets
Mini Knit Dress
Sweaters & Cardigans
Coats & Jackets
Split Knitted Dresses
Bottoms
Jeans
Shop By Holiday
Christmas vibe
Shop By Occasion
Glisten Collection
ACCESSORIES
Bags
Earrings
Rings
Waist Chains
Scarfs & Socks
Metal Collection
Necklace & Bracelet
Metal Pearl Necklace and Earring Set
$35.63
FAQs
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 = {"SPRING & SUMMER":{"label":"HOT","bg":"#E62405","color":"#FFFFFF"},"CHIC DRESSES & SETS":{"label":"PRIME","bg":"#E62405","color":"#FFFFFF"}}; let linkList = [ { id: 59402243, title: "HOME", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 59402245, title: "NEW IN", url: "\/collections\/new-in-0rkj", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 59402247, title: "TOP RATED", url: "\/collections\/top-rated", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 59402249, title: "CLOTHING", url: "", target: "", levels: 2, product0: { id: (null) }, children: [ { title: "Linen & Cotton", url: "\/collections\/linen-cotton", target: "", levels: 1, children: [ { title: "Linen Dresses", url: "\/collections\/vintage-linen-dresses", target: "", levels: 0, }, { title: "Linen Jumpsuits", url: "\/collections\/linen-jumpsuit", target: "", levels: 0, }, { title: "Cotton Blouses & Shirts", url: "\/collections\/cotton-blouses", target: "", levels: 0, }, { title: "Cotton Pants", url: "\/collections\/cotton-pants", target: "", levels: 0, }, ] }, { title: "Spring & Summer", url: "", target: "", levels: 1, children: [ { title: "Chic Dresses & Sets", url: "\/collections\/chic-dress-set", target: "", levels: 0, }, { title: "Gorgeous Sets & Dresses", url: "\/collections\/gorgeous-sets-dresses", target: "", levels: 0, }, { title: "Two Piece Sets", url: "\/collections\/chic-two-piece-set", target: "", levels: 0, }, { title: "Rompers & Jumpsuits", url: "\/collections\/rompers-jumpsuits", target: "", levels: 0, }, ] }, { title: "Winter & Fall", url: "", target: "", levels: 1, children: [ { title: "Casual Sets", url: "\/collections\/casual-set", target: "", levels: 0, }, { title: "Mini Knit Dress", url: "\/collections\/mini-knit-dress", target: "", levels: 0, }, { title: "Sweaters & Cardigans", url: "\/collections\/chic-sweaters-cardigans", target: "", levels: 0, }, { title: "Coats & Jackets", url: "\/collections\/coats-jackets", target: "", levels: 0, }, { title: "Split Knitted Dresses", url: "\/collections\/split-casual-knitted-dresses", target: "", levels: 0, }, ] }, { title: "Bottoms", url: "\/collections\/casual-pants", target: "", levels: 1, children: [ { title: "Jeans", url: "\/collections\/jeans", target: "", levels: 0, }, ] }, { title: "Shop By Holiday", url: "", target: "", levels: 1, children: [ { title: "Christmas vibe", url: "\/collections\/christmas-vibe", target: "", levels: 0, }, ] }, { title: "Shop By Occasion", url: "", target: "", levels: 1, children: [ { title: "Glisten Collection", url: "\/collections\/glisten-collection", target: "", levels: 0, }, ] }, ] }, { id: 59402295, title: "ACCESSORIES", url: "\/collections\/pearl-metal-collection", target: "", levels: 1, product0: { id: ("ef8b2875-7a97-4edb-8156-5c624b7a6737") }, children: [ { title: "Bags", url: "\/collections\/woven-accessories", target: "", levels: 0, children: [ ] }, { title: "Earrings", url: "\/collections\/earrings", target: "", levels: 0, children: [ ] }, { title: "Rings", url: "\/collections\/rings", target: "", levels: 0, children: [ ] }, { title: "Waist Chains", url: "\/collections\/waist-chains", target: "", levels: 0, children: [ ] }, { title: "Scarfs & Socks", url: "\/collections\/scarfs-socks", target: "", levels: 0, children: [ ] }, { title: "Metal Collection", url: "\/collections\/metal-collection", target: "", levels: 0, children: [ ] }, { title: "Necklace & Bracelet", url: "\/collections\/necklace-bracelet", target: "", levels: 0, children: [ ] }, ] }, { id: 59402311, title: "FAQs", url: "\/pages\/faqs", 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
NEW IN
TOP RATED
CLOTHING
Linen & Cotton
Linen Dresses
Linen Jumpsuits
Cotton Blouses & Shirts
Cotton Pants
Spring & Summer
HOT
Chic Dresses & Sets
PRIME
Gorgeous Sets & Dresses
Two Piece Sets
Rompers & Jumpsuits
Winter & Fall
Casual Sets
Mini Knit Dress
Sweaters & Cardigans
Coats & Jackets
Split Knitted Dresses
Bottoms
Jeans
Shop By Holiday
Christmas vibe
Shop By Occasion
Glisten Collection
ACCESSORIES
Bags
Earrings
Rings
Waist Chains
Scarfs & Socks
Metal Collection
Necklace & Bracelet
Metal Pearl Necklace and Earring Set
$35.63
FAQs
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 = {"SPRING & SUMMER":{"label":"HOT","bg":"#E62405","color":"#FFFFFF"},"CHIC DRESSES & SETS":{"label":"PRIME","bg":"#E62405","color":"#FFFFFF"}}; let linkList = [ { id: 59402243, title: "HOME", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 59402245, title: "NEW IN", url: "\/collections\/new-in-0rkj", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 59402247, title: "TOP RATED", url: "\/collections\/top-rated", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 59402249, title: "CLOTHING", url: "", target: "", levels: 2, product0: { id: (null) }, children: [ { title: "Linen & Cotton", url: "\/collections\/linen-cotton", target: "", levels: 1, children: [ { title: "Linen Dresses", url: "\/collections\/vintage-linen-dresses", target: "", levels: 0, }, { title: "Linen Jumpsuits", url: "\/collections\/linen-jumpsuit", target: "", levels: 0, }, { title: "Cotton Blouses & Shirts", url: "\/collections\/cotton-blouses", target: "", levels: 0, }, { title: "Cotton Pants", url: "\/collections\/cotton-pants", target: "", levels: 0, }, ] }, { title: "Spring & Summer", url: "", target: "", levels: 1, children: [ { title: "Chic Dresses & Sets", url: "\/collections\/chic-dress-set", target: "", levels: 0, }, { title: "Gorgeous Sets & Dresses", url: "\/collections\/gorgeous-sets-dresses", target: "", levels: 0, }, { title: "Two Piece Sets", url: "\/collections\/chic-two-piece-set", target: "", levels: 0, }, { title: "Rompers & Jumpsuits", url: "\/collections\/rompers-jumpsuits", target: "", levels: 0, }, ] }, { title: "Winter & Fall", url: "", target: "", levels: 1, children: [ { title: "Casual Sets", url: "\/collections\/casual-set", target: "", levels: 0, }, { title: "Mini Knit Dress", url: "\/collections\/mini-knit-dress", target: "", levels: 0, }, { title: "Sweaters & Cardigans", url: "\/collections\/chic-sweaters-cardigans", target: "", levels: 0, }, { title: "Coats & Jackets", url: "\/collections\/coats-jackets", target: "", levels: 0, }, { title: "Split Knitted Dresses", url: "\/collections\/split-casual-knitted-dresses", target: "", levels: 0, }, ] }, { title: "Bottoms", url: "\/collections\/casual-pants", target: "", levels: 1, children: [ { title: "Jeans", url: "\/collections\/jeans", target: "", levels: 0, }, ] }, { title: "Shop By Holiday", url: "", target: "", levels: 1, children: [ { title: "Christmas vibe", url: "\/collections\/christmas-vibe", target: "", levels: 0, }, ] }, { title: "Shop By Occasion", url: "", target: "", levels: 1, children: [ { title: "Glisten Collection", url: "\/collections\/glisten-collection", target: "", levels: 0, }, ] }, ] }, { id: 59402295, title: "ACCESSORIES", url: "\/collections\/pearl-metal-collection", target: "", levels: 1, product0: { id: ("ef8b2875-7a97-4edb-8156-5c624b7a6737") }, children: [ { title: "Bags", url: "\/collections\/woven-accessories", target: "", levels: 0, children: [ ] }, { title: "Earrings", url: "\/collections\/earrings", target: "", levels: 0, children: [ ] }, { title: "Rings", url: "\/collections\/rings", target: "", levels: 0, children: [ ] }, { title: "Waist Chains", url: "\/collections\/waist-chains", target: "", levels: 0, children: [ ] }, { title: "Scarfs & Socks", url: "\/collections\/scarfs-socks", target: "", levels: 0, children: [ ] }, { title: "Metal Collection", url: "\/collections\/metal-collection", target: "", levels: 0, children: [ ] }, { title: "Necklace & Bracelet", url: "\/collections\/necklace-bracelet", target: "", levels: 0, children: [ ] }, ] }, { id: 59402311, title: "FAQs", url: "\/pages\/faqs", 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
NEW IN
TOP RATED
CLOTHING
CLOTHING
Linen & Cotton
Linen & Cotton
Linen Dresses
Linen Jumpsuits
Cotton Blouses & Shirts
Cotton Pants
Spring & Summer
HOT
Spring & Summer
Chic Dresses & Sets
PRIME
Gorgeous Sets & Dresses
Two Piece Sets
Rompers & Jumpsuits
Winter & Fall
Winter & Fall
Casual Sets
Mini Knit Dress
Sweaters & Cardigans
Coats & Jackets
Split Knitted Dresses
Bottoms
Bottoms
Jeans
Shop By Holiday
Shop By Holiday
Christmas vibe
Shop By Occasion
Shop By Occasion
Glisten Collection
ACCESSORIES
ACCESSORIES
Bags
Earrings
Rings
Waist Chains
Scarfs & Socks
Metal Collection
Necklace & Bracelet
FAQs
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(); })();
Chic Dresses & Sets
gorgeous Sets & Dresses
Save 26%
Save 26%
Fashion Slant Shoulder Cotton Linen Dress
$43.46
$58.46
Save 24%
Save 24%
Casual Off-shoulder Top & Skirt Cotton Linen Two-piece Set
$46.68
$61.68
Save 29%
Save 29%
Casual Colorblock Sling Dress
$39.99
$55.99
Save 28%
Save 28%
Fashion Contrast Cotton And Linen Sling Dress
$45.66
$63.66
Save 20%
Save 20%
Casual Printed Tank Top & Skirt Cotton Linen Two-piece Set
$47.73
$59.73
Save 28%
Save 28%
Casual Strapless Printed Dress
$41.69
$57.69
Save 29%
Save 29%
Casual Solid Color Crewneck Top & Pants Cotton Linen Two-piece Set
$46.21
$65.21
Save 26%
Save 26%
Casual Solid Color V-Neck Shirt & Pants Cotton Linen Two-Piece Set
$46.73
$62.73
Save 26%
Save 26%
Fashion Slant Shoulder Cotton Linen Dress
$43.46
$58.46
Save 24%
Save 24%
Casual Off-shoulder Top & Skirt Cotton Linen Two-piece Set
$46.68
$61.68
Save 29%
Save 29%
Casual Colorblock Sling Dress
$39.99
$55.99
Save 28%
Save 28%
Fashion Contrast Cotton And Linen Sling Dress
$45.66
$63.66
Save 20%
Save 20%
Casual Printed Tank Top & Skirt Cotton Linen Two-piece Set
$47.73
$59.73
Save 28%
Save 28%
Casual Strapless Printed Dress
$41.69
$57.69
Save 29%
Save 29%
Casual Solid Color Crewneck Top & Pants Cotton Linen Two-piece Set
$46.21
$65.21
Save 26%
Save 26%
Casual Solid Color V-Neck Shirt & Pants Cotton Linen Two-Piece Set
$46.73
$62.73
View more
Save 27%
Save 27%
Summer exotic vacation suspender dress
$42.79
$59.00
Save 32%
Save 32%
Chic V-neck contrasting color dress
$43.59
$64.00
Save 38%
Save 38%
Flower jungle print casual two-piece set
$54.99
$88.70
Save 29%
Save 29%
Contrast color holiday style print two piece set
$49.79
$70.00
Save 18%
Save 18%
Chic Geometric Graffiti Prints Slip Dress
$48.99
$60.00
Save 20%
Save 20%
Stylish Sky Blue Pleating 2 pieces Set
$55.96
$70.00
Save 24%
Save 24%
Phoenix Art Printing 2-pieces Set
$53.34
$70.00
Save 23%
Save 23%
Abstract Print Casual Two-Piece Set
$49.99
$65.00
Save 27%
Save 27%
Summer exotic vacation suspender dress
$42.79
$59.00
Save 32%
Save 32%
Chic V-neck contrasting color dress
$43.59
$64.00
Save 38%
Save 38%
Flower jungle print casual two-piece set
$54.99
$88.70
Save 29%
Save 29%
Contrast color holiday style print two piece set
$49.79
$70.00
Save 18%
Save 18%
Chic Geometric Graffiti Prints Slip Dress
$48.99
$60.00
Save 20%
Save 20%
Stylish Sky Blue Pleating 2 pieces Set
$55.96
$70.00
Save 24%
Save 24%
Phoenix Art Printing 2-pieces Set
$53.34
$70.00
Save 23%
Save 23%
Abstract Print Casual Two-Piece Set
$49.99
$65.00
View more
Linen & Cotton
Save 20%
Save 20%
Casual Printed Tank Top & Skirt Cotton Linen Two-piece Set
$47.73
$59.73
Save 26%
Save 26%
Casual Solid Color V-Neck Shirt & Pants Cotton Linen Two-Piece Set
$46.73
$62.73
Save 29%
Save 29%
Braided lace-up V-neck cotton and linen jumpsuit
$42.59
$60.00
Save 26%
Save 26%
Casual slit tie cotton and linen two-piece set
$49.59
$67.00
Save 28%
Save 28%
Woven lace-up cotton and linen two-piece set
$45.79
$64.00
Save 34%
Save 34%
Chic slit cotton and linen casual two-piece set
$45.99
$70.00
+1
Save 34%
Save 34%
Chic exposed waist cotton and linen dress
$39.79
$60.00
Save 36%
Save 36%
Lace-up exposed waist cotton and linen dress
$39.99
$62.00
+1
Save 20%
Save 20%
Casual Printed Tank Top & Skirt Cotton Linen Two-piece Set
$47.73
$59.73
Save 26%
Save 26%
Casual Solid Color V-Neck Shirt & Pants Cotton Linen Two-Piece Set
$46.73
$62.73
Save 29%
Save 29%
Braided lace-up V-neck cotton and linen jumpsuit
$42.59
$60.00
Save 26%
Save 26%
Casual slit tie cotton and linen two-piece set
$49.59
$67.00
View more
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}