Casual Linen Pockets Mini Dress
${function() {
const variantData = data.variant || {"id":"8d53722f-dcb0-47a5-b84a-7c2ce7e17053","product_id":"f2f4402d-9343-431b-832c-f987c339bd61","title":"black-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21011106-black-s","barcode":"","position":2,"option1":"black","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fcd1e5deca97234c683a2206476de8f1.jpeg","path":"fcd1e5deca97234c683a2206476de8f1.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"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=8d53722f-dcb0-47a5-b84a-7c2ce7e17053","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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":"8d53722f-dcb0-47a5-b84a-7c2ce7e17053","product_id":"f2f4402d-9343-431b-832c-f987c339bd61","title":"black-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21011106-black-s","barcode":"","position":2,"option1":"black","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fcd1e5deca97234c683a2206476de8f1.jpeg","path":"fcd1e5deca97234c683a2206476de8f1.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"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=8d53722f-dcb0-47a5-b84a-7c2ce7e17053","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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 `
`;
}()}