${(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
DIY Book Nook Kit
Book Nook Kit
PONIKKYS Book Nook Kit, DIY Miniature Dollhouse Booknook Kit, 3D Wooden Puzzle Bookend Bookshelf Insert Decor with LED Light for Teens and Adults (Beyond Library)
$42.99
Sale
New Arrivals
Top Sellers
Flash Sale
Collection
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Necklace
Photo Necklace
Photo Necklace
Projection Necklace
Fashion Necklace
Name Necklace
Couple Necklace
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Bracelet
Photo Bracelet
Photo Bracelet
Projection Bracelet
Fashion Bracelet
Name Bracelet
Birthstone Bracelet
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Ring
Fashion Rings
Diamond Rings
Couple Rings
Name Ring
Projection Ring
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Earrings
Projection Earrings
Photo Earrings
Name Earrings
Clip Earrings
Drop Earrings
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Keychain
Photo Keychain
Projection Keychain
Photo Keychain
Name Keychain
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Accessiories
Bag
Name Bag
Photo Bag
Wallet
Name Wallet
Photo Wallet
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
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: 66314879, title: "Home", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 66314881, title: "DIY Book Nook Kit", url: "\/collections\/diy-book-nook-kit", target: "", levels: 1, product0: { id: ("7d0622bc-1415-4511-b04e-0b7e61e82099") }, children: [ { title: "Book Nook Kit", url: "\/collections\/diy-book-nook-kit", target: "", levels: 0, children: [ ] }, ] }, { id: 66314885, title: "Sale", url: "\/collections\/sale", target: "", levels: 1, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "New Arrivals", url: "\/products\/gift-for-lover-youre-the-best-thing-that-ever-happened-to-me-necklace", target: "", levels: 0, children: [ ] }, { title: "Top Sellers", url: "", target: "", levels: 0, children: [ ] }, { title: "Flash Sale", url: "", target: "", levels: 0, children: [ ] }, { title: "Collection", url: "", target: "", levels: 0, children: [ ] }, ] }, { id: 66314895, title: "Necklace", url: "\/collections\/necklace", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Photo Necklace", url: "\/collections\/necklace", target: "", levels: 1, children: [ { title: "Photo Necklace", url: "\/products\/lucky-rainbow-crystal-bracelet", target: "", levels: 0, }, { title: "Projection Necklace", url: "\/collections\/necklace", target: "", levels: 0, }, ] }, { title: "Fashion Necklace", url: "\/collections\/necklace", target: "", levels: 1, children: [ { title: "Name Necklace", url: "\/products\/gift-for-lover-youre-the-best-thing-that-ever-happened-to-me-necklace", target: "", levels: 0, }, { title: "Couple Necklace", url: "", target: "", levels: 0, }, ] }, ] }, { id: 66314909, title: "Bracelet", url: "\/collections\/bracelet", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Photo Bracelet", url: "\/products\/spinning-four-leaf-clover-necklace-fashion-gift-for-girlfriend", target: "", levels: 1, children: [ { title: "Photo Bracelet", url: "", target: "", levels: 0, }, { title: "Projection Bracelet", url: "\/products\/gift-for-mom-i-may-just-be-a-bump-but-i-love-you-more-than-you-will-ever-know-necklace", target: "", levels: 0, }, ] }, { title: "Fashion Bracelet", url: "\/collections\/bracelet", target: "", levels: 1, children: [ { title: "Name Bracelet", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, { title: "Birthstone Bracelet", url: "", target: "", levels: 0, }, ] }, ] }, { id: 66314923, title: "Ring", url: "\/collections\/ring", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Fashion Rings", url: "\/collections\/ring", target: "", levels: 1, children: [ { title: "Diamond Rings", url: "\/collections\/ring", target: "", levels: 0, }, { title: "Couple Rings", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, ] }, { title: "Name Ring", url: "\/collections\/ring", target: "", levels: 0, children: [ ] }, { title: "Projection Ring", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, children: [ ] }, ] }, { id: 66314935, title: "Earrings", url: "\/collections\/earrings", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Projection Earrings", url: "\/collections\/earrings", target: "", levels: 0, children: [ ] }, { title: "Photo Earrings", url: "\/products\/gift-for-nurse-you-will-have-the-most-rewarding-job-in-the-world-necklace", target: "", levels: 0, children: [ ] }, { title: "Name Earrings", url: "\/products\/gift-for-granddaughter-if-im-ever-not-here-and-you-need-a-hug-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 1, children: [ { title: "Clip Earrings", url: "\/products\/gift-for-granddaughter-if-im-ever-not-here-and-you-need-a-hug-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, { title: "Drop Earrings", url: "\/collections\/earrings", target: "", levels: 0, }, ] }, ] }, { id: 66314947, title: "Keychain", url: "\/collections\/keychain", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Photo Keychain", url: "\/products\/gift-for-mom-i-may-just-be-a-bump-but-i-love-you-more-than-you-will-ever-know-necklace", target: "", levels: 1, children: [ { title: "Projection Keychain", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, { title: "Photo Keychain", url: "\/collections\/keychain", target: "", levels: 0, }, ] }, { title: "Name Keychain", url: "\/collections\/keychain", target: "", levels: 0, children: [ ] }, ] }, { id: 66314957, title: "Accessiories", url: "\/collections\/accessiories", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Bag", url: "\/collections\/accessiories", target: "", levels: 1, children: [ { title: "Name Bag", url: "\/products\/spinning-four-leaf-clover-necklace-fashion-gift-for-girlfriend", target: "", levels: 0, }, { title: "Photo Bag", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, ] }, { title: "Wallet", url: "\/products\/gift-for-lover-youre-the-best-thing-that-ever-happened-to-me-necklace", target: "", levels: 1, children: [ { title: "Name Wallet", url: "\/collections\/accessiories", target: "", levels: 0, }, { title: "Photo Wallet", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, ] }, ] }, ].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
DIY Book Nook Kit
Book Nook Kit
PONIKKYS Book Nook Kit, DIY Miniature Dollhouse Booknook Kit, 3D Wooden Puzzle Bookend Bookshelf Insert Decor with LED Light for Teens and Adults (Beyond Library)
$42.99
Sale
New Arrivals
Top Sellers
Flash Sale
Collection
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Necklace
Photo Necklace
Photo Necklace
Projection Necklace
Fashion Necklace
Name Necklace
Couple Necklace
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Bracelet
Photo Bracelet
Photo Bracelet
Projection Bracelet
Fashion Bracelet
Name Bracelet
Birthstone Bracelet
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Ring
Fashion Rings
Diamond Rings
Couple Rings
Name Ring
Projection Ring
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Earrings
Projection Earrings
Photo Earrings
Name Earrings
Clip Earrings
Drop Earrings
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Keychain
Photo Keychain
Projection Keychain
Photo Keychain
Name Keychain
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
Accessiories
Bag
Name Bag
Photo Bag
Wallet
Name Wallet
Photo Wallet
Save
$38.05
Save
$38.05
"Lucky Rainbow" Crystal Bracelet
$39.95
$78.00
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: 66314879, title: "Home", url: "\/", target: "", levels: 0, product0: { id: (null) }, children: [ ] }, { id: 66314881, title: "DIY Book Nook Kit", url: "\/collections\/diy-book-nook-kit", target: "", levels: 1, product0: { id: ("7d0622bc-1415-4511-b04e-0b7e61e82099") }, children: [ { title: "Book Nook Kit", url: "\/collections\/diy-book-nook-kit", target: "", levels: 0, children: [ ] }, ] }, { id: 66314885, title: "Sale", url: "\/collections\/sale", target: "", levels: 1, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "New Arrivals", url: "\/products\/gift-for-lover-youre-the-best-thing-that-ever-happened-to-me-necklace", target: "", levels: 0, children: [ ] }, { title: "Top Sellers", url: "", target: "", levels: 0, children: [ ] }, { title: "Flash Sale", url: "", target: "", levels: 0, children: [ ] }, { title: "Collection", url: "", target: "", levels: 0, children: [ ] }, ] }, { id: 66314895, title: "Necklace", url: "\/collections\/necklace", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Photo Necklace", url: "\/collections\/necklace", target: "", levels: 1, children: [ { title: "Photo Necklace", url: "\/products\/lucky-rainbow-crystal-bracelet", target: "", levels: 0, }, { title: "Projection Necklace", url: "\/collections\/necklace", target: "", levels: 0, }, ] }, { title: "Fashion Necklace", url: "\/collections\/necklace", target: "", levels: 1, children: [ { title: "Name Necklace", url: "\/products\/gift-for-lover-youre-the-best-thing-that-ever-happened-to-me-necklace", target: "", levels: 0, }, { title: "Couple Necklace", url: "", target: "", levels: 0, }, ] }, ] }, { id: 66314909, title: "Bracelet", url: "\/collections\/bracelet", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Photo Bracelet", url: "\/products\/spinning-four-leaf-clover-necklace-fashion-gift-for-girlfriend", target: "", levels: 1, children: [ { title: "Photo Bracelet", url: "", target: "", levels: 0, }, { title: "Projection Bracelet", url: "\/products\/gift-for-mom-i-may-just-be-a-bump-but-i-love-you-more-than-you-will-ever-know-necklace", target: "", levels: 0, }, ] }, { title: "Fashion Bracelet", url: "\/collections\/bracelet", target: "", levels: 1, children: [ { title: "Name Bracelet", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, { title: "Birthstone Bracelet", url: "", target: "", levels: 0, }, ] }, ] }, { id: 66314923, title: "Ring", url: "\/collections\/ring", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Fashion Rings", url: "\/collections\/ring", target: "", levels: 1, children: [ { title: "Diamond Rings", url: "\/collections\/ring", target: "", levels: 0, }, { title: "Couple Rings", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, ] }, { title: "Name Ring", url: "\/collections\/ring", target: "", levels: 0, children: [ ] }, { title: "Projection Ring", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, children: [ ] }, ] }, { id: 66314935, title: "Earrings", url: "\/collections\/earrings", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Projection Earrings", url: "\/collections\/earrings", target: "", levels: 0, children: [ ] }, { title: "Photo Earrings", url: "\/products\/gift-for-nurse-you-will-have-the-most-rewarding-job-in-the-world-necklace", target: "", levels: 0, children: [ ] }, { title: "Name Earrings", url: "\/products\/gift-for-granddaughter-if-im-ever-not-here-and-you-need-a-hug-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 1, children: [ { title: "Clip Earrings", url: "\/products\/gift-for-granddaughter-if-im-ever-not-here-and-you-need-a-hug-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, { title: "Drop Earrings", url: "\/collections\/earrings", target: "", levels: 0, }, ] }, ] }, { id: 66314947, title: "Keychain", url: "\/collections\/keychain", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Photo Keychain", url: "\/products\/gift-for-mom-i-may-just-be-a-bump-but-i-love-you-more-than-you-will-ever-know-necklace", target: "", levels: 1, children: [ { title: "Projection Keychain", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, { title: "Photo Keychain", url: "\/collections\/keychain", target: "", levels: 0, }, ] }, { title: "Name Keychain", url: "\/collections\/keychain", target: "", levels: 0, children: [ ] }, ] }, { id: 66314957, title: "Accessiories", url: "\/collections\/accessiories", target: "", levels: 2, product0: { id: ("975d90e1-9f4a-432d-9bf5-306f0aa8940f") }, children: [ { title: "Bag", url: "\/collections\/accessiories", target: "", levels: 1, children: [ { title: "Name Bag", url: "\/products\/spinning-four-leaf-clover-necklace-fashion-gift-for-girlfriend", target: "", levels: 0, }, { title: "Photo Bag", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, ] }, { title: "Wallet", url: "\/products\/gift-for-lover-youre-the-best-thing-that-ever-happened-to-me-necklace", target: "", levels: 1, children: [ { title: "Name Wallet", url: "\/collections\/accessiories", target: "", levels: 0, }, { title: "Photo Wallet", url: "\/products\/gift-for-daughter-just-hold-this-close-to-feel-my-love-necklace", target: "", levels: 0, }, ] }, ] }, ].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
DIY Book Nook Kit
DIY Book Nook Kit
Book Nook Kit
Sale
Sale
New Arrivals
Top Sellers
Flash Sale
Collection
Necklace
Necklace
Photo Necklace
Photo Necklace
Photo Necklace
Projection Necklace
Fashion Necklace
Fashion Necklace
Name Necklace
Couple Necklace
Bracelet
Bracelet
Photo Bracelet
Photo Bracelet
Photo Bracelet
Projection Bracelet
Fashion Bracelet
Fashion Bracelet
Name Bracelet
Birthstone Bracelet
Ring
Ring
Fashion Rings
Fashion Rings
Diamond Rings
Couple Rings
Name Ring
Projection Ring
Earrings
Earrings
Projection Earrings
Photo Earrings
Name Earrings
Name Earrings
Clip Earrings
Drop Earrings
Keychain
Keychain
Photo Keychain
Photo Keychain
Projection Keychain
Photo Keychain
Name Keychain
Accessiories
Accessiories
Bag
Bag
Name Bag
Photo Bag
Wallet
Wallet
Name Wallet
Photo Wallet
Log in
Create an account
(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
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}
(-
)
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
${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) { const nameEscape = opt.name.replace(/\/|\\|\s|\'|\"|`|\<|\>/g, '') product_change_event = product_change_event + `quick-shop-selected-variant-${opt.id}.rerender(data=event.selectedValues.${opt.name});`; mouse_out_event = mouse_out_event + `quick-shop-selected-variant-${opt.id}.rerender(data=event.selectData.${opt.name});`; mouse_over_event = mouse_over_event + `@${nameEscape}Mouseover="quick-shop-selected-variant-${opt.id}.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 optionId = option.id || ''; 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}