${function() {
const variantData = data.variant || {"id":"193a6fa4-c030-4a48-b6e7-9f21513dee33","product_id":"169de260-fd7f-462a-a1e6-b75bee770309","title":"Serene Depths-500 PIECES Puzzles Rectangle 20.5\u2033x 14.9\u2033 (520mm X 380mm)","weight_unit":"kg","inventory_quantity":998,"sku":"-Strawberries HQ-1000 PIECES Rectangle 14.9\u2033x 10.2\u2033 (380mm X 260mm)-A001851","barcode":"","position":1,"option1":"Serene Depths","option2":"500 PIECES Puzzles Rectangle 20.5\u2033x 14.9\u2033 (520mm X 380mm)","option3":"","note":"","image":null,"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"27.99","price":"19.99","retail_price":"27.99","available":true,"url":"\/products\/ocean-puzzles?variant=193a6fa4-c030-4a48-b6e7-9f21513dee33","available_quantity":999999999,"options":[{"name":"Theme","value":"Serene Depths"},{"name":"Sizes","value":"500 PIECES Puzzles Rectangle 20.5\u2033x 14.9\u2033 (520mm X 380mm)"}],"off_ratio":29,"flashsale_info":[],"sales":289};
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 = 29.99;
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 `
`;
}()}