${function() {
const variantData = data.variant || {"id":"20b8f8c7-5758-46ff-b89b-9d984c59eade","product_id":"96f84831-59d7-42ac-93e8-81434a3893af","title":"olive green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"Razor-A00453597-olive green-S","barcode":"","position":1,"option1":"olive green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1484d289d7bc36729a3f59357840eecf.jpg","path":"1484d289d7bc36729a3f59357840eecf.jpg","width":620,"height":620,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"56.99","price":"33.99","retail_price":"56.99","available":true,"url":"\/products\/cute-christmas-sweatshirts?variant=20b8f8c7-5758-46ff-b89b-9d984c59eade","available_quantity":999999999,"options":[{"name":"color","value":"olive green"},{"name":"size","value":"S"}],"off_ratio":40,"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.