• Resolved salamehmoe

    (@salamehmoe)


    Hello,
    Thanks for this awesome plugin first, I’m using it with my flutter app through APIs.
    It adds, updates, and deletes items normally from the cart when the user is logged in (has a token), but for the guest user, I can only add and retrieve the products from the cart, but the API request for the update and the delete return (item not found in the cart), although I’m giving it the correct cart-key, product-key, and quantity.
    Any idea why this is happening?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sébastien Dumont

    (@sebd86)

    Hey @salamehmoe

    Sounds like you are not doing one of two things.

    1. Not passing the cart key as a parameter.
    2. You are using the product ID and not the cart item key to make the update or delete request.

    Thread Starter salamehmoe

    (@salamehmoe)

    Hey @sebd86
    Thanks for getting back, no I’m sure I used them right, I followed every step from the documentation on your website and on github. The weird thing is that it’s working fine on Postman. Do you have any idea why not in flutter? Is something being blocked or something?

    Plugin Author Sébastien Dumont

    (@sebd86)

    That is strange. I’m not experienced with Flutter in any capacity so I don’t know. I have asked my Twitter followers see if anyone has any answers. Is there a Flutter support forum you could ask?

    I will do what I can to help. Your not the first person that has had an issue with Flutter + CoCart.

    I’m always making improvements so if the issue is with CoCart I will work on a work around.

    Thread Starter salamehmoe

    (@salamehmoe)

    Alright thanks for your help, I’ll check if there is any support with Flutter + CoCart and will follow you on Twitter.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Updating quantity not working’ is closed to new replies.