Exotic vacation print two-piece set
${function() {
const variantData = data.variant || {"id":"9580bef5-2e1a-4967-8514-a90e8c0d01ca","product_id":"464218df-9ecd-4455-be62-81e321d2a73f","title":"Orange-S","weight_unit":"kg","inventory_quantity":0,"sku":"6624042910126-Orange-S","barcode":"","position":1,"option1":"Orange","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bd05b4da4af54e29b5501cf1617c80f3.jpeg","path":"bd05b4da4af54e29b5501cf1617c80f3.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":49.79,"min_quantity":1}],"weight":"400","compare_at_price":"70","price":"49.79","retail_price":"70","available":true,"url":"\/products\/exotic-vacation-print-two-piece-set?variant=9580bef5-2e1a-4967-8514-a90e8c0d01ca","available_quantity":999999999,"options":[{"name":"Color","value":"Orange"},{"name":"Size","value":"S"}],"off_ratio":29,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${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":"9580bef5-2e1a-4967-8514-a90e8c0d01ca","product_id":"464218df-9ecd-4455-be62-81e321d2a73f","title":"Orange-S","weight_unit":"kg","inventory_quantity":0,"sku":"6624042910126-Orange-S","barcode":"","position":1,"option1":"Orange","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bd05b4da4af54e29b5501cf1617c80f3.jpeg","path":"bd05b4da4af54e29b5501cf1617c80f3.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":49.79,"min_quantity":1}],"weight":"400","compare_at_price":"70","price":"49.79","retail_price":"70","available":true,"url":"\/products\/exotic-vacation-print-two-piece-set?variant=9580bef5-2e1a-4967-8514-a90e8c0d01ca","available_quantity":999999999,"options":[{"name":"Color","value":"Orange"},{"name":"Size","value":"S"}],"off_ratio":29,"flashsale_info":[],"sales":0};
return `
`
}()}
${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 `
`;
}()}