${function() {
const variantData = data.variant || {"id":"625425fc-f912-4fd7-a6a6-be37c54e5522","product_id":"f25a12e3-2c0b-4258-9017-9466deb733b0","title":"Blue Fleece-28","weight_unit":"kg","inventory_quantity":998,"sku":"a-Blue Fleece-28-A0022284","barcode":"","position":1,"option1":"Blue Fleece","option2":"28","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/53451e5bae24ee786ca9bb2a884ebbc1.gif","path":"53451e5bae24ee786ca9bb2a884ebbc1.gif","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45.95,"min_quantity":1}],"weight":"0","compare_at_price":"89.99","price":"45.95","retail_price":"89.99","available":true,"url":"\/products\/denim-straight-pants?variant=625425fc-f912-4fd7-a6a6-be37c54e5522","available_quantity":998,"options":[{"name":"Color","value":"Blue Fleece"},{"name":"Size","value":"28"}],"off_ratio":49,"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.