${function() {
const variantData = data.variant || {"id":"c6aff959-6c98-41aa-a808-cb1a8218f8b8","product_id":"5808d693-ee3d-48ed-b47f-f7eccc8638aa","title":"black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"128-240311-06-DW00738BQP-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/71e9d770ca1657e81c66969d1c79857f.jpeg","path":"71e9d770ca1657e81c66969d1c79857f.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"300","compare_at_price":"33.99","price":"33.99","retail_price":"33.99","available":true,"url":"\/products\/womens-rainbow-gradient-art-print-two-piece-dress-gn4n?variant=c6aff959-6c98-41aa-a808-cb1a8218f8b8","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":3};
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 = 79;
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 `
`;
}()}