• Resolved behindpixelpierre

    (@behindpixelpierre)


    Dear community,

    I am creating a flutter app which uses the WooCommerce Rest Api to display products and stuff. The problem is that I have added the add to cart functionality but when I want to display the current cart of the user, I am using the <my-domain>/wp-json/wc/v3/cart?user_id=8&consumer_key=mykey&consumer_secret=mysecretkey and the json response I am getting contains the user ID in the beginning like that: 6{“status”:true,”data”:[]}.

    Is this a problem from the WooCommerce side? Because I shouldn’t receive the user_id before the JSON response.

    Please help and thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 3 Sons Development

    (@3sonsdevelopment)

    Hey @behindpixelpierre,

    Are you using a plugin like CoCart to load this data? To the best of my knowledge, the default WooCommerce REST API doesn’t have support for loading carts.

    https://woocommerce.github.io/woocommerce-rest-api-docs

    If you can let us know a bit more about this, that might help us unravel this mystery with the user ID before the JSON response.

    Thanks

    3 Sons Development

    (@3sonsdevelopment)

    Hi @behindpixelpierre,

    Since we haven’t heard from you in a while, we’re hoping that means you were able to get this resolved. I’m going to close this thread out now.

    If you’re still having trouble, please open up a new topic and we’ll be happy to help out.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WooCommerce Cart Rest Api Problem’ is closed to new replies.