${function() {
const variantData = data.variant || {"id":"99c48258-9ba3-4fa4-a2f2-74f052663a8e","product_id":"bea62abe-cc1b-49e9-adce-d0f94337c45e","title":"white-S","weight_unit":"kg","inventory_quantity":1000,"sku":"Razor-A00451977-white-S","barcode":"","position":13,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/29c63821981d71846a962f676ab35439.jpg","path":"29c63821981d71846a962f676ab35439.jpg","width":800,"height":800,"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\/cheerful-santa-christmas-sweatshirt?variant=99c48258-9ba3-4fa4-a2f2-74f052663a8e","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"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.