${(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}
` })()}
Search
Log in
Create an account
${data.data && data.data.count}
Home
Woman
Clothing
Sweater
Cardigans
T-shirts and tops
Accessories
Shoes
Bags
Jewellery
Hats
Button knit cardigan
$35.99
New
Tops
Dresses
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: 20077485, title: "Home", url: "\/", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 20077487, title: "Woman", url: "\/collections\/shop", target: "", levels: 2, product0: {"id":"a6aa70ef-fedf-496c-a6d8-23f8076fb85b","title":"Button knit cardigan","brief":"","vendor":"","vendor_url":"","has_only_default_variant":false,"requires_shipping":true,"taxable":false,"published":true,"handle":"button-knit-cardigan","spu":"","need_variant_image":true,"updated_at":"2021-12-10T10:14:36Z","created_at":"2021-12-10T10:13:55Z","mixed_wholesale":false,"min_price_variant":{"id":"55746d5d-65a0-4f5e-b1cf-db0b974d4456","title":"Mustard-XS","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Mustard","option2":"XS","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":""},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=55746d5d-65a0-4f5e-b1cf-db0b974d4456","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"XS"}],"off_ratio":0},"tags":"","available":true,"price_min":"35.99","price":"35.99","price_max":"35.99","compare_at_price_min":"35.99","compare_at_price":"35.99","compare_at_price_max":"35.99","retail_price_min":"35.99","retail_price_max":"35.99","url":"\/products\/button-knit-cardigan","published_at":"2021-12-10T10:13:55Z","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"options":[{"id":"c43f733f-a152-4794-9f9f-3705735b9bdb","name":"Color","position":1,"values":["Mustard"]},{"id":"5a42744e-297c-4941-a6a3-1549a338e783","name":"Size","position":2,"values":["XS","S","M","L"]}],"variants":[{"id":"55746d5d-65a0-4f5e-b1cf-db0b974d4456","title":"Mustard-XS","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Mustard","option2":"XS","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=55746d5d-65a0-4f5e-b1cf-db0b974d4456","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":null},{"id":"1a4cf321-4ef4-4bcb-ba0e-27c33115017e","title":"Mustard-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":2,"option1":"Mustard","option2":"S","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=1a4cf321-4ef4-4bcb-ba0e-27c33115017e","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":null},{"id":"024b05a0-0d78-4458-a6f3-288e12296806","title":"Mustard-M","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":3,"option1":"Mustard","option2":"M","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=024b05a0-0d78-4458-a6f3-288e12296806","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":null},{"id":"38772b24-92fd-4c12-ad88-8b7729cf9f54","title":"Mustard-L","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":4,"option1":"Mustard","option2":"L","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=38772b24-92fd-4c12-ad88-8b7729cf9f54","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"L"}],"off_ratio":0,"flashsale_info":[],"sales":null}],"images":[{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},{"src":"\/\/img.staticdj.com\/7111cacdfc7a643205edc46da9624482.jpeg","path":"7111cacdfc7a643205edc46da9624482.jpeg","width":1024,"height":1432,"alt":"","aspect_ratio":0.7150837988826816},{"src":"\/\/img.staticdj.com\/c78e70b6af89da04ee224e35226730b2.jpeg","path":"c78e70b6af89da04ee224e35226730b2.jpeg","width":1024,"height":1432,"alt":"","aspect_ratio":0.7150837988826816},{"src":"\/\/img.staticdj.com\/d7192914fdcaf5b4211bfea0682be4c6.jpeg","path":"d7192914fdcaf5b4211bfea0682be4c6.jpeg","width":1024,"height":1432,"alt":"","aspect_ratio":0.7150837988826816}],"retail_price":"35.99","off_ratio":0,"price_varies":true} || {}, children: [ { title: "Clothing", url: "\/collections\/shop", target: "", levels: 1, children: [ { title: "Sweater", url: "\/collections\/sweater", target: "", levels: 0, }, { title: "Cardigans", url: "\/collections\/cardigans", target: "", levels: 0, }, { title: "T-shirts and tops", url: "\/collections\/t-shirts-and-tops", target: "", levels: 0, }, ] }, { title: "Accessories", url: "\/collections\/accessories", target: "", levels: 1, children: [ { title: "Shoes", url: "\/collections\/shoes", target: "", levels: 0, }, { title: "Bags", url: "\/collections\/bags", target: "", levels: 0, }, { title: "Jewellery", url: "\/collections\/jewellery", target: "", levels: 0, }, { title: "Hats", url: "\/collections\/hats", target: "", levels: 0, }, ] }, ] }, { id: 20077507, title: "New", url: "\/collections\/shop", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 20077509, title: "Tops", url: "\/products\/v-neck-knit-sweater", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 20077511, title: "Dresses", url: "\/collections\/dress", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 20077513, title: "Sale", url: "\/collections\/shop", target: "", levels: 0, product0: 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
Woman
Clothing
Sweater
Cardigans
T-shirts and tops
Accessories
Shoes
Bags
Jewellery
Hats
Button knit cardigan
$35.99
New
Tops
Dresses
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: 20077485, title: "Home", url: "\/", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 20077487, title: "Woman", url: "\/collections\/shop", target: "", levels: 2, product0: {"id":"a6aa70ef-fedf-496c-a6d8-23f8076fb85b","title":"Button knit cardigan","brief":"","vendor":"","vendor_url":"","has_only_default_variant":false,"requires_shipping":true,"taxable":false,"published":true,"handle":"button-knit-cardigan","spu":"","need_variant_image":true,"updated_at":"2021-12-10T10:14:36Z","created_at":"2021-12-10T10:13:55Z","mixed_wholesale":false,"min_price_variant":{"id":"55746d5d-65a0-4f5e-b1cf-db0b974d4456","title":"Mustard-XS","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Mustard","option2":"XS","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":""},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=55746d5d-65a0-4f5e-b1cf-db0b974d4456","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"XS"}],"off_ratio":0},"tags":"","available":true,"price_min":"35.99","price":"35.99","price_max":"35.99","compare_at_price_min":"35.99","compare_at_price":"35.99","compare_at_price_max":"35.99","retail_price_min":"35.99","retail_price_max":"35.99","url":"\/products\/button-knit-cardigan","published_at":"2021-12-10T10:13:55Z","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"options":[{"id":"c43f733f-a152-4794-9f9f-3705735b9bdb","name":"Color","position":1,"values":["Mustard"]},{"id":"5a42744e-297c-4941-a6a3-1549a338e783","name":"Size","position":2,"values":["XS","S","M","L"]}],"variants":[{"id":"55746d5d-65a0-4f5e-b1cf-db0b974d4456","title":"Mustard-XS","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Mustard","option2":"XS","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=55746d5d-65a0-4f5e-b1cf-db0b974d4456","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":null},{"id":"1a4cf321-4ef4-4bcb-ba0e-27c33115017e","title":"Mustard-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":2,"option1":"Mustard","option2":"S","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=1a4cf321-4ef4-4bcb-ba0e-27c33115017e","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":null},{"id":"024b05a0-0d78-4458-a6f3-288e12296806","title":"Mustard-M","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":3,"option1":"Mustard","option2":"M","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=024b05a0-0d78-4458-a6f3-288e12296806","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":null},{"id":"38772b24-92fd-4c12-ad88-8b7729cf9f54","title":"Mustard-L","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":4,"option1":"Mustard","option2":"L","option3":"","image":{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"35.99","retail_price":"35.99","available":true,"url":"\/products\/button-knit-cardigan?variant=38772b24-92fd-4c12-ad88-8b7729cf9f54","available_quantity":999999999,"options":[{"name":"Color","value":"Mustard"},{"name":"Size","value":"L"}],"off_ratio":0,"flashsale_info":[],"sales":null}],"images":[{"src":"\/\/img.staticdj.com\/d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","path":"d30e4fa9ec710d37cbea7ad29c7d9f53.jpg","width":1032,"height":1280,"alt":"","aspect_ratio":0.80625},{"src":"\/\/img.staticdj.com\/7111cacdfc7a643205edc46da9624482.jpeg","path":"7111cacdfc7a643205edc46da9624482.jpeg","width":1024,"height":1432,"alt":"","aspect_ratio":0.7150837988826816},{"src":"\/\/img.staticdj.com\/c78e70b6af89da04ee224e35226730b2.jpeg","path":"c78e70b6af89da04ee224e35226730b2.jpeg","width":1024,"height":1432,"alt":"","aspect_ratio":0.7150837988826816},{"src":"\/\/img.staticdj.com\/d7192914fdcaf5b4211bfea0682be4c6.jpeg","path":"d7192914fdcaf5b4211bfea0682be4c6.jpeg","width":1024,"height":1432,"alt":"","aspect_ratio":0.7150837988826816}],"retail_price":"35.99","off_ratio":0,"price_varies":true} || {}, children: [ { title: "Clothing", url: "\/collections\/shop", target: "", levels: 1, children: [ { title: "Sweater", url: "\/collections\/sweater", target: "", levels: 0, }, { title: "Cardigans", url: "\/collections\/cardigans", target: "", levels: 0, }, { title: "T-shirts and tops", url: "\/collections\/t-shirts-and-tops", target: "", levels: 0, }, ] }, { title: "Accessories", url: "\/collections\/accessories", target: "", levels: 1, children: [ { title: "Shoes", url: "\/collections\/shoes", target: "", levels: 0, }, { title: "Bags", url: "\/collections\/bags", target: "", levels: 0, }, { title: "Jewellery", url: "\/collections\/jewellery", target: "", levels: 0, }, { title: "Hats", url: "\/collections\/hats", target: "", levels: 0, }, ] }, ] }, { id: 20077507, title: "New", url: "\/collections\/shop", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 20077509, title: "Tops", url: "\/products\/v-neck-knit-sweater", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 20077511, title: "Dresses", url: "\/collections\/dress", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 20077513, title: "Sale", url: "\/collections\/shop", target: "", levels: 0, product0: 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}
Search
Home
Woman
Clothing
Accessories
New
Tops
Dresses
Sale
${(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.
` })()}
${(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
Woman
Woman
Clothing
Clothing
Sweater
Cardigans
T-shirts and tops
Accessories
Accessories
Shoes
Bags
Jewellery
Hats
New
Tops
Dresses
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
Register for more discounts
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}