${function() {
const variantData = data.variant || {"id":"a7ef5c19-4892-4537-9fb6-ccbe3a363013","product_id":"4c3daefe-db0a-4054-92dd-d5e4b3dfda70","title":"Yellow-S","weight_unit":"g","inventory_quantity":548,"sku":"SKU102454720001","barcode":"","position":1,"option1":"Yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/df49b33ae3360caa068ceb3e2068a0b9.jpeg","path":"df49b33ae3360caa068ceb3e2068a0b9.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":37.98,"min_quantity":1}],"weight":"400","compare_at_price":"42","price":"37.98","retail_price":"42","available":true,"url":"\/products\/flower-oil-painting-vintage-short-sleeve-cotton-linen-dress-7h9y?variant=a7ef5c19-4892-4537-9fb6-ccbe3a363013","available_quantity":548,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"S"}],"off_ratio":10,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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}
`
}()}
${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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"a7ef5c19-4892-4537-9fb6-ccbe3a363013","product_id":"4c3daefe-db0a-4054-92dd-d5e4b3dfda70","title":"Yellow-S","weight_unit":"g","inventory_quantity":548,"sku":"SKU102454720001","barcode":"","position":1,"option1":"Yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/df49b33ae3360caa068ceb3e2068a0b9.jpeg","path":"df49b33ae3360caa068ceb3e2068a0b9.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":37.98,"min_quantity":1}],"weight":"400","compare_at_price":"42","price":"37.98","retail_price":"42","available":true,"url":"\/products\/flower-oil-painting-vintage-short-sleeve-cotton-linen-dress-7h9y?variant=a7ef5c19-4892-4537-9fb6-ccbe3a363013","available_quantity":548,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"S"}],"off_ratio":10,"flashsale_info":[],"sales":0};
return `
`
}()}