${function() {
const variantData = data.variant || {"id":"245986fe-bec0-467c-9cd5-a69cabf61959","product_id":"1f24b42e-3a27-4f4d-be1c-92aa228dfa31","title":"Light Khaki-M","weight_unit":"kg","inventory_quantity":1000,"sku":"SYV005807_KH_M","barcode":"","position":13,"option1":"Light Khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b24241ae15ce27044f9d1a0b30c81b4c.jpeg","path":"b24241ae15ce27044f9d1a0b30c81b4c.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"27.99","price":"27.99","retail_price":"27.99","available":true,"url":"\/products\/premium-cotton-linen-henley-shirt?variant=245986fe-bec0-467c-9cd5-a69cabf61959","available_quantity":999999999,"options":[{"name":"Color","value":"Light Khaki"},{"name":"Size","value":"M"}],"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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.