Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-07-2013 08:39:49

JDLS88
Member
From: Maryland, USA
Registered: 07-06-2011
Posts: 102
Website

Continue Shopping after login

Is there an existing option or quick way to set things up so when you click "login" it takes you to the splash page or something in the shop rather than the Account Overview screen?


Jeremy D.

Offline

 

#2 08-07-2013 09:30:24

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Continue Shopping after login

You can mod {private}/core/CORE_FrontEnd/ext/accounts.php.  In the login_proc() function at the bottom you'll see:

Code:

if (!(empty($coactive))) {$destns = 'checkout';}
else                     {$destns = 'accountconf';}

$glob_redir_ns = $this->globals('core.redir_ns');
$cgi_redir_ns  = $this->globals('core_cgi.redir_ns');

$redir_ns = ($glob_redir_ns ? $glob_redir_ns : $cgi_redir_ns);

if ($redir_ns) {$destns = $redir_ns;}

return $this->exec_namespace(array('app'       => $this->globals('core.app'),
                                   'namespace' => $destns,
                                   'type'      => '*',
                                   'params'    => null));

Change to:

Code:

$destapp = $this->globals('core.app');

if (!(empty($coactive))) {$destns = 'checkout';}
else                     {$destapp = 'ecom'; $destns = 'splash';}

$glob_redir_ns = $this->globals('core.redir_ns');
$cgi_redir_ns  = $this->globals('core_cgi.redir_ns');

$redir_ns = ($glob_redir_ns ? $glob_redir_ns : $cgi_redir_ns);

if ($redir_ns) {$destns = $redir_ns;}

return $this->exec_namespace(array('app'       => $destapp,
                                   'namespace' => $destns,
                                   'type'      => '*',
                                   'params'    => null));

Nick Hendler

Offline

 

#3 08-07-2013 09:32:37

JDLS88
Member
From: Maryland, USA
Registered: 07-06-2011
Posts: 102
Website

Re: Continue Shopping after login

Thanks Nick!


Jeremy D.

Offline

 

#4 08-07-2013 10:06:39

JDLS88
Member
From: Maryland, USA
Registered: 07-06-2011
Posts: 102
Website

Re: Continue Shopping after login

Actually looks like when I replace that and then click "Login" it presents me with a white screen with the url https://buylookfog.com/AccountLogin


Jeremy D.

Offline

 

#5 08-07-2013 15:46:53

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Continue Shopping after login

I forgot a single quote around 'splash'.  I adjusted my code above.  Try with the corrected code.


Nick Hendler

Offline

 

#6 08-07-2013 15:49:19

JDLS88
Member
From: Maryland, USA
Registered: 07-06-2011
Posts: 102
Website

Re: Continue Shopping after login

That did the trick! thanks!


Jeremy D.

Offline

 

#7 08-20-2013 10:52:23

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: Continue Shopping after login

How would you send the customer to the original page that they were on just as they logged in?

Offline

 

#8 08-21-2013 08:18:15

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Continue Shopping after login

That's done automatically, if they needed to login prior to viewing the page.


Nick Hendler

Offline

 

Board footer