wishlist - login - redirect - it goes wrong?

wishlist - login - redirect - it goes wrong?

Monday 05 March 2007 8:58:58 am - 2 replies

Author Message

Claudia Kosny

Monday 05 March 2007 2:34:20 pm

Hi Fabricio

That's looks quite tricky. The problem is that the wishlist needs the posted ContentObjectID and ezOption to add the product to the wishlist. And if you are redirected to the login page, the post data is lost.

A possible approach might be to hack the wishlist.php so it works with sessions as well and put the posted data in the session before the wishlist redirects to the login page.

Since you have already managed to get redirected back to the wishlist after login, the wishlist should then check for session variables, add the product and remove the session variables.

Maybe you should also just add the redirection to the wishlist if one of these session variables is set - after all you don't want to redirect to the wishlist every time someone logs in.

Claudia

Fabricio Guerrero

Tuesday 06 March 2007 12:28:54 am

Hi Claudia,

Thanks for this... it confirms what I suspected... i have to hack the kernel a bit to get this working...

I'll post the results here soon.

Thanks again.
Fabricio

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.