${function() {
const variantData = data.variant || {"id":"a7a728fe-7c80-4b60-aaac-ca9ca95037f2","product_id":"8ecc3631-ffbc-411e-89e8-8a9288365b49","title":"As Picture-S","weight_unit":"kg","inventory_quantity":999,"sku":"SH2G1903E233","barcode":"","position":1,"option1":"As Picture","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3069e636e4d89e4a336ec878e3c30a99.jpeg","path":"3069e636e4d89e4a336ec878e3c30a99.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":15.67,"min_quantity":1}],"weight":"0","compare_at_price":"17.03","price":"15.67","retail_price":"17.03","available":true,"url":"\/products\/ombre-tie-dye-shift-casual-shirts-tops?variant=a7a728fe-7c80-4b60-aaac-ca9ca95037f2","available_quantity":999999999,"options":[{"name":"Color","value":"As Picture"},{"name":"Size","value":"S"}],"off_ratio":8,"flashsale_info":[],"sales":5};
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 `
`;
}()}