Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Call to a member function items() on null

    Knowledge Base
    2
    4
    610
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      anjugopi last edited by

      Hi Team,

      I have an issue while move a product from cart to wishlist. "Call to a member function items() on null".

      "message": "Call to a member function items() on null",
      "exception": "Error",
      "file": "../../packages/Webkul/Checkout/src/Cart.php",
      "line": 958,

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @anjugopi,

        It looks like your cart doesn't have any items. How you are accessing it?

        1 Reply Last reply Reply Quote 0
        • A
          anjugopi last edited by

          Hi @devansh-webkul
          I am using "GET <host>/api/checkout/cart/move-to-wishlist/{cart_item_id}" this api.

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by

            Okay, so you are using API. The first check are you able to see your cart items or not and also its for customers or guest.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post