Closed ricokahler closed 3 years ago
Thank you for your detailed report @ricokahler
It is a known issue and one I am doing my best to figure out how to solve. No eta at this time.
This release should solve this issue @ricokahler Please test and provide feedback.
Thank you.
Hi @seb86 thanks for the follow-up! However, I am still getting this issue.
Here's a video reproduction on the new version
Here I:
?cocart-load-cart=<key>&redirect=true
. See empty cart (bug)?cocart-load-cart=<key>
(without redirect=true
) and it works.The only case that doesn't work is if you're logged out and redirect=true
is applied when trying to load cart from session
Thank you for the feedback. I will run some more tests to see what is still missing.
Just to give you a small update @ricokahler I'm re-writing this feature with the support of the changes I had made the day before. Hopefully it will be more affective and cleaner in the background. Thank you for your patience.
Hey, thanks for the great support!
Moving this issue to be completed for v3.0.0
Related issues: #209 , #208
Deprecating the redirect option after many failed attempts. Better to just load the cart in session on the page you wish to be on.
Prerequisites
master
branch of CoCart on GitHub (this is not the same version as on WordPress.org!)Steps to reproduce the issue
/?cocart-load-cart=<cart_key>&redirect=true
/?cocart-load-cart=<cart_key>&redirect=true
againExpected/actual behaviour
I expect that the cart to be loaded with
redirect=true
regardless if there the user is logged in or not.When I follow those steps, I see...
A cart with 0 items
I was expecting to see...
A cart with items.
Here is a video demo of a similar reproduction.
In this GIF, I try loading the cart from the session with
redirect=true
(does not work) and then I try it without the redirect param (works)Isolating the problem
WordPress Environment