${function() {
const variantData = data.variant || {"id":"60af0765-a87c-4f7b-9181-50be9b162621","product_id":"e5313e22-b448-445d-8d8a-69bd4b1354f5","title":"yellow-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230310421-yellow-S","barcode":"","position":1,"option1":"yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b29e73a9131256d0654bebdc84a955e9.jpeg","path":"b29e73a9131256d0654bebdc84a955e9.jpeg","width":800,"height":800,"alt":"Linen dropped shoulders lapel collar casual shirt","aspect_ratio":1},"wholesale_price":[{"price":34.89,"min_quantity":1}],"weight":"0.2","compare_at_price":"42","price":"34.89","retail_price":"42","available":true,"url":"\/products\/linen-dropped-shoulders-lapel-collar-casual-shirt?variant=60af0765-a87c-4f7b-9181-50be9b162621","available_quantity":999999999,"options":[{"name":"color","value":"yellow"},{"name":"size","value":"S"}],"off_ratio":17,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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.