${function() {
const variantData = data.variant || {"id":"fd6d4527-d30b-4114-abc5-b34f5e59e461","product_id":"5a4170a0-13da-400a-9f13-fabd4d65e487","title":"Black-A-5.5","weight_unit":"kg","inventory_quantity":1000,"sku":"a-Black-A-5.5-A0022365","barcode":"","position":1,"option1":"Black-A","option2":"5.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/67afcdc210545914bfab6c1c084d3308.jpeg","path":"67afcdc210545914bfab6c1c084d3308.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"0","compare_at_price":"85.99","price":"59.99","retail_price":"85.99","available":true,"url":"\/products\/mens-leather-casual-shoes?variant=fd6d4527-d30b-4114-abc5-b34f5e59e461","available_quantity":1000,"options":[{"name":"COLOR","value":"Black-A"},{"name":"SIZE","value":"5.5"}],"off_ratio":30,"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.