Bagisto Forum

    Bagisto

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

    Add to Cart not Detecting Customer from Bearer Token

    Bug Report
    3
    6
    376
    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.
    • S
      sailesh118 last edited by

      Hi,

      I am trying to hit add to cart with the Bearer token but everytime, it keeps adding new entry for cart with all customer data as null? Am I missing anything here?
      b1b38c56-e1c4-461d-a8b5-6ef169c99f9d-image.png

      Also, whenever I try to add cart as a guest (without Bearer token), its keep adding different entries? How to handle guest user flow? it is not working as explained in the documentation.
      https://devdocs.bagisto.com/1.x/api/cart.html#add-product-to-cart

      1 Reply Last reply Reply Quote 0
      • A
        Amitk-Webkul last edited by

        Hi there,
        Please provide the correct URL for add to cart request.

        URL: {{base_url}}/api/v1/customer/cart/add/3

        S 1 Reply Last reply Reply Quote -1
        • S
          sachin @Amitk-Webkul last edited by

          @Amitk-Webkul i am using url provided by you but bu it still not working

          A 1 Reply Last reply Reply Quote 0
          • A
            Amitk-Webkul @sachin last edited by

            Hi @sachin,

            Which version of Bagisto are you using?

            S 1 Reply Last reply Reply Quote 0
            • S
              sachin @Amitk-Webkul last edited by sachin

              @Amitk-Webkul its 1.4.5

              A 1 Reply Last reply Reply Quote 0
              • A
                Amitk-Webkul @sachin last edited by

                Hi @sachin,

                Please verify once the Gaurd function.

                Because we are not getting that kind of issue in Bagisto version 1.4.5.

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