Soft and gentle style all-match sports pants
${function() {
const variantData = data.variant || {"id":"b38cb447-d649-4bf5-8a12-9324b7258111","product_id":"6bc4e3d5-a57e-40e6-8ac5-0d205898a0c0","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211181868-black-S","barcode":"","position":9,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0143ec3049290b0c5336b2cb74766eb2.jpeg","path":"0143ec3049290b0c5336b2cb74766eb2.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=b38cb447-d649-4bf5-8a12-9324b7258111","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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":"b38cb447-d649-4bf5-8a12-9324b7258111","product_id":"6bc4e3d5-a57e-40e6-8ac5-0d205898a0c0","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211181868-black-S","barcode":"","position":9,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0143ec3049290b0c5336b2cb74766eb2.jpeg","path":"0143ec3049290b0c5336b2cb74766eb2.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=b38cb447-d649-4bf5-8a12-9324b7258111","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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 `
`;
}()}