${function() {
const variantData = data.variant || {"id":"f9ef9caa-3030-4fdd-ab7e-eeef6d0a19c0","product_id":"73a2c0e8-c7a0-46ef-a109-53e1fa5721ff","title":"Dark Grey-S","weight_unit":"kg","inventory_quantity":1000,"sku":"WTS200176-DGY00S","barcode":"","position":13,"option1":"Dark Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e2baf01d97677036c91707f4d8e6f085.jpeg","path":"e2baf01d97677036c91707f4d8e6f085.jpeg","width":975,"height":1300,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"21.99","retail_price":"0","available":true,"url":"\/products\/womens-stay-the-world-is-better-with-you-in-it-suicide-awareness-print-v-neck-t-shirt?variant=f9ef9caa-3030-4fdd-ab7e-eeef6d0a19c0","available_quantity":999999999,"options":[{"name":"Color","value":"Dark Grey"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":47};
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 `
`;
}()}