${function() {
const variantData = data.variant || {"id":"79b0a3fe-e808-40af-8632-ceed44fc9366","product_id":"99213e04-3df8-4163-9125-9c1f3a6af1ca","title":"green","weight_unit":"kg","inventory_quantity":0,"sku":"662209222666-green","barcode":"","position":1,"option1":"green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a49db959fd827280bb09b59346566974.jpeg","path":"a49db959fd827280bb09b59346566974.jpeg","width":800,"height":800,"alt":"Thick Beard Faux Cashmere Classic Thickened Shawl Scarf","aspect_ratio":1},"wholesale_price":[{"price":19.75,"min_quantity":1}],"weight":"0.35","compare_at_price":"39.5","price":"19.75","retail_price":"39.5","available":true,"url":"\/products\/thick-beard-faux-cashmere-classic-thickened-shawl-scarf?variant=79b0a3fe-e808-40af-8632-ceed44fc9366","available_quantity":999999999,"options":[{"name":"color","value":"green"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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}
`
}()}
Product was out of stock.
Product is unavailable.