Post by Dieter » Thu Dec 04, 2008 9:53 pm

Hi Guys,

I just made a tell-a-friend module but before you can get to this page you have to login.
When I do so, I go to the my account page but I need to find a way to login and instead of going to
the my account page you go to the page you came from.

Any suggestions?

Dieter

Newbie

Posts

Joined
Wed Sep 10, 2008 6:57 pm

Post by hm2k » Thu Dec 04, 2008 10:33 pm

Surly if you made it, you would know?

Perhaps you need to provide the code before anyone can truly help you...

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Qphoria » Thu Dec 04, 2008 11:43 pm

hm2k wrote: Surly if you made it, you would know?
;D

The code you want to use in your module is:

Code: Select all

if (!$customer->isLogged()) {
	  $session->set('redirect', $url->ssl('tell-a-friend'));
	  
	  $response->redirect($url->ssl('account_login'));
} 

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sulix » Fri Dec 12, 2008 5:02 pm

Hello Diether,
is your tell a friend module ready? Could you share it with us? I am looking for this shop feature long time.

thank you.

Sulix 

Newbie

Posts

Joined
Mon Dec 01, 2008 8:37 pm
Who is online

Users browsing this forum: No registered users and 5 guests