${function() {
const variantData = data.variant || {"id":"23134c61-3bf7-4d32-9e02-5b1552b6e65f","product_id":"942fa74e-13b8-4776-b781-6a48fa1df1f7","title":"Black-5.5","weight_unit":"kg","inventory_quantity":1000,"sku":"a-Black-5.5-A0023028","barcode":"","position":1,"option1":"Black","option2":"5.5","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/937a981e8d0039eb9cee8cd27dade72e.jpeg","path":"937a981e8d0039eb9cee8cd27dade72e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"0","compare_at_price":"85.95","price":"59.99","retail_price":"85.95","available":true,"url":"\/products\/corduroy-casual-mens-shoes?variant=23134c61-3bf7-4d32-9e02-5b1552b6e65f","available_quantity":1000,"options":[{"name":"Color","value":"Black"},{"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.