${function() {
const variantData = data.variant || {"id":"4a93a7a7-13c6-4ed5-aaea-7a7bd6572820","product_id":"bcf4b8bc-555d-4d1b-9ad4-d2d23ebcf09e","title":"White-S","weight_unit":"kg","inventory_quantity":1000,"sku":"x099-240412-09-5X9QU4LTE8-White-S","barcode":"","position":13,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7987f5954600c6ca88d3c126504d90f0.jpeg","path":"7987f5954600c6ca88d3c126504d90f0.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-simple-casual-cotton-and-linen-long-sleeves-stand-collar-cardigan-shirt?variant=4a93a7a7-13c6-4ed5-aaea-7a7bd6572820","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"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.