${function() {
const variantData = data.variant || {"id":"afcbfdf5-5b7b-4da6-8856-844f33b2c522","product_id":"bc78995b-181b-406d-9aba-2825d22f19ac","title":"Purple-L","weight_unit":"kg","inventory_quantity":997,"sku":"220514431-Purple-L","barcode":"","position":5,"option1":"Purple","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/51ee0cafa9b42e6e1dcc5f6f39f3813c.jpeg","path":"51ee0cafa9b42e6e1dcc5f6f39f3813c.jpeg","width":666,"height":891,"alt":"Casual Cotton Shirt & Short Set","aspect_ratio":0.7474747474747475},"wholesale_price":[{"price":36.58,"min_quantity":1}],"weight":"0","compare_at_price":"65.32","price":"36.58","retail_price":"65.32","available":true,"url":"\/products\/casual-cotton-shirt-short-set?variant=afcbfdf5-5b7b-4da6-8856-844f33b2c522","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"L"}],"off_ratio":44,"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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.