${function() {
const variantData = data.variant || {"id":"83b9b253-d2e8-404b-adf9-03aa56abd211","product_id":"2525b0fe-caf1-455a-a654-c8efefd279a9","title":"White (with fleece)-34","weight_unit":"kg","inventory_quantity":1000,"sku":"BK1780-White-34","barcode":"","position":11,"option1":"White (with fleece)","option2":"34","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eb3a2cf6f71b9d0b334720f95148b312.jpeg","path":"eb3a2cf6f71b9d0b334720f95148b312.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.99,"min_quantity":1}],"weight":"0.9","compare_at_price":"0","price":"69.99","retail_price":"0","available":true,"url":"\/products\/victorian-o-ring-lace-boots?variant=83b9b253-d2e8-404b-adf9-03aa56abd211","available_quantity":1000,"options":[{"name":"Color","value":"White (with fleece)"},{"name":"Size","value":"34"}],"off_ratio":0,"flashsale_info":[],"sales":35};
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 variantData = data.variant || {"id":"83b9b253-d2e8-404b-adf9-03aa56abd211","product_id":"2525b0fe-caf1-455a-a654-c8efefd279a9","title":"White (with fleece)-34","weight_unit":"kg","inventory_quantity":1000,"sku":"BK1780-White-34","barcode":"","position":11,"option1":"White (with fleece)","option2":"34","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eb3a2cf6f71b9d0b334720f95148b312.jpeg","path":"eb3a2cf6f71b9d0b334720f95148b312.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.99,"min_quantity":1}],"weight":"0.9","compare_at_price":"0","price":"69.99","retail_price":"0","available":true,"url":"\/products\/victorian-o-ring-lace-boots?variant=83b9b253-d2e8-404b-adf9-03aa56abd211","available_quantity":1000,"options":[{"name":"Color","value":"White (with fleece)"},{"name":"Size","value":"34"}],"off_ratio":0,"flashsale_info":[],"sales":35};
return `
`
}()}
${function() {
const postageFreeAmount = 100;
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 `
`;
}()}