COTTON AND LINEN SOLID COLOR T-SHIRT SHIRT
${function() {
const variantData = data.variant || {"id":"d6408eab-7f8d-4ea1-904e-8ed707be13e5","product_id":"943ba491-9f62-40de-8a83-9defe5a43136","title":"Grey-S\/UK8","weight_unit":"kg","inventory_quantity":1000,"sku":"LY62-Grey-S\/UK8","barcode":"","position":1,"option1":"Grey","option2":"S\/UK8","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/115b7bf3146626957367132129506ae7.jpeg","path":"115b7bf3146626957367132129506ae7.jpeg","width":742,"height":740,"alt":"","aspect_ratio":1.0027027027027027},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"19.99","retail_price":"35.99","available":true,"url":"\/products\/cotton-and-linen-solid-color-t-shirt-shirt?variant=d6408eab-7f8d-4ea1-904e-8ed707be13e5","available_quantity":1000,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"S\/UK8"}],"off_ratio":44,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
people are viewing this right now
Color:
Grey
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
S/UK8
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$19.99
${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 = {"id":"d6408eab-7f8d-4ea1-904e-8ed707be13e5","product_id":"943ba491-9f62-40de-8a83-9defe5a43136","title":"Grey-S\/UK8","weight_unit":"kg","inventory_quantity":1000,"sku":"LY62-Grey-S\/UK8","barcode":"","position":1,"option1":"Grey","option2":"S\/UK8","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/115b7bf3146626957367132129506ae7.jpeg","path":"115b7bf3146626957367132129506ae7.jpeg","width":742,"height":740,"alt":"","aspect_ratio":1.0027027027027027},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"19.99","retail_price":"35.99","available":true,"url":"\/products\/cotton-and-linen-solid-color-t-shirt-shirt?variant=d6408eab-7f8d-4ea1-904e-8ed707be13e5","available_quantity":1000,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"S\/UK8"}],"off_ratio":44,"flashsale_info":[],"sales":0};
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 ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"d6408eab-7f8d-4ea1-904e-8ed707be13e5","product_id":"943ba491-9f62-40de-8a83-9defe5a43136","title":"Grey-S\/UK8","weight_unit":"kg","inventory_quantity":1000,"sku":"LY62-Grey-S\/UK8","barcode":"","position":1,"option1":"Grey","option2":"S\/UK8","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/115b7bf3146626957367132129506ae7.jpeg","path":"115b7bf3146626957367132129506ae7.jpeg","width":742,"height":740,"alt":"","aspect_ratio":1.0027027027027027},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"19.99","retail_price":"35.99","available":true,"url":"\/products\/cotton-and-linen-solid-color-t-shirt-shirt?variant=d6408eab-7f8d-4ea1-904e-8ed707be13e5","available_quantity":1000,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"S\/UK8"}],"off_ratio":44,"flashsale_info":[],"sales":0};
return `
`
}()}