${function() {
const variantData = data.variant || {"id":"83bd9524-b094-4fd4-b484-0f28a6c8e5b2","product_id":"827feba8-3a64-4dbf-902d-87fde4762d78","title":"BLACK-S","weight_unit":"kg","inventory_quantity":1000,"sku":"a-BLACK-S-A002567","barcode":"","position":1,"option1":"BLACK","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a2efd9af81b1dd561226ee17c6569e7e.jpeg","path":"a2efd9af81b1dd561226ee17c6569e7e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.98,"min_quantity":1}],"weight":"0","compare_at_price":"44.99","price":"29.98","retail_price":"44.99","available":true,"url":"\/products\/ladies-vest-cardigan?variant=83bd9524-b094-4fd4-b484-0f28a6c8e5b2","available_quantity":1000,"options":[{"name":"COLOR","value":"BLACK"},{"name":"SIZE","value":"S"}],"off_ratio":33,"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.