• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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 5 May 2023, 08:34

    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 10 May 2023, 07:25

      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 20 Jul 2023, 10:49 Reply Quote -1
      • 2 months later
      • S
        sachin @Amitk-Webkul last edited by 20 Jul 2023, 10:49

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

        A 1 Reply Last reply 24 Jul 2023, 04:19 Reply Quote 0
        • A
          Amitk-Webkul @sachin last edited by 24 Jul 2023, 04:19

          Hi @sachin,

          Which version of Bagisto are you using?

          S 1 Reply Last reply 25 Jul 2023, 07:01 Reply Quote 0
          • S
            sachin @Amitk-Webkul last edited by sachin 25 Jul 2023, 07:04 25 Jul 2023, 07:01

            @Amitk-Webkul its 1.4.5

            A 1 Reply Last reply 25 Jul 2023, 07:44 Reply Quote 0
            • A
              Amitk-Webkul @sachin last edited by 25 Jul 2023, 07:44

              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
              6 out of 6
              • First post
                6/6
                Last post