${function() {
const variantData = data.variant || {"id":"bb48bca7-fe64-4949-88f6-87482cc5d2dc","product_id":"373c1327-d644-4434-82ec-9d5d02c49f74","title":"Black-S","weight_unit":"kg","inventory_quantity":991,"sku":"111-230314-57-3A3ZSTLJ4T-Color-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fa8f9cc17c28bded9eee65ef83367cde.jpeg","path":"fa8f9cc17c28bded9eee65ef83367cde.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0.45","compare_at_price":"0","price":"35","retail_price":"0","available":true,"url":"\/products\/womens-black-1950s-polka-dot-vintage-swing-dress?variant=bb48bca7-fe64-4949-88f6-87482cc5d2dc","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":132};
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 `
`;
}()}