Cotton linen embroidered breathable triangle romper
${function() {
const variantData = data.variant || {"id":"8ddc72ad-f4c6-4850-b8b3-ce80e36ee3d8","product_id":"3d4227c1-2b43-4523-9946-487ec13a9b9f","title":"apricot-66cm","weight_unit":"kg","inventory_quantity":0,"sku":"662303025168-apricot-66cm","barcode":"","position":1,"option1":"apricot","option2":"66cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d05d9ba61710fb723f993f4b8c27fbe7.jpeg","path":"d05d9ba61710fb723f993f4b8c27fbe7.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":36.89,"min_quantity":1}],"weight":"0.12","compare_at_price":"49","price":"36.89","retail_price":"49","available":true,"url":"\/products\/cotton-linen-embroidered-breathable-triangle-romper?variant=8ddc72ad-f4c6-4850-b8b3-ce80e36ee3d8","available_quantity":999999999,"options":[{"name":"color","value":"apricot"},{"name":"height","value":"66cm"}],"off_ratio":25,"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":"8ddc72ad-f4c6-4850-b8b3-ce80e36ee3d8","product_id":"3d4227c1-2b43-4523-9946-487ec13a9b9f","title":"apricot-66cm","weight_unit":"kg","inventory_quantity":0,"sku":"662303025168-apricot-66cm","barcode":"","position":1,"option1":"apricot","option2":"66cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d05d9ba61710fb723f993f4b8c27fbe7.jpeg","path":"d05d9ba61710fb723f993f4b8c27fbe7.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":36.89,"min_quantity":1}],"weight":"0.12","compare_at_price":"49","price":"36.89","retail_price":"49","available":true,"url":"\/products\/cotton-linen-embroidered-breathable-triangle-romper?variant=8ddc72ad-f4c6-4850-b8b3-ce80e36ee3d8","available_quantity":999999999,"options":[{"name":"color","value":"apricot"},{"name":"height","value":"66cm"}],"off_ratio":25,"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 `
`;
}()}