Temperament casual fashion suit
${function() {
const variantData = data.variant || {"id":"6bd0c6d4-78c8-4d8e-b0c2-b8ecfdbef3bc","product_id":"2597bdc8-fe98-4ca6-bf13-d6ff08ed3141","title":"red-L","weight_unit":"kg","inventory_quantity":0,"sku":"6621102541-red-L","barcode":"","position":9,"option1":"red","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/940ab028fdd738c45acd7d91d47fdfc1.jpeg","path":"940ab028fdd738c45acd7d91d47fdfc1.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":55.3,"min_quantity":1}],"weight":"0","compare_at_price":"65.83","price":"55.3","retail_price":"65.83","available":true,"url":"\/products\/temperament-casual-fashion-suit?variant=6bd0c6d4-78c8-4d8e-b0c2-b8ecfdbef3bc","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"L"}],"off_ratio":16,"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":"6bd0c6d4-78c8-4d8e-b0c2-b8ecfdbef3bc","product_id":"2597bdc8-fe98-4ca6-bf13-d6ff08ed3141","title":"red-L","weight_unit":"kg","inventory_quantity":0,"sku":"6621102541-red-L","barcode":"","position":9,"option1":"red","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/940ab028fdd738c45acd7d91d47fdfc1.jpeg","path":"940ab028fdd738c45acd7d91d47fdfc1.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":55.3,"min_quantity":1}],"weight":"0","compare_at_price":"65.83","price":"55.3","retail_price":"65.83","available":true,"url":"\/products\/temperament-casual-fashion-suit?variant=6bd0c6d4-78c8-4d8e-b0c2-b8ecfdbef3bc","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"L"}],"off_ratio":16,"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 `
`;
}()}