${function() {
const variantData = data.variant || {"id":"cec3baf0-f18e-49d5-b6ec-0d69c879b93a","product_id":"dfd369f3-1958-4a16-be1e-ca02e3dbc2a8","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NE-Black-S-A00126025","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a50f673b6514ba0d483575d01d85d650.png","path":"a50f673b6514ba0d483575d01d85d650.png","width":538,"height":717,"alt":"","aspect_ratio":0.7503486750348675},"wholesale_price":[{"price":38.97,"min_quantity":1}],"weight":"0","compare_at_price":"78.99","price":"38.97","retail_price":"78.99","available":true,"url":"\/products\/boho-stripe-long-sleeves-dress086542c4-ccee-43e9-917f-c9f422fb6ea2?variant=cec3baf0-f18e-49d5-b6ec-0d69c879b93a","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":51,"flashsale_info":[],"sales":0};
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 `
`;
}()}