ashishScripter / activationbymail

Automatically exported from code.google.com/p/activationbymail
0 stars 0 forks source link

cart contents not persisted when registering a new account. #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Ensure Preferences > Customers > Cart re-display at login is set to 'yes' in 
admin panel
2. Enter items into cart as a guest customer and proceed to checkout
3. Register account as normal
4. You're presented with the activation notification as expected. However cart 
is now empty.

Even if you follow the activation link (which works correctly) the cart 
contents have already been lost. Continuing to login after activation does not 
bring the cart contents back

Disabling the activation module and performing the above steps results in a 
successfully created account and the cart is correctly persisted through to 
customer login as you would expect

What version of the product are you using? On what operating system?
activationbymail_2013_07_03 - Prestashop 1.5.x
Prestashop 1.5.3.1
Running on Apache/Linux

Almost worked perfectly. Nice simple solution and easily customisable, however 
losing the cart is a deal breaker as customers could very likely give up at 
that point, if they had to re-add all their items back into the cart. If you 
can fix this issue, it'll be re-installed immediately. Good look. Thanks for 
your efforts

Original issue reported on code.google.com by c...@wibbly.co.uk on 19 Sep 2013 at 5:50

GoogleCodeExporter commented 9 years ago
I've no experience with PS code, but i'll hazard a guess that somehow, the cart 
id needs to be persisted through the activation stage. Perhaps, when you store 
the activation link/md5 hash in the db at account creation, you can grab the 
cart id then. Once the activation link is then used, override PS normal 
operation and revert back to the saved cart?

Like I said, just a guess. I've never delved into PS code. Hope this helps.

Original comment by c...@wibbly.co.uk on 19 Sep 2013 at 6:12

GoogleCodeExporter commented 9 years ago
Yeah, losing the cart contents is a real issue, I didn't noticed this problem 
until one of customers mentioned this issue and I decided to disable the module 
... 

Original comment by O.Shayes...@gmail.com on 29 Oct 2013 at 8:27