Bagisto Forum

    Bagisto

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

    Add Cart / Checkout (API)

    General Discussion
    2
    2
    151
    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.
    • P
      pubpng last edited by

      Hi,
      I have a problem with add product to cart as a guest. It seems everytime I add product to cart, it create a new cart, not updating it.

      This is my flow:

      1. get a bagisto_session key
        0ec61fbc-28b9-47e6-8028-e30e631bab26-image.png

      2. Add product to cart.
        Payload
        c014bd9a-9745-427a-90e3-c8fdcfe74416-image.png

      Header using the bagisto_session=key from (1)

      0244e1b3-a365-4f0a-af00-a67f1f34b567-image.png

      1. 2nd time add product
        0aa1fb2f-8dea-42eb-80dc-6d276c36d306-image.png

      So the problem is, it keep create the cart even though i have use the same bagisto_session. what i expected is it update the cart

      I already refer to :
      https://devdocs.bagisto.com/1.x/api/cart.html#add-product-to-cart
      https://forums.bagisto.com/topic/2277/checkout-as-guest
      https://forums.bagisto.com/topic/2680/cart-as-a-guest-user-api

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

        Hi there,
        Which version of Bagisto are you using?

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