Irregular Textured Casual Two-piece Set
${function() {
const variantData = data.variant || {"id":"dbd95422-9b3d-4fb3-9536-82277a36ab60","product_id":"cf06b791-3e0a-4957-9621-244fe1f2c691","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"662308294125-green-S","barcode":"","position":1,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/14f9f14b9a471990e8aabc7b1077f8a9.jpeg","path":"14f9f14b9a471990e8aabc7b1077f8a9.jpeg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":52.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"71.5","price":"52.99","retail_price":"71.5","available":true,"url":"\/products\/irregular-textured-casual-two-piece-set?variant=dbd95422-9b3d-4fb3-9536-82277a36ab60","available_quantity":999999999,"options":[{"name":"Color","value":"green"},{"name":"Size","value":"S"}],"off_ratio":26,"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":"dbd95422-9b3d-4fb3-9536-82277a36ab60","product_id":"cf06b791-3e0a-4957-9621-244fe1f2c691","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"662308294125-green-S","barcode":"","position":1,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/14f9f14b9a471990e8aabc7b1077f8a9.jpeg","path":"14f9f14b9a471990e8aabc7b1077f8a9.jpeg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":52.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"71.5","price":"52.99","retail_price":"71.5","available":true,"url":"\/products\/irregular-textured-casual-two-piece-set?variant=dbd95422-9b3d-4fb3-9536-82277a36ab60","available_quantity":999999999,"options":[{"name":"Color","value":"green"},{"name":"Size","value":"S"}],"off_ratio":26,"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 `
`;
}()}