View Single Post
  #144  
Old 11-12-2012, 03:51 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: common if/then modifications I make to x-cart...

Quote:
Originally Posted by xtech
Hi Mike,
Is this for particular static page or after registration only?
I just pointed you to the code that redirects the user after signup. Forgot to say that it is /include/register.php

If you want to got to a different page, just put your page there in place of address_book.php. Haven't tested this yet.

If you need to assign a custom variable from the previous page, just pass it in the URL: register.php?custom=yes

Untested example:
Code:
// Redirect just registered customer if ($isAutoLogin) { if ($custom == 'yes'){ $script = 'pages.php?pageid=2' }else { $script = 'address_book.php'; } } else { $script = 'home.php'; }
This probably won't work but you can give it a shot.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote