${function() {
const variantData = data.variant || {"id":"a2217840-7f26-4799-801e-003c50b9224f","product_id":"cc53ac22-9be9-4973-8c27-2bbf6a45842f","title":"White-S","weight_unit":"kg","inventory_quantity":1000,"sku":"x099-240412-24-XJWQ6AVBSN-White-S","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3f14421b7b4121f780266a33150c457b.jpeg","path":"3f14421b7b4121f780266a33150c457b.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"300","compare_at_price":"24.99","price":"24.99","retail_price":"24.99","available":true,"url":"\/products\/mens-linen-solid-color-long-sleeve-casual-shirt?variant=a2217840-7f26-4799-801e-003c50b9224f","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":4};
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.