Sweet Front Buttons Mini Dress
${function() {
const variantData = data.variant || {"id":"86b5463a-b5cb-4ad2-96c4-58426aca6eee","product_id":"ecb0396f-c869-4ed2-9ae7-40becfd5717d","title":"white-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21050803-white-s","barcode":"","position":1,"option1":"white","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/03e0e88cfa891bb99db73e639021da4c.jpeg","path":"03e0e88cfa891bb99db73e639021da4c.jpeg","width":581,"height":1024,"alt":"","aspect_ratio":0.5673828125},"wholesale_price":[{"price":40.19,"min_quantity":1}],"weight":"0","compare_at_price":"55.22","price":"40.19","retail_price":"55.22","available":true,"url":"\/products\/sweet-front-buttons-mini-dress?variant=86b5463a-b5cb-4ad2-96c4-58426aca6eee","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"s"}],"off_ratio":27,"flashsale_info":[],"sales":1};
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":"86b5463a-b5cb-4ad2-96c4-58426aca6eee","product_id":"ecb0396f-c869-4ed2-9ae7-40becfd5717d","title":"white-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21050803-white-s","barcode":"","position":1,"option1":"white","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/03e0e88cfa891bb99db73e639021da4c.jpeg","path":"03e0e88cfa891bb99db73e639021da4c.jpeg","width":581,"height":1024,"alt":"","aspect_ratio":0.5673828125},"wholesale_price":[{"price":40.19,"min_quantity":1}],"weight":"0","compare_at_price":"55.22","price":"40.19","retail_price":"55.22","available":true,"url":"\/products\/sweet-front-buttons-mini-dress?variant=86b5463a-b5cb-4ad2-96c4-58426aca6eee","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"s"}],"off_ratio":27,"flashsale_info":[],"sales":1};
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 `
`;
}()}