${function() {
const variantData = data.variant || {"id":"ac18f8ad-8235-4f13-9ba4-3e779ba57d1b","product_id":"062110ba-5474-45ba-80e7-d0dbc0f1f7b5","title":"Yellow-S","weight_unit":"kg","inventory_quantity":1000,"sku":"MS021668-Yellow-S","barcode":"","position":1,"option1":"Yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/94316cea992cfd80906af1e3185b7c3a.jpeg","path":"94316cea992cfd80906af1e3185b7c3a.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":23.89,"min_quantity":1}],"weight":"0","compare_at_price":"28.99","price":"23.89","retail_price":"28.99","available":true,"url":"\/products\/mens-cartoon-print-stripe-loose-comfortable-hawaiian-pocket-short-sleeve-shirt?variant=ac18f8ad-8235-4f13-9ba4-3e779ba57d1b","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"S"}],"off_ratio":18,"flashsale_info":[],"sales":2};
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.