${function() {
const variantData = data.variant || {"id":"5979e07c-9f48-4889-8d50-dbad691e6d64","product_id":"17d5a580-ed94-4de0-b251-524d1ca073af","title":"Green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"210964063524-Green-S","barcode":"","position":13,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/536e0228227924f23b85fa451164ab9e.jpeg","path":"536e0228227924f23b85fa451164ab9e.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.99","price":"27.99","retail_price":"59.99","available":true,"url":"\/products\/mens-20-linen-shirt-short-sleeve-turndown-green-khaki-beige-shirt-daily-hwzc?variant=5979e07c-9f48-4889-8d50-dbad691e6d64","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":53,"flashsale_info":[],"sales":1};
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.