${function() {
const variantData = data.variant || {"id":"785a72b2-2f35-4fc3-806a-86f612d54eca","product_id":"90075e3d-c76b-4018-aa72-1dcffd48d4d1","title":"white-M","weight_unit":"kg","inventory_quantity":0,"sku":"662305101054-white-M","barcode":"","position":1,"option1":"white","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4645307ff683a646eb38ce610fd50725.jpeg","path":"4645307ff683a646eb38ce610fd50725.jpeg","width":800,"height":800,"alt":"Vintage print cotton and linen T-shirt","aspect_ratio":1},"wholesale_price":[{"price":36.79,"min_quantity":1}],"weight":"0.2","compare_at_price":"45","price":"36.79","retail_price":"45","available":true,"url":"\/products\/vintage-print-cotton-and-linen-t-shirt?variant=785a72b2-2f35-4fc3-806a-86f612d54eca","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"M"}],"off_ratio":18,"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.