${function() {
const variantData = data.variant || {"id":"2adeca0e-0f6a-4b3f-b6d9-8d73aec96dee","product_id":"999f2bb1-5ec0-4a2e-b6de-64ee856f4ee1","title":"Colorful-S","weight_unit":"kg","inventory_quantity":1000,"sku":"123-230531-55-GT00383LGT-Colorful-S","barcode":"","position":1,"option1":"Colorful","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4fc3c36d80df288fd2ae85fb7ac72272.jpeg","path":"4fc3c36d80df288fd2ae85fb7ac72272.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0.25","compare_at_price":"29.99","price":"23.99","retail_price":"29.99","available":true,"url":"\/products\/womens-colorful-starry-sky-and-aurora-colorful-print-casual-top-1j3h?variant=2adeca0e-0f6a-4b3f-b6d9-8d73aec96dee","available_quantity":999999999,"options":[{"name":"Color","value":"Colorful"},{"name":"Size","value":"S"}],"off_ratio":20,"flashsale_info":[],"sales":2};
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 `
`;
}()}