Hi,
I'm planning for a new project that requires Back in Stock Notifications, but as far as I can tell, the ProductViewModel does not support them yet. Is that accurate?
I looked into DW's source code that generates the tags and looks like we can ultimately use the API if needed, but wanted to confirm before going down this path
double unitStock = product.GetUnitStock(renderingContext.StockLocation.Value, unitId);
(...)
if (template.TagExists("Ecom:Product.NotificationRegistered"))
{
if (unitStock <= 0d && ProductBackInStockNotification.BackInStockNotificationExists(product, ""))
{
template.SetTag("Ecom:Product.NotificationRegistered", true);
}
}
Best Regards,
Nuno Aguiar