Casual Linen Baggy pants & Top 2pieces Set
${function() {
const variantData = data.variant || {"id":"63961852-90bd-45d2-869e-395c9cd15090","product_id":"f8067de3-b7a7-4779-be6c-81044c48a855","title":"Purple-S","weight_unit":"kg","inventory_quantity":0,"sku":"2206171670-Purple-S","barcode":"","position":1,"option1":"Purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7a46906af237d69aa6b1c015a3383412.png","path":"7a46906af237d69aa6b1c015a3383412.png","width":800,"height":900,"alt":"","aspect_ratio":0.8888888888888888},"wholesale_price":[{"price":46.51,"min_quantity":1}],"weight":"0","compare_at_price":"55.48","price":"46.51","retail_price":"55.48","available":true,"url":"\/products\/casual-linen-baggy-pants-top-2pieces-set-yk3y?variant=63961852-90bd-45d2-869e-395c9cd15090","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"S"}],"off_ratio":16,"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":"63961852-90bd-45d2-869e-395c9cd15090","product_id":"f8067de3-b7a7-4779-be6c-81044c48a855","title":"Purple-S","weight_unit":"kg","inventory_quantity":0,"sku":"2206171670-Purple-S","barcode":"","position":1,"option1":"Purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7a46906af237d69aa6b1c015a3383412.png","path":"7a46906af237d69aa6b1c015a3383412.png","width":800,"height":900,"alt":"","aspect_ratio":0.8888888888888888},"wholesale_price":[{"price":46.51,"min_quantity":1}],"weight":"0","compare_at_price":"55.48","price":"46.51","retail_price":"55.48","available":true,"url":"\/products\/casual-linen-baggy-pants-top-2pieces-set-yk3y?variant=63961852-90bd-45d2-869e-395c9cd15090","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"S"}],"off_ratio":16,"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 `
`;
}()}