Abstract World Print Swimsuit
${function() {
const variantData = data.variant || {"id":"3b1fa9a1-7087-45e5-a5f0-b83f5f319dcd","product_id":"dfc3dd52-0653-4f0d-9ede-9d167dd7c3cd","title":"Greenish brown-S","weight_unit":"kg","inventory_quantity":0,"sku":"66240125543-Greenish brown-S","barcode":"","position":1,"option1":"Greenish brown","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/05a05c3d794ab11152828bf7666a4984.jpeg","path":"05a05c3d794ab11152828bf7666a4984.jpeg","width":1000,"height":1200,"alt":"","aspect_ratio":0.8333333333333334},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"300","compare_at_price":"41","price":"28.99","retail_price":"41","available":true,"url":"\/products\/abstract-world-print-swimsuit-ncnw?variant=3b1fa9a1-7087-45e5-a5f0-b83f5f319dcd","available_quantity":999999999,"options":[{"name":"Color","value":"Greenish brown"},{"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":"3b1fa9a1-7087-45e5-a5f0-b83f5f319dcd","product_id":"dfc3dd52-0653-4f0d-9ede-9d167dd7c3cd","title":"Greenish brown-S","weight_unit":"kg","inventory_quantity":0,"sku":"66240125543-Greenish brown-S","barcode":"","position":1,"option1":"Greenish brown","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/05a05c3d794ab11152828bf7666a4984.jpeg","path":"05a05c3d794ab11152828bf7666a4984.jpeg","width":1000,"height":1200,"alt":"","aspect_ratio":0.8333333333333334},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"300","compare_at_price":"41","price":"28.99","retail_price":"41","available":true,"url":"\/products\/abstract-world-print-swimsuit-ncnw?variant=3b1fa9a1-7087-45e5-a5f0-b83f5f319dcd","available_quantity":999999999,"options":[{"name":"Color","value":"Greenish brown"},{"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 `
`;
}()}