${function() {
const variantData = data.variant || {"id":"834b73a3-7284-418b-bfe0-88ae78603882","product_id":"1f24b42e-3a27-4f4d-be1c-92aa228dfa31","title":"Black-M","weight_unit":"kg","inventory_quantity":999,"sku":"SYV005807_B_M","barcode":"","position":7,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/036f2ee7d1798cadcc2da453fc5f3400.jpeg","path":"036f2ee7d1798cadcc2da453fc5f3400.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=834b73a3-7284-418b-bfe0-88ae78603882","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"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.