${function() {
const variantData = data.variant || {"id":"2fa57e1f-0a6e-4e6e-97f2-e5d9eaf1045b","product_id":"bf16cfd1-3a5d-4ee2-91f8-bc5215e4be77","title":"Black-2XL","weight_unit":"g","inventory_quantity":99999,"sku":"102092220001","barcode":"","position":1,"option1":"Black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0e74392b5d74b5be09210d6ca0507753.jpeg","path":"0e74392b5d74b5be09210d6ca0507753.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":31.98,"min_quantity":1}],"weight":"500","compare_at_price":"31.98","price":"31.98","retail_price":"31.98","available":true,"url":"\/products\/i-mostly-peace-love-and-light-printed-womens-hoodie?variant=2fa57e1f-0a6e-4e6e-97f2-e5d9eaf1045b","available_quantity":99999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"2XL"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "percentage";
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}
`
}()}
${function() {
const postageFreeAmount = 69;
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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"2fa57e1f-0a6e-4e6e-97f2-e5d9eaf1045b","product_id":"bf16cfd1-3a5d-4ee2-91f8-bc5215e4be77","title":"Black-2XL","weight_unit":"g","inventory_quantity":99999,"sku":"102092220001","barcode":"","position":1,"option1":"Black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0e74392b5d74b5be09210d6ca0507753.jpeg","path":"0e74392b5d74b5be09210d6ca0507753.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":31.98,"min_quantity":1}],"weight":"500","compare_at_price":"31.98","price":"31.98","retail_price":"31.98","available":true,"url":"\/products\/i-mostly-peace-love-and-light-printed-womens-hoodie?variant=2fa57e1f-0a6e-4e6e-97f2-e5d9eaf1045b","available_quantity":99999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"2XL"}],"off_ratio":0,"flashsale_info":[],"sales":1};
return `
`
}()}