${function() {
const variantData = data.variant || {"id":"fcea6aa5-c4b6-4dee-8f16-e951bc985c15","product_id":"9d3a07e8-b811-4aaf-93ba-861121b0f214","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"MTI337002-BLA00S","barcode":"","position":7,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ed1938bf2bb1ee4bd09bdb7c156827b9.jpeg","path":"ed1938bf2bb1ee4bd09bdb7c156827b9.jpeg","width":768,"height":1024,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"43.58","price":"29.99","retail_price":"43.58","available":true,"url":"\/products\/mens-the-sun-is-getting-mooned-total-solar-eclipse-april-8-2024-print-t-shirt?variant=fcea6aa5-c4b6-4dee-8f16-e951bc985c15","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":31,"flashsale_info":[],"sales":3};
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 `
`;
}()}