corax0
Forum Replies Created
-
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.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.
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.
No, I am not checking if the items already exists in cart because i send the ‘clear’ request before running the ‘add-item’ loop.
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 4 years, 4 months ago by corax0.
Okay, But I am still curious if I am doing anything wrong or ‘add-item’ require delay in its request.
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.
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.
Hello everyone,
I am facing the same issue and getting the same error, I just installed the JWT-Login plugin.
Any solution?
Forum: Plugins
In reply to: [CoCart - Decoupling Made Easy for WooCommerce] Customer-ID for guest userSorry, but I meant setting customer ID for the order, I know about setting Cart-ID, thanks btw.
I would like to know if there is any solution to this issue.