${function() {
const variantData = data.variant || {"id":"b7794d8f-4666-4e71-bbf2-c243494db7cf","product_id":"096d6391-3978-4747-9fcf-f3f254642553","title":"Arm Green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Arm Green","option2":"S","option3":"","note":"","image":null,"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"44.99","price":"22.99","retail_price":"44.99","available":true,"url":"\/products\/forest-bars-printed-mens-t-shirt?variant=b7794d8f-4666-4e71-bbf2-c243494db7cf","available_quantity":1000,"options":[{"name":"Color","value":"Arm Green"},{"name":"Size","value":"S"}],"off_ratio":49,"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.