Title: corax0's Replies | WordPress.org

---

# corax0

  [  ](https://wordpress.org/support/users/corax0/)

 *   [Profile](https://wordpress.org/support/users/corax0/)
 *   [Topics Started](https://wordpress.org/support/users/corax0/topics/)
 *   [Replies Created](https://wordpress.org/support/users/corax0/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/corax0/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/corax0/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/corax0/engagements/)
 *   [Favorites](https://wordpress.org/support/users/corax0/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CoCart - Headless REST API for WooCommerce] Cart Items not adding (delay maybe)](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/)
 *  Thread Starter [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/#post-13132019)
 * To be clear, ‘clear cart’ is called only one before execution of ‘add-item’.
   
   Because Mobile app cart doesnot load items from Website cart yet, So i clear 
   the cart to clear all the items already in it and only add the items which user
   added in mobile cart.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CoCart - Headless REST API for WooCommerce] Cart Items not adding (delay maybe)](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/)
 *  Thread Starter [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/#post-13131971)
 * What I am doing is adding products to CoCart specifying ‘cart_key’ equal to customer
   ID which is currently logged in mobile app without any Authorization ( as guest).
   Then i open WebView and log the user in without loading the cart from session,
   Because I login the user with same customer ID used in ‘cart_key’, So i do not
   need to load cart from session.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CoCart - Headless REST API for WooCommerce] Cart Items not adding (delay maybe)](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/)
 *  Thread Starter [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/#post-13131773)
 * So user can see the cart which they saw in their mobile app cart.
 * PS A suggestion, maybe add a end-point to add multiple items in cart.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CoCart - Headless REST API for WooCommerce] Cart Items not adding (delay maybe)](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/)
 *  Thread Starter [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/#post-13131018)
 * No, I am not checking if the items already exists in cart because i send the ‘
   clear’ request before running the ‘add-item’ loop.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CoCart - Headless REST API for WooCommerce] Cart Items not adding (delay maybe)](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/)
 *  Thread Starter [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/#post-13130969)
 * JPPdesigns thank you for your reply.
 * As you said, I should await for the request to complete before sending another
   request, Right?
 * I guess i am already using that way, If there are 2 items in cart, I do not send
   the request for both at the same time.
 * Loop runs, sends first product request and waits for it to be completed and then
   send next product request. As i stated in my question, I am getting the response
   from ‘add-item’ endpoint having same ‘cart_key’.
    -  This reply was modified 5 years, 11 months ago by [corax0](https://wordpress.org/support/users/corax0/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CoCart - Headless REST API for WooCommerce] Cart Items not adding (delay maybe)](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/)
 *  Thread Starter [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/cart-items-not-adding-delay-maybe/#post-13130886)
 * Okay, But I am still curious if I am doing anything wrong or ‘add-item’ require
   delay in its request.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple JWT Login – Allows you to use JWT on REST endpoints.] how to use this plugin](https://wordpress.org/support/topic/how-to-use-this-plugin-66/)
 *  [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/how-to-use-this-plugin-66/#post-13099350)
 * Cleared the browser cache.
    Used different browser. De-activated the plugin.
 * Though, error is not there anymore but problem remains which is white blank page
   at the part of plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple JWT Login – Allows you to use JWT on REST endpoints.] how to use this plugin](https://wordpress.org/support/topic/how-to-use-this-plugin-66/)
 *  [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/how-to-use-this-plugin-66/#post-13097103)
 * Hello,
 * I updated the plugin got the same error, then I deleted and reinstalled it and
   error still exists, Thank you looking into it, just a bit more will be a great
   help.
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple JWT Login – Allows you to use JWT on REST endpoints.] how to use this plugin](https://wordpress.org/support/topic/how-to-use-this-plugin-66/)
 *  [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/how-to-use-this-plugin-66/#post-13091705)
 * Hello everyone,
 * I am facing the same issue and getting the same error, I just installed the JWT-
   Login plugin.
 * Any solution?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CoCart - Headless REST API for WooCommerce] Customer-ID for guest user](https://wordpress.org/support/topic/customer-id-for-guest-user/)
 *  Thread Starter [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/customer-id-for-guest-user/#post-13091596)
 * Sorry, but I meant setting customer ID for the order, I know about setting Cart-
   ID, thanks btw.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CoCart - Headless REST API for WooCommerce] How is customer_id generated for a non-authenticated visitor?](https://wordpress.org/support/topic/how-is-customer_id-generated-for-a-non-authenticated-visitor/)
 *  [corax0](https://wordpress.org/support/users/corax0/)
 * (@corax0)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/how-is-customer_id-generated-for-a-non-authenticated-visitor/#post-13089750)
 * I would like to know if there is any solution to this issue.

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