Fashion loose casual two-piece set
${function() {
const variantData = data.variant || {"id":"4255ec8d-4a2b-4eda-ad04-f5188510a9a9","product_id":"de4a5765-9d5a-43c3-a8cc-b1459d04e18f","title":"brown-5XL","weight_unit":"kg","inventory_quantity":0,"sku":"662112211661-brown-5XL","barcode":"","position":9,"option1":"brown","option2":"5XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c50cf27a9e210e4be7cb59e004032821.jpeg","path":"c50cf27a9e210e4be7cb59e004032821.jpeg","width":700,"height":933,"alt":"","aspect_ratio":0.7502679528403001},"wholesale_price":[{"price":48.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.02","price":"48.99","retail_price":"59.02","available":true,"url":"\/products\/fashion-loose-casual-two-piece-set?variant=4255ec8d-4a2b-4eda-ad04-f5188510a9a9","available_quantity":999999999,"options":[{"name":"color","value":"brown"},{"name":"size","value":"5XL"}],"off_ratio":17,"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":"4255ec8d-4a2b-4eda-ad04-f5188510a9a9","product_id":"de4a5765-9d5a-43c3-a8cc-b1459d04e18f","title":"brown-5XL","weight_unit":"kg","inventory_quantity":0,"sku":"662112211661-brown-5XL","barcode":"","position":9,"option1":"brown","option2":"5XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c50cf27a9e210e4be7cb59e004032821.jpeg","path":"c50cf27a9e210e4be7cb59e004032821.jpeg","width":700,"height":933,"alt":"","aspect_ratio":0.7502679528403001},"wholesale_price":[{"price":48.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.02","price":"48.99","retail_price":"59.02","available":true,"url":"\/products\/fashion-loose-casual-two-piece-set?variant=4255ec8d-4a2b-4eda-ad04-f5188510a9a9","available_quantity":999999999,"options":[{"name":"color","value":"brown"},{"name":"size","value":"5XL"}],"off_ratio":17,"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 `
`;
}()}