${function() {
const variantData = data.variant || {"id":"3a185e54-61df-455a-a858-96b693d688db","product_id":"83fc0f1c-a3b2-43c7-b010-de26295476d2","title":"White-M","weight_unit":"kg","inventory_quantity":995,"sku":"PH1-220622-17-White-M","barcode":"","position":2,"option1":"White","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b3df340c9ac2d8849d88899b78a688d7.jpeg","path":"b3df340c9ac2d8849d88899b78a688d7.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.9,"min_quantity":1}],"weight":"0","compare_at_price":"27.9","price":"27.9","retail_price":"27.9","available":true,"url":"\/products\/mens-long-sleeve-button-cotton-and-linen-shirt-7131433?variant=3a185e54-61df-455a-a858-96b693d688db","available_quantity":995,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"M"}],"off_ratio":0,"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.