Check Set Double-Breasted Mid-Length Coat
${function() {
const variantData = data.variant || {"id":"376d02d7-3d2b-4a52-be98-c4c0e05a288f","product_id":"09c0ca81-68ec-42ee-8990-8e7d92afef70","title":"Green-L","weight_unit":"kg","inventory_quantity":957,"sku":"2110221413-Green-L","barcode":"","position":1,"option1":"Green","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6da288a5fcafb49aa122226d5b1abe6a.jpeg","path":"6da288a5fcafb49aa122226d5b1abe6a.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.27,"min_quantity":1}],"weight":"0.47","compare_at_price":"57.96","price":"49.27","retail_price":"57.96","available":true,"url":"\/products\/check-suit-double-breasted-mid-length-coat?variant=376d02d7-3d2b-4a52-be98-c4c0e05a288f","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"L"}],"off_ratio":15,"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":"376d02d7-3d2b-4a52-be98-c4c0e05a288f","product_id":"09c0ca81-68ec-42ee-8990-8e7d92afef70","title":"Green-L","weight_unit":"kg","inventory_quantity":957,"sku":"2110221413-Green-L","barcode":"","position":1,"option1":"Green","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6da288a5fcafb49aa122226d5b1abe6a.jpeg","path":"6da288a5fcafb49aa122226d5b1abe6a.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.27,"min_quantity":1}],"weight":"0.47","compare_at_price":"57.96","price":"49.27","retail_price":"57.96","available":true,"url":"\/products\/check-suit-double-breasted-mid-length-coat?variant=376d02d7-3d2b-4a52-be98-c4c0e05a288f","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"L"}],"off_ratio":15,"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 `
`;
}()}