${function() {
const variantData = data.variant || {"id":"5be20abb-3b64-4621-9a56-a5ec6d0be3c0","product_id":"e80ce30a-114f-4dae-b3c9-dbf0f17afea3","title":"S","weight_unit":"kg","inventory_quantity":999,"sku":"240403-10-S","barcode":"","position":1,"option1":"S","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/17cde40105433580671529c105999613.jpeg","path":"17cde40105433580671529c105999613.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":18.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"18.99","retail_price":"0","available":true,"url":"\/products\/gummy-bears-unite-printed-tank-top16284b0a-b9ed-4355-9a0f-036f618aed46?variant=5be20abb-3b64-4621-9a56-a5ec6d0be3c0","available_quantity":999999999,"options":[{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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}
`
}()}
Product was out of stock.
Product is unavailable.