Stylish Slip Mini Dress
${function() {
const variantData = data.variant || {"id":"ee6224cf-e5e3-4419-a2e2-c7601bd1592b","product_id":"6097af63-d377-4acd-a8f6-31822619b9f0","title":"green-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21042305-green-s","barcode":"","position":1,"option1":"green","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/88016958a4ca1a9d776d3e21b67e590f.jpg","path":"88016958a4ca1a9d776d3e21b67e590f.jpg","width":1080,"height":1351,"alt":"","aspect_ratio":0.7994078460399704},"wholesale_price":[{"price":28.3,"min_quantity":1}],"weight":"0","compare_at_price":"40.24","price":"28.3","retail_price":"40.24","available":true,"url":"\/products\/summer-slip-dress-in-green?variant=ee6224cf-e5e3-4419-a2e2-c7601bd1592b","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"s"}],"off_ratio":30,"flashsale_info":[],"sales":18};
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":"ee6224cf-e5e3-4419-a2e2-c7601bd1592b","product_id":"6097af63-d377-4acd-a8f6-31822619b9f0","title":"green-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21042305-green-s","barcode":"","position":1,"option1":"green","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/88016958a4ca1a9d776d3e21b67e590f.jpg","path":"88016958a4ca1a9d776d3e21b67e590f.jpg","width":1080,"height":1351,"alt":"","aspect_ratio":0.7994078460399704},"wholesale_price":[{"price":28.3,"min_quantity":1}],"weight":"0","compare_at_price":"40.24","price":"28.3","retail_price":"40.24","available":true,"url":"\/products\/summer-slip-dress-in-green?variant=ee6224cf-e5e3-4419-a2e2-c7601bd1592b","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"s"}],"off_ratio":30,"flashsale_info":[],"sales":18};
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 `
`;
}()}