I am having an issue while fetching items from cart here is the method,
public IViewComponentResult Invoke(IPublishedContent currentPage)
{
var store = currentPage.GetStore();
var order = _vendrApi.GetCurrentOrder(store.Id);
return View("CartCount", (int)(order?.TotalQuantity ?? 0));
}
its working only in Google Chrome , but not in other browsers .I am able to add items in cart but fetching is not working. This issue is on my local machine.