Casual Single Breasted V-Neck Sweater
${function() {
const variantData = data.variant || {"id":"7b348ca9-1338-4309-8aa0-d6f9f9afbe18","product_id":"12855028-bea9-417b-9286-a3924991317f","title":"brown-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221021475-brown-S","barcode":"","position":11,"option1":"brown","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e80ecad9aa1b1809b2bf8e043da17a0f.jpeg","path":"e80ecad9aa1b1809b2bf8e043da17a0f.jpeg","width":750,"height":836,"alt":"","aspect_ratio":0.8971291866028708},"wholesale_price":[{"price":50.26,"min_quantity":1}],"weight":"0.3","compare_at_price":"59.83","price":"50.26","retail_price":"59.83","available":true,"url":"\/products\/casual-single-breasted-v-neck-sweater?variant=7b348ca9-1338-4309-8aa0-d6f9f9afbe18","available_quantity":999999999,"options":[{"name":"color","value":"brown"},{"name":"size","value":"S"}],"off_ratio":16,"flashsale_info":[],"sales":37};
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":"7b348ca9-1338-4309-8aa0-d6f9f9afbe18","product_id":"12855028-bea9-417b-9286-a3924991317f","title":"brown-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221021475-brown-S","barcode":"","position":11,"option1":"brown","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e80ecad9aa1b1809b2bf8e043da17a0f.jpeg","path":"e80ecad9aa1b1809b2bf8e043da17a0f.jpeg","width":750,"height":836,"alt":"","aspect_ratio":0.8971291866028708},"wholesale_price":[{"price":50.26,"min_quantity":1}],"weight":"0.3","compare_at_price":"59.83","price":"50.26","retail_price":"59.83","available":true,"url":"\/products\/casual-single-breasted-v-neck-sweater?variant=7b348ca9-1338-4309-8aa0-d6f9f9afbe18","available_quantity":999999999,"options":[{"name":"color","value":"brown"},{"name":"size","value":"S"}],"off_ratio":16,"flashsale_info":[],"sales":37};
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 `
`;
}()}