Soft and gentle style all-match sports pants
${function() {
const variantData = data.variant || {"id":"6969db4d-0a47-41a3-916c-ae541ab02fe5","product_id":"6bc4e3d5-a57e-40e6-8ac5-0d205898a0c0","title":"gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211181868-gray-S","barcode":"","position":5,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1c99ada68ccd20756a31862a31ffa066.jpeg","path":"1c99ada68ccd20756a31862a31ffa066.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=6969db4d-0a47-41a3-916c-ae541ab02fe5","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"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":"6969db4d-0a47-41a3-916c-ae541ab02fe5","product_id":"6bc4e3d5-a57e-40e6-8ac5-0d205898a0c0","title":"gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211181868-gray-S","barcode":"","position":5,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1c99ada68ccd20756a31862a31ffa066.jpeg","path":"1c99ada68ccd20756a31862a31ffa066.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=6969db4d-0a47-41a3-916c-ae541ab02fe5","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"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 `
`;
}()}