X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Redirect to static 'Thank You' page after registration (https://forum.x-cart.com/showthread.php?t=30715)

kanjigirl 04-25-2007 01:05 PM

Redirect to static 'Thank You' page after registration
 
I know there are a number of threads that address this (I've read many over the last few days) and I apologize if I'm asking the same thing again, but I can't find exactly how to place my link.

I created a static page that I want users to see after they create a profile. I think this is what I need to edit (from include/register.php):

PHP Code:

$script $xcart_catalogs['partner']."/home.php?mode=profile_created";
   }
    if (empty(
$av_error)) {
    
func_header_location($script);
    } 


But I'm not entirely clear on exactly how to add my link to pages.php?pageid=2. Can someone give me the correct code?

photo 04-25-2007 02:01 PM

Re: Redirect to static 'Thank You' page after registration
 
You could check out this thread, Link and try the following code.

Code:

$script = $xcart_catalogs['partner']."/home.php?mode=profile_created";
  }
    if (empty($av_error)) {
          if( $reg_error ) {
                func_header_location($script);
      }
          else {
  header("LOCATION: pages.php?pageid=2");
    }
    }


kanjigirl 04-25-2007 02:41 PM

Re: Redirect to static 'Thank You' page after registration
 
That did it, thank you. It's working great.

photo 04-25-2007 02:45 PM

Re: Redirect to static 'Thank You' page after registration
 
Glad you got it to work. :-)


All times are GMT -8. The time now is 11:14 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.