${function() {
const variantData = data.variant || {"id":"a4a43bb6-eb48-456f-88bb-d0d2f40d380b","product_id":"4af9b2b3-764f-47a0-a428-2a15c0139c00","title":"black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"x099-240412-25-XAWKNBRDX3-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5957887742344c4cbfbab085b96114cd.jpeg","path":"5957887742344c4cbfbab085b96114cd.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"300","compare_at_price":"29.99","price":"29.99","retail_price":"29.99","available":true,"url":"\/products\/mens-solid-color-cotton-and-linen-long-sleeved-shirt?variant=a4a43bb6-eb48-456f-88bb-d0d2f40d380b","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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.