${function() {
const variantData = data.variant || {"id":"89f2ed93-f742-4aba-8db7-76f4da3f5912","product_id":"838eecc9-e283-42eb-adae-808fcdbf8cf4","title":"Grey-S","weight_unit":"kg","inventory_quantity":1000,"sku":"WD-354594","barcode":"","position":1,"option1":"Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/98f4227d02feb0e7ac3537bf92a8cb7f.jpeg","path":"98f4227d02feb0e7ac3537bf92a8cb7f.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"29.99","retail_price":"0","available":true,"url":"\/products\/xzrx80o1a4uni?variant=89f2ed93-f742-4aba-8db7-76f4da3f5912","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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.