${function() {
const variantData = data.variant || {"id":"151498b5-9dec-486f-b7fa-47d31ab77520","product_id":"fb86e4be-490a-4e02-ae08-ccdc7e83bcf9","title":"Orange-M","weight_unit":"kg","inventory_quantity":1000,"sku":"11875822-Orange-M","barcode":"","position":1,"option1":"Orange","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/49be1904f15e39b6a8893fffd0d689e4.png","path":"49be1904f15e39b6a8893fffd0d689e4.png","width":633,"height":844,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"38.03","price":"26.99","retail_price":"38.03","available":true,"url":"\/products\/geometric-shirt-collar-shirts-tops-f21s?variant=151498b5-9dec-486f-b7fa-47d31ab77520","available_quantity":1000,"options":[{"name":"Color","value":"Orange"},{"name":"Size","value":"M"}],"off_ratio":29,"flashsale_info":[],"sales":0};
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.