Support » Plugin: Cart REST API for WooCommerce - CoCart Lite » Unable to fetch Cart details for users

  • Resolved renukavenkat

    (@renukavenkat)


    Hi,

    I am using Cocart plugin to fetch the cart details from wordpress website to app. Cart details are fetched correctly when I logged in with administrator access.

    When logged in with user access, cart details are not fetched. Is there any option in the plugin to fetch the cart details for user login and how the logged user can get their own cart without giving any token?

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

    (@sebd86)

    In order for a registered customer to access their cart, you will be required to pass the customers username and password or token depending on the authentication method you are using. It’s important that you keep authenticating with all routes from the beginning so the cart in session remains the same. NOT doing so will cause another cart to be created and lose track of the items added.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.