${(function(){ const get_random_six_digits = () => { return Math.random().toString().slice(-6) }; const wholesale_enabled = false; const setting_product_image_display = "100%"; 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
` : `
` }
` })()}
Buy 2+ Free Shipping & 15% Off
Buy 2+ Free Shipping & 15% Off
Log in
Create an account
${data.data && data.data.count}
iPhone Screen Protector
iPhone 15
iPhone 15
iPhone 15 Pro
iPhone 15 Plus
iPhone 15 Pro Max
iPhone 14
iPhone 14
iPhone 14 Pro
iphone 14 Plus
iPhone 14 Pro Max
iPhone 13
iPhone 13
iPhone 13 Mini
iPhone 13 Pro
iPhone 13 Pro Max
iPhone 12
iPhone 12
iPhone 12 Mini
iPhone 12 Pro
iPhone 12 Pro Max
iPhone 11
iPhone 11
iPhone 11 Pro
iPhone 11 Pro Max
Featured Products
HD & Anti-Blue Light
Anti-Glare & Anti-Blue Light
Privacy Screen Protector
AR Technology
iPhone 15
iPhone 15 Pro
iPhone 15 Plus
iPhone 15 Pro Max
iPhone 14
iPhone 14 Pro
iPhone 14 Plus
iPhone 14 Pro Max
More
iPhone SE(2020-2022)
iPhone XS Max
iPhone XR
iPhone X/XS
iPhone 8 Plus
iPhone 8
iPhone 7 Plus
iPhone 7
Samsung Screen Protector
Galaxy S24
Galaxy S24
Galaxy S24+
Galaxy S24 Ultra
Galaxy Z Flip 5
Galaxy Z Flip 5 Case
iPad Screen Protector
iPad
10.9-inch iPad 10 2022
10.2-inch iPad 9(2021)
10.2-inch iPad 8(2020)
10.2-inch iPad (2019)
iPad Pro
13-inch iPad Pro (2024)
11-inch iPad Pro (2024)
12.9-inch iPad Pro (2018-2022)
12.9-inch iPad Pro (2015-2017)
11-inch iPad Pro (2018-2022)
9.7-inch iPad 6/5/ Pro (2016)
iPad Air
13-inch iPad Air 6th Gen (2024)
11-inch iPad Air 6th Gen (2024)
10.9-inch iPad Air 5th Gen (2022)
10.9-inch iPad Air 4th Gen (2020)
10.5-inch iPad Air 3th Gen (2019)
9.7-inch iPad Air 2/1 th Gen
iPad Mini
iPad mini 6
iPad mini 5
iPad mini 4
iPad mini 4/3/2
MacBook
MacBook Pro
Macbook Pro 16.2''(2021-2023)
Macbook Pro 16"(2019-2020)
Macbook Pro 15"
Macbook Pro 14"(2021-2023)
Macbook Pro 13"(2016-2022)
MacBook Air
Macbook Air 13.6"
Macbook Air 13"
Phone Charm
Phone Charm
Fashion Style
Simple Style
Chinese Style
Google Pixel
Google Pixel 8
Google Pixel 8
Google Pixel 8 Pro
Google Pixel 7
Google Pixel 7
Google Pixel 7 A
Google Pixel 7 Pro
Google Pixel 6
Google Pixel 6
Google Pixel 6A
Google Pixel 6 Pro
Switch Screen Protector
Switch
Nintendo Switch
Nintendo Switch Lite
Nintendo Switch OLED
Help
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: 63156139, title: "iPhone Screen Protector", url: "", target: "_blank", levels: 2, product0: null || {}, children: [ { title: "iPhone 15", url: "\/collections\/iphone-15-q4kn", target: "", levels: 1, children: [ { title: "iPhone 15", url: "\/collections\/iphone-15-q4kn", target: "_blank", levels: 0, }, { title: "iPhone 15 Pro", url: "\/collections\/iphone-15-pro", target: "_blank", levels: 0, }, { title: "iPhone 15 Plus", url: "\/collections\/iphone-15-plus-oa5s", target: "_blank", levels: 0, }, { title: "iPhone 15 Pro Max", url: "\/collections\/iphone-15-pro-max", target: "_blank", levels: 0, }, ] }, { title: "iPhone 14", url: "\/collections\/iphone-14-all", target: "", levels: 1, children: [ { title: "iPhone 14", url: "\/collections\/iphone-14-all", target: "_blank", levels: 0, }, { title: "iPhone 14 Pro", url: "\/collections\/iphone-14-pro-6h0r", target: "_blank", levels: 0, }, { title: "iphone 14 Plus", url: "\/collections\/iphone-14-plus-n8wj", target: "_blank", levels: 0, }, { title: "iPhone 14 Pro Max", url: "\/collections\/iphone-14-pro-max-all", target: "_blank", levels: 0, }, ] }, { title: "iPhone 13", url: "\/collections\/iphone-13", target: "", levels: 1, children: [ { title: "iPhone 13", url: "\/collections\/iphone-13", target: "_blank", levels: 0, }, { title: "iPhone 13 Mini", url: "\/collections\/iphone-13-mini", target: "_blank", levels: 0, }, { title: " iPhone 13 Pro ", url: "\/collections\/iphone-13-pro-hb1g", target: "_blank", levels: 0, }, { title: "iPhone 13 Pro Max ", url: "\/collections\/iphone-13-pro-max-nhyx", target: "_blank", levels: 0, }, ] }, { title: "iPhone 12", url: "\/collections\/iphone-12", target: "", levels: 1, children: [ { title: "iPhone 12", url: "\/collections\/iphone-12", target: "_blank", levels: 0, }, { title: "iPhone 12 Mini", url: "\/collections\/iphone-12-mini", target: "_blank", levels: 0, }, { title: " iPhone 12 Pro", url: "\/collections\/iphone-12-pro", target: "_blank", levels: 0, }, { title: "iPhone 12 Pro Max", url: "\/collections\/iphone-12-pro-max-all", target: "_blank", levels: 0, }, ] }, { title: "iPhone 11", url: "\/collections\/iphone-11", target: "", levels: 1, children: [ { title: "iPhone 11 ", url: "\/collections\/iphone-11", target: "_blank", levels: 0, }, { title: "iPhone 11 Pro", url: "\/collections\/iphone-11-pro", target: "_blank", levels: 0, }, { title: "iPhone 11 Pro Max ", url: "\/collections\/iphone-11-pro-max", target: "_blank", levels: 0, }, ] }, { title: "Featured Products", url: "", target: "", levels: 1, children: [ { title: "HD & Anti-Blue Light", url: "\/collections\/ultra-hd-anti-blue-light-glass-screen-protector", target: "", levels: 0, }, { title: "Anti-Glare & Anti-Blue Light", url: "\/collections\/anti-glare-frosted-glass-screen-protector", target: "", levels: 0, }, { title: "Privacy Screen Protector", url: "\/collections\/privacy", target: "", levels: 0, }, ] }, { title: "AR Technology", url: "\/collections\/ar-technology-screen-protector", target: "_blank", levels: 1, children: [ { title: "iPhone 15", url: "\/collections\/iphone-15-ar-screen-protector", target: "_blank", levels: 0, }, { title: "iPhone 15 Pro", url: "\/collections\/iphone-15-pro-ar-screen-protector", target: "_blank", levels: 0, }, { title: "iPhone 15 Plus", url: "\/collections\/iphone-15-plus-ar-screen-protector", target: "_blank", levels: 0, }, { title: "iPhone 15 Pro Max", url: "\/collections\/iphone-15-pro-max-ar-screen-protector", target: "_blank", levels: 0, }, { title: "iPhone 14", url: "\/collections\/iphone-14-ar-screen-protector", target: "_blank", levels: 0, }, { title: "iPhone 14 Pro", url: "\/collections\/iphone-14-pro-ar-screen-protector", target: "_blank", levels: 0, }, { title: "iPhone 14 Plus", url: "\/collections\/iphone-14-plus-ar-screen-protector", target: "_blank", levels: 0, }, { title: "iPhone 14 Pro Max", url: "\/collections\/iphone-14-pro-max-ar-screen-protector", target: "_blank", levels: 0, }, ] }, { title: "More", url: "", target: "", levels: 1, children: [ { title: "iPhone SE(2020-2022)", url: "\/collections\/iphone-se", target: "_blank", levels: 0, }, { title: "iPhone XS Max", url: "\/collections\/iphone-xs-max", target: "_blank", levels: 0, }, { title: "iPhone XR", url: "\/collections\/iphone-xr", target: "_blank", levels: 0, }, { title: "iPhone X\/XS", url: "\/collections\/iphone-x-xs", target: "_blank", levels: 0, }, { title: "iPhone 8 Plus", url: "\/collections\/iphone-8-plus", target: "_blank", levels: 0, }, { title: "iPhone 8", url: "\/collections\/iphone-8", target: "_blank", levels: 0, }, { title: "iPhone 7 Plus", url: "\/collections\/iphone-7-plus", target: "_blank", levels: 0, }, { title: "iPhone 7", url: "\/collections\/iphone-7", target: "_blank", levels: 0, }, ] }, ] }, { id: 63156233, title: "Samsung Screen Protector", url: "", target: "", levels: 2, product0: null || {}, children: [ { title: "Galaxy S24", url: "", target: "", levels: 1, children: [ { title: "Galaxy S24", url: "\/collections\/galaxy-s24", target: "_blank", levels: 0, }, { title: "Galaxy S24+", url: "\/collections\/galaxy-s24-o0kg", target: "_blank", levels: 0, }, { title: "Galaxy S24 Ultra", url: "\/collections\/galaxy-s24-ultra", target: "_blank", levels: 0, }, ] }, { title: "Galaxy Z Flip 5 ", url: "\/collections\/galaxy-z-flip-5-case", target: "_blank", levels: 1, children: [ { title: "Galaxy Z Flip 5 Case", url: "\/collections\/galaxy-z-flip-5-case", target: "_blank", levels: 0, }, ] }, ] }, { id: 63156247, title: "iPad Screen Protector", url: "", target: "_blank", levels: 2, product0: null || {}, children: [ { title: "iPad", url: "", target: "", levels: 1, children: [ { title: "10.9-inch iPad 10 2022", url: "\/collections\/10-9-inch-ipad-10-2022-all", target: "_blank", levels: 0, }, { title: "10.2-inch iPad 9(2021)", url: "\/collections\/10-2-inch-ipad-92021", target: "_blank", levels: 0, }, { title: "10.2-inch iPad 8(2020)", url: "\/collections\/10-2-inch-ipad-82020", target: "_blank", levels: 0, }, { title: "10.2-inch iPad (2019)", url: "\/collections\/10-2-inch-ipad-2019", target: "_blank", levels: 0, }, ] }, { title: "iPad Pro", url: "", target: "", levels: 1, children: [ { title: "13-inch iPad Pro (2024)", url: "\/collections\/13-inch-ipad-pro-2024", target: "_blank", levels: 0, }, { title: "11-inch iPad Pro (2024)", url: "\/collections\/11-inch-ipad-pro-2024", target: "_blank", levels: 0, }, { title: "12.9-inch iPad Pro (2018-2022\uff09", url: "\/collections\/12-9-inch-ipad-pro", target: "_blank", levels: 0, }, { title: "12.9-inch iPad Pro (2015-2017)", url: "\/collections\/hd-anti-blue-light-filter-screen-protector-for-12-9-inch-ipad-pro", target: "_blank", levels: 0, }, { title: "11-inch iPad Pro (2018-2022)", url: "\/collections\/11-inch-ipad-pro", target: "_blank", levels: 0, }, { title: "9.7-inch iPad 6\/5\/ Pro (2016)", url: "\/collections\/anti-blue-light-9-7-inch-ipad-6-5-pro2016", target: "_blank", levels: 0, }, ] }, { title: "iPad Air", url: "", target: "", levels: 1, children: [ { title: "13-inch iPad Air 6th Gen (2024)", url: "\/collections\/13-inch-ipad-air-6th-gen-2024", target: "_blank", levels: 0, }, { title: "11-inch iPad Air 6th Gen (2024)", url: "\/collections\/11-inch-ipad-air-6th-gen-2024", target: "_blank", levels: 0, }, { title: "10.9-inch iPad Air 5th Gen (2022)", url: "\/collections\/anti-glare-10-9-inch-ipad-air", target: "_blank", levels: 0, }, { title: "10.9-inch iPad Air 4th Gen (2020)", url: "\/collections\/10-9-inch-ipad-air", target: "_blank", levels: 0, }, { title: "10.5-inch iPad Air 3th Gen (2019)", url: "\/collections\/matte-10-5-inch-ipad-air", target: "_blank", levels: 0, }, { title: "9.7-inch iPad Air 2\/1 th Gen ", url: "\/collections\/9-7-inch-ipad-air", target: "_blank", levels: 0, }, ] }, { title: "iPad Mini", url: "", target: "", levels: 1, children: [ { title: "iPad mini 6", url: "\/collections\/ipad-mini-6", target: "_blank", levels: 0, }, { title: "iPad mini 5", url: "\/collections\/ipad-mini-5", target: "_blank", levels: 0, }, { title: "iPad mini 4", url: "\/collections\/ipad-mini-4", target: "_blank", levels: 0, }, { title: "iPad mini 4\/3\/2", url: "\/collections\/ipad-mini-4-3-2", target: "_blank", levels: 0, }, ] }, ] }, { id: 63156297, title: "MacBook", url: "\/collections\/macbook", target: "_blank", levels: 2, product0: null || {}, children: [ { title: "MacBook Pro", url: "\/collections\/macbook", target: "_blank", levels: 1, children: [ { title: "Macbook Pro 16.2''(2021-2023)", url: "\/collections\/macbook-pro-16-2", target: "_blank", levels: 0, }, { title: "Macbook Pro 16\"(2019-2020)", url: "\/collections\/macbook-pro-162019-2020", target: "_blank", levels: 0, }, { title: "Macbook Pro 15\"", url: "\/collections\/macbook-pro-15", target: "_blank", levels: 0, }, { title: "Macbook Pro 14\"(2021-2023)", url: "\/collections\/macbook-pro-14", target: "_blank", levels: 0, }, { title: "Macbook Pro 13\"(2016-2022)", url: "\/collections\/macbook-pro-13", target: "_blank", levels: 0, }, ] }, { title: "MacBook Air", url: "", target: "_blank", levels: 1, children: [ { title: "Macbook Air 13.6\"", url: "\/collections\/macbook-air-13-6", target: "_blank", levels: 0, }, { title: "Macbook Air 13\"", url: "\/collections\/macbook-air-13", target: "_blank", levels: 0, }, ] }, ] }, { id: 63156317, title: "Phone Charm", url: "\/collections\/phone-charm", target: "", levels: 2, product0: null || {}, children: [ { title: "Phone Charm", url: "", target: "", levels: 1, children: [ { title: "Fashion Style", url: "\/collections\/fashion-style-phone-charm", target: "_blank", levels: 0, }, { title: "Simple Style", url: "\/collections\/simple-style-phone-charm", target: "_blank", levels: 0, }, { title: "Chinese Style ", url: "\/collections\/chinese-style-phone-charm", target: "_blank", levels: 0, }, ] }, ] }, { id: 63156327, title: "Google Pixel", url: "\/collections\/google-pixel-8-pro", target: "_blank", levels: 2, product0: null || {}, children: [ { title: "Google Pixel 8", url: "", target: "_blank", levels: 1, children: [ { title: "Google Pixel 8", url: "\/collections\/google-pixel-8", target: "", levels: 0, }, { title: "Google Pixel 8 Pro", url: "\/collections\/google-pixel-8-pro", target: "", levels: 0, }, ] }, { title: "Google Pixel 7", url: "", target: "_blank", levels: 1, children: [ { title: "Google Pixel 7", url: "\/collections\/google-pixel-7", target: "", levels: 0, }, { title: "Google Pixel 7 A", url: "\/collections\/google-pixel-7-a", target: "", levels: 0, }, { title: "Google Pixel 7 Pro", url: "\/collections\/google-pixel-7-pro", target: "", levels: 0, }, ] }, { title: "Google Pixel 6", url: "", target: "_blank", levels: 1, children: [ { title: "Google Pixel 6", url: "\/collections\/google-pixel-6", target: "", levels: 0, }, { title: "Google Pixel 6A", url: "\/collections\/google-pixel-6a", target: "", levels: 0, }, { title: "Google Pixel 6 Pro", url: "\/collections\/google-pixel-6-pro", target: "", levels: 0, }, ] }, ] }, { id: 63156351, title: "Switch Screen Protector", url: "\/collections\/switch", target: "_blank", levels: 2, product0: null || {}, children: [ { title: "Switch", url: "\/collections\/switch", target: "_blank", levels: 1, children: [ { title: "Nintendo Switch", url: "\/collections\/nintendo-switch", target: "_blank", levels: 0, }, { title: "Nintendo Switch Lite", url: "\/collections\/nintendo-switch-lite", target: "_blank", levels: 0, }, { title: "Nintendo Switch OLED", url: "\/collections\/nintendo-switch-oled", target: "_blank", levels: 0, }, ] }, ] }, { id: 63156371, title: "Help", url: "\/pages\/contact-us", 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}
${(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.
` })()}
iPhone Screen Protector
iPhone Screen Protector
iPhone 15
iPhone 15
iPhone 15
iPhone 15 Pro
iPhone 15 Plus
iPhone 15 Pro Max
iPhone 14
iPhone 14
iPhone 14
iPhone 14 Pro
iphone 14 Plus
iPhone 14 Pro Max
iPhone 13
iPhone 13
iPhone 13
iPhone 13 Mini
iPhone 13 Pro
iPhone 13 Pro Max
iPhone 12
iPhone 12
iPhone 12
iPhone 12 Mini
iPhone 12 Pro
iPhone 12 Pro Max
iPhone 11
iPhone 11
iPhone 11
iPhone 11 Pro
iPhone 11 Pro Max
Featured Products
Featured Products
HD & Anti-Blue Light
Anti-Glare & Anti-Blue Light
Privacy Screen Protector
AR Technology
AR Technology
iPhone 15
iPhone 15 Pro
iPhone 15 Plus
iPhone 15 Pro Max
iPhone 14
iPhone 14 Pro
iPhone 14 Plus
iPhone 14 Pro Max
More
More
iPhone SE(2020-2022)
iPhone XS Max
iPhone XR
iPhone X/XS
iPhone 8 Plus
iPhone 8
iPhone 7 Plus
iPhone 7
Samsung Screen Protector
Samsung Screen Protector
Galaxy S24
Galaxy S24
Galaxy S24
Galaxy S24+
Galaxy S24 Ultra
Galaxy Z Flip 5
Galaxy Z Flip 5
Galaxy Z Flip 5 Case
iPad Screen Protector
iPad Screen Protector
iPad
iPad
10.9-inch iPad 10 2022
10.2-inch iPad 9(2021)
10.2-inch iPad 8(2020)
10.2-inch iPad (2019)
iPad Pro
iPad Pro
13-inch iPad Pro (2024)
11-inch iPad Pro (2024)
12.9-inch iPad Pro (2018-2022)
12.9-inch iPad Pro (2015-2017)
11-inch iPad Pro (2018-2022)
9.7-inch iPad 6/5/ Pro (2016)
iPad Air
iPad Air
13-inch iPad Air 6th Gen (2024)
11-inch iPad Air 6th Gen (2024)
10.9-inch iPad Air 5th Gen (2022)
10.9-inch iPad Air 4th Gen (2020)
10.5-inch iPad Air 3th Gen (2019)
9.7-inch iPad Air 2/1 th Gen
iPad Mini
iPad Mini
iPad mini 6
iPad mini 5
iPad mini 4
iPad mini 4/3/2
MacBook
MacBook
MacBook Pro
MacBook Pro
Macbook Pro 16.2''(2021-2023)
Macbook Pro 16"(2019-2020)
Macbook Pro 15"
Macbook Pro 14"(2021-2023)
Macbook Pro 13"(2016-2022)
MacBook Air
MacBook Air
Macbook Air 13.6"
Macbook Air 13"
Phone Charm
Phone Charm
Phone Charm
Phone Charm
Fashion Style
Simple Style
Chinese Style
Google Pixel
Google Pixel
Google Pixel 8
Google Pixel 8
Google Pixel 8
Google Pixel 8 Pro
Google Pixel 7
Google Pixel 7
Google Pixel 7
Google Pixel 7 A
Google Pixel 7 Pro
Google Pixel 6
Google Pixel 6
Google Pixel 6
Google Pixel 6A
Google Pixel 6 Pro
Switch Screen Protector
Switch Screen Protector
Switch
Switch
Nintendo Switch
Nintendo Switch Lite
Nintendo Switch OLED
Help
Log in
(function(){ let w = window.innerWidth; function setHeaderCssVar() { const headerEle = document.getElementById('shoplaza-section-header'); if(!headerEle){ return }; document.body.style.setProperty('--window-height', `${window.innerHeight}px`); document.body.style.setProperty('--header-height', `${headerEle.clientHeight}px`); const mdScorllHideEle = headerEle.querySelector('.header__mobile .header__scroll_hide'); if (mdScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-md', `${mdScorllHideEle.clientHeight}px`); } const pcScorllHideEle = headerEle.querySelector('.header__desktop .header__scroll_hide'); if (pcScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-pc', `${pcScorllHideEle.clientHeight}px`); } } function handlResize() { if(w == window.innerWidth){return}; w = window.innerWidth; setHeaderCssVar(); }; function init(){ setHeaderCssVar(); window.removeEventListener('resize', window._theme_header_listener) window._theme_header_listener = handlResize; window.addEventListener('resize', window._theme_header_listener); } init(); })();
Home
/
My Account
Reset password with email
${data.errors && data.errors[0]}
Email
Email is required
Please enter a valid email.
Send
Verification code
Please enter a valid code
Password
Password is required.
Password must be between 6-16 characters long.
Confirm password
Please enter the same value again
Password must be between 6-16 characters long.
Your password and confirmation password do not match
Confirm
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 = [] || []; 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 = "dropdown"; 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}
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 = [] || []; 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 = "dropdown"; 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}