Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • W CodeCrafter 3 posts 73 karma points
    Sep 29, 2023 @ 09:14
    W CodeCrafter
    0

    umbraco commerece Cart issue

    I am currently conducting tests to verify the functionality of adding items to the cart from various web browsers. The issue appears to arise when attempting to retrieve items from the cart. Below is the relevant code:

    ```csharp public IViewComponentResult Invoke(IPublishedContent currentPage) { var store = currentPage.GetStore(); var order = _vendrApi.GetCurrentOrder(store.Id);

    return View("CartCount", (int)(order?.TotalQuantity ?? 0));
    

    } ```

    Remarkably, this method operates seamlessly in Google Chrome, allowing for the successful addition of items to the cart. However, when tested with alternative web browsers, the retrieval process fails to function as expected. Please bear in mind that this issue is currently isolated to my local development environment.

Please Sign in or register to post replies

Write your reply to:

Draft