${function() {
const variantData = data.variant || {"id":"2a0fab60-ea16-4608-9884-ea461ff1e2bd","product_id":"12f0bd45-4266-4fa7-9260-70c2897c2578","title":"dark green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"x099-240412-19-UZNCXN8AMM-dark green-S","barcode":"","position":9,"option1":"dark green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7ba4f6b6a6285859f61b8a93a0d83aaf.jpeg","path":"7ba4f6b6a6285859f61b8a93a0d83aaf.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"300","compare_at_price":"29.99","price":"29.99","retail_price":"29.99","available":true,"url":"\/products\/mens-cotton-and-linen-long-sleeved-solid-color-plaid-casual-shirt?variant=2a0fab60-ea16-4608-9884-ea461ff1e2bd","available_quantity":999999999,"options":[{"name":"Color","value":"dark green"},{"name":"Size","value":"S"}],"off_ratio":0,"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.