${function() {
const variantData = data.variant || {"id":"d9920276-6d26-4b6a-84dd-b4371bd79ae5","product_id":"142a50a8-e711-4a08-9ce6-167a568ceb04","title":"Gray-S(6-8)","weight_unit":"lb","inventory_quantity":1000,"sku":"2111924718158-Gray-S(6-8)","barcode":"","position":1,"option1":"Gray","option2":"S(6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/45a4075dfde8b7287a849f3b5bf548e9.jpeg","path":"45a4075dfde8b7287a849f3b5bf548e9.jpeg","width":633,"height":844,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0","compare_at_price":"28.99","price":"28.99","retail_price":"28.99","available":true,"url":"\/products\/women-polka-dots-summer-linen-printing-no-elasticity-household-midi-crew-neck-regular-dresses-15293289?variant=d9920276-6d26-4b6a-84dd-b4371bd79ae5","available_quantity":999999999,"options":[{"name":"Color","value":"Gray"},{"name":"Size","value":"S(6-8)"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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 postageFreeAmount = 79;
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 `
`;
}()}