Soft and gentle style all-match sports pants
${function() {
const variantData = data.variant || {"id":"6b7cfc5e-b196-48d9-94b5-8fd6354e2646","product_id":"6bc4e3d5-a57e-40e6-8ac5-0d205898a0c0","title":"purple-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211181868-purple-S","barcode":"","position":1,"option1":"purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6f86acb014d3f44b8893641e8da1c13a.jpeg","path":"6f86acb014d3f44b8893641e8da1c13a.jpeg","width":750,"height":790,"alt":"","aspect_ratio":0.9493670886075949},"wholesale_price":[{"price":56.79,"min_quantity":1}],"weight":"0.5","compare_at_price":"67.61","price":"56.79","retail_price":"67.61","available":true,"url":"\/products\/soft-and-gentle-style-all-match-sports-pants?variant=6b7cfc5e-b196-48d9-94b5-8fd6354e2646","available_quantity":999999999,"options":[{"name":"color","value":"purple"},{"name":"size","value":"S"}],"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":"6b7cfc5e-b196-48d9-94b5-8fd6354e2646","product_id":"6bc4e3d5-a57e-40e6-8ac5-0d205898a0c0","title":"purple-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211181868-purple-S","barcode":"","position":1,"option1":"purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6f86acb014d3f44b8893641e8da1c13a.jpeg","path":"6f86acb014d3f44b8893641e8da1c13a.jpeg","width":750,"height":790,"alt":"","aspect_ratio":0.9493670886075949},"wholesale_price":[{"price":56.79,"min_quantity":1}],"weight":"0.5","compare_at_price":"67.61","price":"56.79","retail_price":"67.61","available":true,"url":"\/products\/soft-and-gentle-style-all-match-sports-pants?variant=6b7cfc5e-b196-48d9-94b5-8fd6354e2646","available_quantity":999999999,"options":[{"name":"color","value":"purple"},{"name":"size","value":"S"}],"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 `
`;
}()}