${function() {
const variantData = data.variant || {"id":"1e647cde-02e8-4629-bae9-e612ad3a8361","product_id":"2cb42885-8d28-4b9b-bc30-f28e74a19a86","title":"Blue-S","weight_unit":"kg","inventory_quantity":1000,"sku":"3448504-Blue-S","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/aad09343d70b51b0a519f159ab6b64b2.jpeg","path":"aad09343d70b51b0a519f159ab6b64b2.jpeg","width":633,"height":844,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":22.2,"min_quantity":1}],"weight":"0","compare_at_price":"31.71","price":"22.2","retail_price":"31.71","available":true,"url":"\/products\/women-v-neck-short-sleeve-hollow-polka-dot-summer-dress?variant=1e647cde-02e8-4629-bae9-e612ad3a8361","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":64};
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 `
`;
}()}