${function() {
const variantData = data.variant || {"id":"72f311fd-82d6-4b3a-bd73-a498b099edea","product_id":"f2c996c7-a4e4-4c09-82ad-5fdab5ca7d18","title":"Black-M","weight_unit":"kg","inventory_quantity":1000,"sku":"X103-240407-05-PXKJRCQ6H6-Black-M","barcode":"","position":7,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e0f244b0b8a8fb694f01cb29a17a6784.jpeg","path":"e0f244b0b8a8fb694f01cb29a17a6784.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"23.99","price":"27.99","retail_price":"23.99","available":true,"url":"\/products\/mens-casual-v-neck-short-sleeved-polo-shirt?variant=72f311fd-82d6-4b3a-bd73-a498b099edea","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":0,"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.