${function() {
const variantData = data.variant || {"id":"f81588bf-48ea-463c-ad2f-28c1b302f37f","product_id":"b95c448e-c302-46ee-8861-c0101a64bce2","title":"Green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"MT020148-Green-S","barcode":"","position":15,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6ec5921ca7fccba796c0c45c5e525de5.jpeg","path":"6ec5921ca7fccba796c0c45c5e525de5.jpeg","width":1055,"height":1406,"alt":"","aspect_ratio":0.7503556187766715},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"39","price":"26.99","retail_price":"39","available":true,"url":"\/products\/mens-striped-simple-retro-washed-cotton-batik-short-sleeved-t-shirt?variant=f81588bf-48ea-463c-ad2f-28c1b302f37f","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":31,"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.