Black and White Striped Loose Sweater
${function() {
const variantData = data.variant || {"id":"5ec6b07e-d233-40dd-b1d2-26d9df6e56d7","product_id":"0db9eac9-9b90-4f8e-a4e7-1a2f27b797ec","title":"white-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221019305-white-S","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4bbc47591cfe1c5bb00b4fb9091d0520.jpeg","path":"4bbc47591cfe1c5bb00b4fb9091d0520.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":41.79,"min_quantity":1}],"weight":"0.5","compare_at_price":"51.59","price":"41.79","retail_price":"51.59","available":true,"url":"\/products\/black-and-white-striped-loose-sweater?variant=5ec6b07e-d233-40dd-b1d2-26d9df6e56d7","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"S"}],"off_ratio":19,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"5ec6b07e-d233-40dd-b1d2-26d9df6e56d7","product_id":"0db9eac9-9b90-4f8e-a4e7-1a2f27b797ec","title":"white-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221019305-white-S","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4bbc47591cfe1c5bb00b4fb9091d0520.jpeg","path":"4bbc47591cfe1c5bb00b4fb9091d0520.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":41.79,"min_quantity":1}],"weight":"0.5","compare_at_price":"51.59","price":"41.79","retail_price":"51.59","available":true,"url":"\/products\/black-and-white-striped-loose-sweater?variant=5ec6b07e-d233-40dd-b1d2-26d9df6e56d7","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"S"}],"off_ratio":19,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 69;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}