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.
h
huwred
09/29/2023, 9:29 AM
Hi EmHassan, it isn't very helpful if you post the same question in multiple places 🙂