${function() {
const variantData = data.variant || {"id":"4f5db10a-435f-4028-b9a2-7faa88ef0669","product_id":"4a2d895b-95b5-4bb3-bf10-34ea81363344","title":"S","weight_unit":"kg","inventory_quantity":1000,"sku":"FAC11382-S","barcode":"","position":1,"option1":"S","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"25","retail_price":"40","available":true,"url":"\/products\/your-little-ray-of-sarcastic-sunshine-has-arrived-teeefd50399-7fb6-4830-ac91-afa44a688f72?variant=4f5db10a-435f-4028-b9a2-7faa88ef0669","available_quantity":999999999,"options":[{"name":"Size","value":"S"}],"off_ratio":38,"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}
`
}()}
Product was out of stock.
Product is unavailable.