${function() {
const variantData = data.variant || {"id":"96c885aa-82a9-4565-9dca-6971b607238d","product_id":"c2e00b76-4e15-45fa-a346-14ec003e6104","title":"Grey-S","weight_unit":"kg","inventory_quantity":-36,"sku":"WL2023A91238C-Grey-S","barcode":"","position":7,"option1":"Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5f09e1251fcd7d51cf4a786283fa4c30.jpg","path":"5f09e1251fcd7d51cf4a786283fa4c30.jpg","width":2362,"height":3069,"alt":"Aunt Godmother Legend T-shirt","aspect_ratio":0.7696318018898664},"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"25","retail_price":"40","available":true,"url":"\/products\/aunt-godmother-legend-t-shirt?variant=96c885aa-82a9-4565-9dca-6971b607238d","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"S"}],"off_ratio":38,"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.