${(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
BEST SELLERS
New Arrivals
Linen Style
Japanese Art
Scotland Travel
Cute Cats
Cool Cats
Women's Oil Painting Cat Print T-Shirt
$19.99
Natural Wildflower
Floral lovers
Flying Cranes
Women's Vintage Floral Lace Patch Comfort Dress
$27.99
+1
Mediterranean style
Ocean
Icelandic Sweater
Wool Dress
Men's
Woman Celtic Jacquard Aran Sweater
$34.99
+1
Aran Sweater
Celtic Mythology
Women's Celtic Knot Gradient Color Cozy Knit Hooded Cardigan
$45.99
Independence Day
Lovely Dogs
Capibara
Easter
Horror Style
Merry Christmas
Vintage Sweater
La Catrina Day
Tribal style
Happy Farm
Insects
Women's Highland Cow In Plaid Print Casual Hoodie
$27.99
+3
Mental Health
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: 80664843, title: "Home", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664845, title: "\t BEST SELLERS", url: "\/collections\/best-sellers", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664847, title: "New Arrivals", url: "\/collections\/new-in", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664849, title: " Linen Style", url: "\/collections\/linen-style", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664851, title: "Japanese Art", url: "\/collections\/japanese-art", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664853, title: "Scotland Travel", url: "\/collections\/scotland-travel", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664855, title: " Cute Cats", url: "\/collections\/cute-cats", target: "", levels: 1, product0: { id: ("e7c0b543-129b-4f1b-a7e2-9bd921a37920") }, children: [ { title: " Cool Cats", url: "\/collections\/cool-cats", target: "", levels: 0, children: [ ] }, ] }, { id: 80664859, title: "Natural Wildflower", url: "\/collections\/natural-wildflower", target: "", levels: 1, product0: { id: ("7e7b650f-0758-488d-83b5-7aba7fde8399") }, children: [ { title: "Floral lovers", url: "\/collections\/floral-lovers", target: "", levels: 0, children: [ ] }, { title: "Flying Cranes", url: "\/collections\/flying-cranes", target: "", levels: 0, children: [ ] }, ] }, { id: 80664865, title: "Mediterranean style", url: "\/collections\/mediterranean-style", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664867, title: " Ocean", url: "\/collections\/ocean", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664869, title: "Icelandic Sweater", url: "\/collections\/icelandic-sweater", target: "", levels: 1, product0: { id: ("32a060c9-4dfb-4000-9b12-d0633a5a381e") }, children: [ { title: "Wool Dress", url: "\/collections\/wool-dress", target: "", levels: 0, children: [ ] }, { title: "Men's", url: "\/collections\/mens-p2c7", target: "", levels: 0, children: [ ] }, ] }, { id: 80664875, title: "Aran Sweater", url: "\/collections\/aran-sweater", target: "", levels: 1, product0: { id: ("aeeb1150-3b61-4c84-a3d7-ea8b32132118") }, children: [ { title: "Celtic Mythology", url: "\/collections\/celtic-mythology", target: "", levels: 0, children: [ ] }, ] }, { id: 80664879, title: "Independence Day", url: "\/collections\/independence-day", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664881, title: "Lovely Dogs", url: "\/collections\/lovely-dogs", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664883, title: "Capibara", url: "\/collections\/capibara", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664885, title: "Easter", url: "\/collections\/easter", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664887, title: "Horror Style", url: "\/collections\/halloween", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664889, title: "Merry Christmas", url: "\/collections\/merry-christmas", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664891, title: "Vintage Sweater", url: "\/collections\/vintage-sweater", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664893, title: "La Catrina Day", url: "\/collections\/la-catrina-day", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664895, title: "Tribal style", url: "\/collections\/elven-style", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664897, title: "Happy Farm", url: "\/collections\/happy-farm", target: "", levels: 1, product0: { id: ("46906358-8e20-4d05-a8be-22b891e671a8") }, children: [ { title: " Insects", url: "\/collections\/insects", target: "", levels: 0, children: [ ] }, ] }, { id: 80664901, title: "Mental Health", url: "\/collections\/mental-health", 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
BEST SELLERS
New Arrivals
Linen Style
Japanese Art
Scotland Travel
Cute Cats
Cool Cats
Women's Oil Painting Cat Print T-Shirt
$19.99
Natural Wildflower
Floral lovers
Flying Cranes
Women's Vintage Floral Lace Patch Comfort Dress
$27.99
+1
Mediterranean style
Ocean
Icelandic Sweater
Wool Dress
Men's
Woman Celtic Jacquard Aran Sweater
$34.99
+1
Aran Sweater
Celtic Mythology
Women's Celtic Knot Gradient Color Cozy Knit Hooded Cardigan
$45.99
Independence Day
Lovely Dogs
Capibara
Easter
Horror Style
Merry Christmas
Vintage Sweater
La Catrina Day
Tribal style
Happy Farm
Insects
Women's Highland Cow In Plaid Print Casual Hoodie
$27.99
+3
Mental Health
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: 80664843, title: "Home", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664845, title: "\t BEST SELLERS", url: "\/collections\/best-sellers", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664847, title: "New Arrivals", url: "\/collections\/new-in", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664849, title: " Linen Style", url: "\/collections\/linen-style", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664851, title: "Japanese Art", url: "\/collections\/japanese-art", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664853, title: "Scotland Travel", url: "\/collections\/scotland-travel", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664855, title: " Cute Cats", url: "\/collections\/cute-cats", target: "", levels: 1, product0: { id: ("e7c0b543-129b-4f1b-a7e2-9bd921a37920") }, children: [ { title: " Cool Cats", url: "\/collections\/cool-cats", target: "", levels: 0, children: [ ] }, ] }, { id: 80664859, title: "Natural Wildflower", url: "\/collections\/natural-wildflower", target: "", levels: 1, product0: { id: ("7e7b650f-0758-488d-83b5-7aba7fde8399") }, children: [ { title: "Floral lovers", url: "\/collections\/floral-lovers", target: "", levels: 0, children: [ ] }, { title: "Flying Cranes", url: "\/collections\/flying-cranes", target: "", levels: 0, children: [ ] }, ] }, { id: 80664865, title: "Mediterranean style", url: "\/collections\/mediterranean-style", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664867, title: " Ocean", url: "\/collections\/ocean", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664869, title: "Icelandic Sweater", url: "\/collections\/icelandic-sweater", target: "", levels: 1, product0: { id: ("32a060c9-4dfb-4000-9b12-d0633a5a381e") }, children: [ { title: "Wool Dress", url: "\/collections\/wool-dress", target: "", levels: 0, children: [ ] }, { title: "Men's", url: "\/collections\/mens-p2c7", target: "", levels: 0, children: [ ] }, ] }, { id: 80664875, title: "Aran Sweater", url: "\/collections\/aran-sweater", target: "", levels: 1, product0: { id: ("aeeb1150-3b61-4c84-a3d7-ea8b32132118") }, children: [ { title: "Celtic Mythology", url: "\/collections\/celtic-mythology", target: "", levels: 0, children: [ ] }, ] }, { id: 80664879, title: "Independence Day", url: "\/collections\/independence-day", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664881, title: "Lovely Dogs", url: "\/collections\/lovely-dogs", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664883, title: "Capibara", url: "\/collections\/capibara", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664885, title: "Easter", url: "\/collections\/easter", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664887, title: "Horror Style", url: "\/collections\/halloween", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664889, title: "Merry Christmas", url: "\/collections\/merry-christmas", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664891, title: "Vintage Sweater", url: "\/collections\/vintage-sweater", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664893, title: "La Catrina Day", url: "\/collections\/la-catrina-day", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664895, title: "Tribal style", url: "\/collections\/elven-style", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 80664897, title: "Happy Farm", url: "\/collections\/happy-farm", target: "", levels: 1, product0: { id: ("46906358-8e20-4d05-a8be-22b891e671a8") }, children: [ { title: " Insects", url: "\/collections\/insects", target: "", levels: 0, children: [ ] }, ] }, { id: 80664901, title: "Mental Health", url: "\/collections\/mental-health", 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
BEST SELLERS
New Arrivals
Linen Style
Japanese Art
Scotland Travel
Cute Cats
Cute Cats
Cool Cats
Natural Wildflower
Natural Wildflower
Floral lovers
Flying Cranes
Mediterranean style
Ocean
Icelandic Sweater
Icelandic Sweater
Wool Dress
Men's
Aran Sweater
Aran Sweater
Celtic Mythology
Independence Day
Lovely Dogs
Capibara
Easter
Horror Style
Merry Christmas
Vintage Sweater
La Catrina Day
Tribal style
Happy Farm
Happy Farm
Insects
Mental Health
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(); })();
Happy Farm
3006 Products
${function(){ const product_total = data.total if(product_total <= 1){ return `${product_total} Product` } return `${product_total} Products` }()}
Women's Highland Cow In Plaid Print Casual Hoodie
$27.99
+3
Daisy Bee Embroidery Art Print Cozy Knit Hooded Cardigan
$37.99
Vintage Sheep Jacquard Cozy Sweater
$31.99
+1
Fairman Island Flock Print Hooded Sweater Cardigan
$45.99
+2
Insect Wildflower Floral Patchwork Print Linen Jumpsuit
$37.99
Insect Wildflower Floral Embroidery Art Linen Button Jumpsuits
$40.99
Insect Bee Wildflower Floral Embroidery Art Linen Tank Dress
$27.99
Insect Wildflower Floral Embroidery Art Linen Tank Dress
$27.99
Insect Wildflower Floral Embroidery Art Linen Tank Dress
$37.99
Women's Farm Animals Print Casual Jumpsuit
$43.99
Women's Highland Cow Print Casual Jumpsuit
$43.99
Women's Chicken Art Print Casual Jumpsuit
$43.99
Women's Vintage Farm Chicken Print Casual Jumpsuit
$43.99
Women's Farm Chicken Print Casual Jumpsuit
$43.99
Women's Vintage Beehive And Bee Art Embroidery Short Dress
$27.99
Women's Vintage Floral Bee Art Embroidery Short Dress
$27.99
Women's Vintage Wildflowers And Bees Art Embroidery Short Dress
$27.99
Women's Vintage Bee And Sunflower Art Print Sleeveless Dress
$27.99
Women's Vintage Bee And Floral Print Sleeveless Dress
$27.99
Women's Vintage Sheep And Sunflower Art Print Tank Top
$27.99
Vintage Boho Floral With Highland Cow In Plaid Embroidered Cozy Linen Midi Dress
$29.99
Women's Vintage Sheep And Grass Print Sleeveless Dress
$27.99
Vintage Boho Floral With Highland Cow In Plaid Embroidered Cozy Linen Maxi Dress
$37.99
Vintage Lavender Floral With Highland Cow In Plaid Embroidered Cozy Linen Midi Dress
$27.99
Vintage Lavender Floral With Highland Cow In Plaid Embroidered Cozy Linen Midi Dress
$27.99
Vintage Lavender Floral With Highland Cow In Plaid Embroidered Cozy Linen Midi Dress
$27.99
Vintage Floral With Highland Cow Embroidered Cozy Linen Midi Dress
$27.99
Vintage Floral With Highland Cow In Plaid Embroidered Cozy Linen Midi Dress
$27.99
Women's Vintage Lavender Floral With Highland Cow In Plaid Embroidered Linen Sleeveless Tank Top
$27.99
Farmland Sunflower Floral Bee Patchwork Print Linen Jumpsuit
$37.99
Women's Vintage Bee Floral Art Print Tank Top
$27.99
Bee Sunflower Floral Print Embroidery Art Linen Tank Midi Dress
$27.99
Vintage Sunshine Floral With Bees In Plaid Embroidered Cozy Linen Midi Dress
$27.99
Vintage Bee Eco Patchwork Pattern Loose Kimono
$35.99
Vintage Sunflower Floral Print Art Linen Midi Dress
$35.99
Women's Vintage Sheep In Plaid Embroidered Linen Sleeveless Tank Top
$27.99
Bee Sunflower Floral Patchwork Print Midi Dress
$38.99
Vintage Boho Floral With Sheep In Plaid Embroidered Cozy Linen Maxi Dress
$37.99
Women's Vintage Sheep In Plaid Print Sleeveless Dress
$27.99
Vintage Floral With Bees In Plaid Embroidered Cozy Linen Midi Dress
$27.99
Bee Sunflower Floral Print Embroidery Art Linen Tank Midi Dress
$37.99
Women's Vintage Sheep Flowers Art Print Sleeveless Dress
$27.99
Vintage Bee Wildflowers Patchwork Print Linen T-shirt
$22.99
Women's Vintage Butterfly Bee Floral Print V-neck T-shirt
$22.99
Women's Vintage Butterfly Bee Floral Print V-neck T-shirt
$22.99
Vintage Sheep Wildflowers Patchwork Print Linen T-shirt
$22.99
Vintage Boho Sunflower With Bee In Plaid Embroidered Cozy Linen Maxi Dress
$37.99
Women's Vintage Sheep Patchwork Print Linen Sleeveless Dress
$27.99
Women's Vintage Sheep And Grass Floral Print V-neck Dress
$27.99
Vintage Bee Wildflowers Patchwork Print Linen Tank Top
$27.99
Women's Vintage Sheep Art Print Sleeveless Dress
$27.99
Vintage Sheep Flowers Patchwork Print Linen Tank Top
$27.99
Women's Vintage Flag And Bee Floral Print Dress
$37.99
Women's Retro Eco Friendly Patchwork Casual Linen Jumpsuit
$37.99
Bee Floral Patchwork Print Linen Tank Midi Dress
$31.99
Women's Patchwork Faux Denim Stripe Printed Casual Jumpsuit
$37.99
Women's Vintage Farm Sheep And Grass Print Sleeveless Dress
$27.99
Vintage Floral Patchwork Print Linen Kimono
$35.99
Women's Vintage Floral Sheep Art Embroidery Maxi Dress
$37.99
Women's Vintage Floral Sheep Art Embroidery Sleeveless Maxi Dress
$37.99
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}