${(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.url : data.url; 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(); return `
${ data.available ? `${ (+data.compare_at_price > +data.price) ? `Save
` : '' }` : "Sold out" }
${data.title}
${ data.price_min != data.price_max ? `From
` : `
` }
+${data.remainInvisibleThumbCount}
` })()}
Search
Log in
Create an account
${data.data && data.data.count}
Home
The Plug Addict
Syna
Save
$20.00
Save
$20.00
Syna Black Tracksuit
$142.00
$162.00
All Products
New Arrivals
Premier League
La Liga
Serie A
Bundesliga
Ligue 1
National Teams
23-24 Training Tracksuits
Other Teams
Concept Kits
Training Kits
Training Tracksuits
Shorts
Retro Kits
Windbreaker Jackets
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: 58731747, title: "Home", url: "\/", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731749, title: "The Plug Addict ", url: "\/collections\/the-plug-addict-lifestyle-clothing", target: "", levels: 1, product0: {"id":"802b73dc-98a9-410d-99d2-ec75652a1433","title":"Syna Black Tracksuit ","brief":"","vendor":"","vendor_url":"","has_only_default_variant":false,"requires_shipping":true,"taxable":false,"published":true,"handle":"syna-black-tracksuit","spu":"","need_variant_image":false,"updated_at":"2024-02-06T23:04:09Z","created_at":"2024-02-06T22:46:35Z","mixed_wholesale":false,"min_price_variant":{"id":"b0e54a73-b61c-47b9-81f5-570c918609f4","title":"XS","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":1,"option1":"XS","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=b0e54a73-b61c-47b9-81f5-570c918609f4","available_quantity":100,"options":[{"name":"Size","value":"XS"}],"off_ratio":12},"tags":"","available":true,"price_min":"142","price":"142","price_max":"142","compare_at_price_min":"162","compare_at_price":"162","compare_at_price_max":"162","retail_price_min":"162","retail_price_max":"162","url":"\/products\/syna-black-tracksuit","published_at":"2024-02-06T23:00:04Z","image":{"src":"\/\/img.staticdj.com\/d69aec16a90547c522c440145b3d87d8.jpg","path":"d69aec16a90547c522c440145b3d87d8.jpg","width":1899,"height":1899,"alt":"","aspect_ratio":1},"options":[{"id":"644e1cde-4005-4b81-a059-67856fad33f3","name":"Size","position":1,"values":["XS","S","M","L","XL","XXL"]}],"variants":[{"id":"b0e54a73-b61c-47b9-81f5-570c918609f4","title":"XS","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":1,"option1":"XS","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=b0e54a73-b61c-47b9-81f5-570c918609f4","available_quantity":100,"options":[{"name":"Size","value":"XS"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"7fc32156-bfda-4c45-b8e6-104e81f18ccb","title":"S","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":2,"option1":"S","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=7fc32156-bfda-4c45-b8e6-104e81f18ccb","available_quantity":100,"options":[{"name":"Size","value":"S"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"1e4c1321-b8f6-47e9-ad04-19fc76437d0d","title":"M","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":3,"option1":"M","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":false,"url":"\/products\/syna-black-tracksuit?variant=1e4c1321-b8f6-47e9-ad04-19fc76437d0d","available_quantity":0,"options":[{"name":"Size","value":"M"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"99b5712f-065f-40bf-aba2-fcae5404cb83","title":"L","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":4,"option1":"L","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=99b5712f-065f-40bf-aba2-fcae5404cb83","available_quantity":100,"options":[{"name":"Size","value":"L"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"f74e22ff-d98d-4467-b602-91b365c10082","title":"XL","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":5,"option1":"XL","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=f74e22ff-d98d-4467-b602-91b365c10082","available_quantity":100,"options":[{"name":"Size","value":"XL"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"7b789eef-6ae6-43ae-b0a3-2602d88f2de8","title":"XXL","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":6,"option1":"XXL","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=7b789eef-6ae6-43ae-b0a3-2602d88f2de8","available_quantity":100,"options":[{"name":"Size","value":"XXL"}],"off_ratio":12,"flashsale_info":[],"sales":null}],"images":[{"src":"\/\/img.staticdj.com\/d69aec16a90547c522c440145b3d87d8.jpg","path":"d69aec16a90547c522c440145b3d87d8.jpg","width":1899,"height":1899,"alt":"","aspect_ratio":1},{"src":"\/\/img.staticdj.com\/d09acc6029ea2291ce90984977e2e81c.jpg","path":"d09acc6029ea2291ce90984977e2e81c.jpg","width":1899,"height":1899,"alt":"","aspect_ratio":1},{"src":"\/\/img.staticdj.com\/ef7dcd09ea02cfa43bb7e47a147b7459.jpg","path":"ef7dcd09ea02cfa43bb7e47a147b7459.jpg","width":1899,"height":1899,"alt":"","aspect_ratio":1},{"src":"\/\/img.staticdj.com\/f146645fa8eb7c56290c8821e8f1b1f7.jpg","path":"f146645fa8eb7c56290c8821e8f1b1f7.jpg","width":3024,"height":3024,"alt":"","aspect_ratio":1},{"src":"\/\/img.staticdj.com\/414106d92f16bb4ec1d26e7f58dab3b2.jpg","path":"414106d92f16bb4ec1d26e7f58dab3b2.jpg","width":3024,"height":3024,"alt":"","aspect_ratio":1}],"retail_price":"162","off_ratio":12,"price_varies":true} || {}, children: [ { title: "Syna", url: "\/collections\/syna", target: "", levels: 0, children: [ ] }, ] }, { id: 58731753, title: "All Products", url: "\/collections\/all-products", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731755, title: "New Arrivals", url: "\/collections\/new-arrivals", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731757, title: "Premier League", url: "\/collections\/premier-league", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731759, title: "La Liga", url: "\/collections\/la-liga", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731761, title: "Serie A", url: "\/collections\/serie-a", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731763, title: "Bundesliga", url: "\/collections\/bundesliga", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731765, title: "Ligue 1", url: "\/collections\/ligue-1", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731767, title: "National Teams", url: "\/collections\/national-teams", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731769, title: "23-24 Training Tracksuits", url: "\/collections\/23-24-tracksuit", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731771, title: "Other Teams", url: "\/collections\/other-teams", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731773, title: "Concept Kits", url: "\/collections\/concept-kits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731775, title: "Training Kits", url: "\/collections\/training-kits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731777, title: "Training Tracksuits", url: "\/collections\/training-tracksuits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731779, title: "Shorts", url: "\/collections\/shorts", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731781, title: "Retro Kits", url: "\/collections\/retro-kits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731783, title: "Windbreaker Jackets", url: "\/collections\/windbreaker-jackets", 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
The Plug Addict
Syna
Save
$20.00
Save
$20.00
Syna Black Tracksuit
$142.00
$162.00
All Products
New Arrivals
Premier League
La Liga
Serie A
Bundesliga
Ligue 1
National Teams
23-24 Training Tracksuits
Other Teams
Concept Kits
Training Kits
Training Tracksuits
Shorts
Retro Kits
Windbreaker Jackets
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: 58731747, title: "Home", url: "\/", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731749, title: "The Plug Addict ", url: "\/collections\/the-plug-addict-lifestyle-clothing", target: "", levels: 1, product0: {"id":"802b73dc-98a9-410d-99d2-ec75652a1433","title":"Syna Black Tracksuit ","brief":"","vendor":"","vendor_url":"","has_only_default_variant":false,"requires_shipping":true,"taxable":false,"published":true,"handle":"syna-black-tracksuit","spu":"","need_variant_image":false,"updated_at":"2024-02-06T23:04:09Z","created_at":"2024-02-06T22:46:35Z","mixed_wholesale":false,"min_price_variant":{"id":"b0e54a73-b61c-47b9-81f5-570c918609f4","title":"XS","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":1,"option1":"XS","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=b0e54a73-b61c-47b9-81f5-570c918609f4","available_quantity":100,"options":[{"name":"Size","value":"XS"}],"off_ratio":12},"tags":"","available":true,"price_min":"142","price":"142","price_max":"142","compare_at_price_min":"162","compare_at_price":"162","compare_at_price_max":"162","retail_price_min":"162","retail_price_max":"162","url":"\/products\/syna-black-tracksuit","published_at":"2024-02-06T23:00:04Z","image":{"src":"\/\/img.staticdj.com\/d69aec16a90547c522c440145b3d87d8.jpg","path":"d69aec16a90547c522c440145b3d87d8.jpg","width":1899,"height":1899,"alt":"","aspect_ratio":1},"options":[{"id":"644e1cde-4005-4b81-a059-67856fad33f3","name":"Size","position":1,"values":["XS","S","M","L","XL","XXL"]}],"variants":[{"id":"b0e54a73-b61c-47b9-81f5-570c918609f4","title":"XS","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":1,"option1":"XS","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=b0e54a73-b61c-47b9-81f5-570c918609f4","available_quantity":100,"options":[{"name":"Size","value":"XS"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"7fc32156-bfda-4c45-b8e6-104e81f18ccb","title":"S","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":2,"option1":"S","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=7fc32156-bfda-4c45-b8e6-104e81f18ccb","available_quantity":100,"options":[{"name":"Size","value":"S"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"1e4c1321-b8f6-47e9-ad04-19fc76437d0d","title":"M","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":3,"option1":"M","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":false,"url":"\/products\/syna-black-tracksuit?variant=1e4c1321-b8f6-47e9-ad04-19fc76437d0d","available_quantity":0,"options":[{"name":"Size","value":"M"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"99b5712f-065f-40bf-aba2-fcae5404cb83","title":"L","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":4,"option1":"L","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=99b5712f-065f-40bf-aba2-fcae5404cb83","available_quantity":100,"options":[{"name":"Size","value":"L"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"f74e22ff-d98d-4467-b602-91b365c10082","title":"XL","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":5,"option1":"XL","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=f74e22ff-d98d-4467-b602-91b365c10082","available_quantity":100,"options":[{"name":"Size","value":"XL"}],"off_ratio":12,"flashsale_info":[],"sales":null},{"id":"7b789eef-6ae6-43ae-b0a3-2602d88f2de8","title":"XXL","weight_unit":"kg","inventory_quantity":100,"sku":"","barcode":"","position":6,"option1":"XXL","option2":"","option3":"","image":null,"wholesale_price":[{"price":142,"min_quantity":1}],"weight":"0","compare_at_price":"162","price":"142","retail_price":"162","available":true,"url":"\/products\/syna-black-tracksuit?variant=7b789eef-6ae6-43ae-b0a3-2602d88f2de8","available_quantity":100,"options":[{"name":"Size","value":"XXL"}],"off_ratio":12,"flashsale_info":[],"sales":null}],"images":[{"src":"\/\/img.staticdj.com\/d69aec16a90547c522c440145b3d87d8.jpg","path":"d69aec16a90547c522c440145b3d87d8.jpg","width":1899,"height":1899,"alt":"","aspect_ratio":1},{"src":"\/\/img.staticdj.com\/d09acc6029ea2291ce90984977e2e81c.jpg","path":"d09acc6029ea2291ce90984977e2e81c.jpg","width":1899,"height":1899,"alt":"","aspect_ratio":1},{"src":"\/\/img.staticdj.com\/ef7dcd09ea02cfa43bb7e47a147b7459.jpg","path":"ef7dcd09ea02cfa43bb7e47a147b7459.jpg","width":1899,"height":1899,"alt":"","aspect_ratio":1},{"src":"\/\/img.staticdj.com\/f146645fa8eb7c56290c8821e8f1b1f7.jpg","path":"f146645fa8eb7c56290c8821e8f1b1f7.jpg","width":3024,"height":3024,"alt":"","aspect_ratio":1},{"src":"\/\/img.staticdj.com\/414106d92f16bb4ec1d26e7f58dab3b2.jpg","path":"414106d92f16bb4ec1d26e7f58dab3b2.jpg","width":3024,"height":3024,"alt":"","aspect_ratio":1}],"retail_price":"162","off_ratio":12,"price_varies":true} || {}, children: [ { title: "Syna", url: "\/collections\/syna", target: "", levels: 0, children: [ ] }, ] }, { id: 58731753, title: "All Products", url: "\/collections\/all-products", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731755, title: "New Arrivals", url: "\/collections\/new-arrivals", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731757, title: "Premier League", url: "\/collections\/premier-league", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731759, title: "La Liga", url: "\/collections\/la-liga", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731761, title: "Serie A", url: "\/collections\/serie-a", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731763, title: "Bundesliga", url: "\/collections\/bundesliga", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731765, title: "Ligue 1", url: "\/collections\/ligue-1", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731767, title: "National Teams", url: "\/collections\/national-teams", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731769, title: "23-24 Training Tracksuits", url: "\/collections\/23-24-tracksuit", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731771, title: "Other Teams", url: "\/collections\/other-teams", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731773, title: "Concept Kits", url: "\/collections\/concept-kits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731775, title: "Training Kits", url: "\/collections\/training-kits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731777, title: "Training Tracksuits", url: "\/collections\/training-tracksuits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731779, title: "Shorts", url: "\/collections\/shorts", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731781, title: "Retro Kits", url: "\/collections\/retro-kits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58731783, title: "Windbreaker Jackets", url: "\/collections\/windbreaker-jackets", 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
The Plug Addict
Syna
All Products
New Arrivals
Premier League
La Liga
Serie A
Bundesliga
Ligue 1
National Teams
23-24 Training Tracksuits
Other Teams
Concept Kits
Training Kits
Training Tracksuits
Shorts
Retro Kits
Windbreaker Jackets
${(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(){ 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`); document.body.style.setProperty('--header-scroll-hide-height-md', `${headerEle.querySelector('.header__mobile .header__scroll_hide').clientHeight}px`); document.body.style.setProperty('--header-scroll-hide-height-pc', `${headerEle.querySelector('.header__desktop .header__scroll_hide').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
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 { return `
` } }()}
${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}
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 { return `
` } }()}
${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}