${function() {
const variantData = data.variant || {"id":"c78e5b1b-a5b2-4c5b-b3b1-0e3277b0b75e","product_id":"849ce4f5-1b80-401b-adc5-7a8bbb285d97","title":"apricot-one-size","weight_unit":"kg","inventory_quantity":0,"sku":"662112201622-apricot-one-size","barcode":"","position":1,"option1":"apricot","option2":"one-size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6183a2b1dccbcc68c165232c688e9c4d.jpeg","path":"6183a2b1dccbcc68c165232c688e9c4d.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":62.31,"min_quantity":1}],"weight":"0","compare_at_price":"76.93","price":"62.31","retail_price":"76.93","available":true,"url":"\/products\/gentle-v-neck-crossover-slim-knit-dress?variant=c78e5b1b-a5b2-4c5b-b3b1-0e3277b0b75e","available_quantity":999999999,"options":[{"name":"color","value":"apricot"},{"name":"size","value":"one-size"}],"off_ratio":19,"flashsale_info":[],"sales":1};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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 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 `
`;
}()}