${function() {
const variantData = data.variant || {"id":"f6109e7e-4fcd-40ea-bb8c-cd72f49fffbd","product_id":"ba60c788-6860-4e7b-9bd6-0b7726267a98","title":"Black-XXL","weight_unit":"kg","inventory_quantity":1000,"sku":"PH1-220314-11-Black-2XL","barcode":"","position":1,"option1":"Black","option2":"XXL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6923201265e3fbcb7b887adaea8421d9.jpeg","path":"6923201265e3fbcb7b887adaea8421d9.jpeg","width":633,"height":844,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.25","compare_at_price":"38","price":"19.99","retail_price":"38","available":true,"url":"\/products\/casual-round-neck-shirts-tops-7927152?variant=f6109e7e-4fcd-40ea-bb8c-cd72f49fffbd","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"XXL"}],"off_ratio":47,"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.