Casual Linen Pockets Mini Dress
${function() {
const variantData = data.variant || {"id":"80ebd1ab-3a5f-47c3-82cc-c69893fe0964","product_id":"f2f4402d-9343-431b-832c-f987c339bd61","title":"blue-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21011106-blue-s","barcode":"","position":3,"option1":"blue","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/902aa90e7bacd8329a7428183385fdf5.png","path":"902aa90e7bacd8329a7428183385fdf5.png","width":674,"height":617,"alt":"","aspect_ratio":1.092382495948136},"wholesale_price":[{"price":34.93,"min_quantity":1}],"weight":"0","compare_at_price":"43.02","price":"34.93","retail_price":"43.02","available":true,"url":"\/products\/casual-linen-pockets-mini-dress?variant=80ebd1ab-3a5f-47c3-82cc-c69893fe0964","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"s"}],"off_ratio":19,"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":"80ebd1ab-3a5f-47c3-82cc-c69893fe0964","product_id":"f2f4402d-9343-431b-832c-f987c339bd61","title":"blue-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21011106-blue-s","barcode":"","position":3,"option1":"blue","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/902aa90e7bacd8329a7428183385fdf5.png","path":"902aa90e7bacd8329a7428183385fdf5.png","width":674,"height":617,"alt":"","aspect_ratio":1.092382495948136},"wholesale_price":[{"price":34.93,"min_quantity":1}],"weight":"0","compare_at_price":"43.02","price":"34.93","retail_price":"43.02","available":true,"url":"\/products\/casual-linen-pockets-mini-dress?variant=80ebd1ab-3a5f-47c3-82cc-c69893fe0964","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"s"}],"off_ratio":19,"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 `
`;
}()}