${function() {
const variantData = data.variant || {"id":"2052c203-1318-44ed-b394-2e86fdee35c1","product_id":"65e1dd24-9061-49fa-84cf-c938c3f1ded9","title":"Black-One-Size","weight_unit":"kg","inventory_quantity":1000,"sku":"AHT286533-BLAONE","barcode":"","position":3,"option1":"Black","option2":"One-Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff38990544495c09f52fee7fb6cab2d2.jpeg","path":"ff38990544495c09f52fee7fb6cab2d2.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":10.99,"min_quantity":1}],"weight":"0","compare_at_price":"16.16","price":"10.99","retail_price":"16.16","available":true,"url":"\/products\/womens-casual-christmas-palm-tree-print-baseball-cap?variant=2052c203-1318-44ed-b394-2e86fdee35c1","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One-Size"}],"off_ratio":32,"flashsale_info":[],"sales":1};
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.