${function() {
const variantData = data.variant || {"id":"368b55b8-e9d2-412b-bfb9-4ea171b75f0f","product_id":"55ac10d5-5a76-4a1d-95be-7ff9b06435c3","title":"Default Title","weight_unit":"kg","inventory_quantity":999,"sku":"P8P6F8CJ","barcode":"","position":1,"option1":"Default Title","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":189,"min_quantity":1}],"weight":"1.13","compare_at_price":"0","price":"189","retail_price":"0","available":true,"url":"\/products\/one-shoulder-mermaid-wedding-dress-with-chapel-train-p8p6f8cj?variant=368b55b8-e9d2-412b-bfb9-4ea171b75f0f","available_quantity":999,"options":[{"name":"Title","value":"Default Title"}],"off_ratio":0,"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.