Summer polka dot swing dress
${function() {
const variantData = data.variant || {"id":"9b1b7c82-faed-4e98-b5e1-5dbf20b92aab","product_id":"808d4bdf-144a-4a9e-a750-6f984546d35a","title":"green-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"66220709585-green-2XL","barcode":"","position":15,"option1":"green","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/618c93b5ac31c56eb791f5221e0d33e7.jpeg","path":"618c93b5ac31c56eb791f5221e0d33e7.jpeg","width":750,"height":846,"alt":"","aspect_ratio":0.8865248226950354},"wholesale_price":[{"price":44.93,"min_quantity":1}],"weight":"0","compare_at_price":"55.51","price":"44.93","retail_price":"55.51","available":true,"url":"\/products\/summer-polka-dot-swing-dress?variant=9b1b7c82-faed-4e98-b5e1-5dbf20b92aab","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"2XL"}],"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":"9b1b7c82-faed-4e98-b5e1-5dbf20b92aab","product_id":"808d4bdf-144a-4a9e-a750-6f984546d35a","title":"green-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"66220709585-green-2XL","barcode":"","position":15,"option1":"green","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/618c93b5ac31c56eb791f5221e0d33e7.jpeg","path":"618c93b5ac31c56eb791f5221e0d33e7.jpeg","width":750,"height":846,"alt":"","aspect_ratio":0.8865248226950354},"wholesale_price":[{"price":44.93,"min_quantity":1}],"weight":"0","compare_at_price":"55.51","price":"44.93","retail_price":"55.51","available":true,"url":"\/products\/summer-polka-dot-swing-dress?variant=9b1b7c82-faed-4e98-b5e1-5dbf20b92aab","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"2XL"}],"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 `
`;
}()}