Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Redirect back to a customized page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-12-2005, 09:05 PM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default Redirect back to a customized page

I wrote my own page, saying client.php. I used
Code:
require $xcart_dir."/include/security.php";
in the file and so it can be accessed only after user's login. If user hits the page before login, X-cart directs user to error_message.php?access_denied&id=37. I added the Authentication box onto the error_message.php page. But after the user login successfully using the box, X-cart directs user to home.php. How can I change that and direct user back to my own page client.php?

Thanks a lot.

Jeff
__________________
version 4.1.1
Reply With Quote
  #2  
Old 04-13-2005, 04:43 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Since you are doing this within the framework of X-Cart, you can not simply display a php page. X-Cart uses Smarty Templates to display all the data that the php files gather/create/retreive.

You will need to follow the same convention with your client.php file. This means assigning data and arrays to Smarty Veriables, assigning a display template and then creating the corresponding template to dispaly it all.
Reply With Quote
  #3  
Old 04-13-2005, 08:31 AM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default

Thank you. I have no problem to make php page (client.php) work within the framework of X-Cart. The problem I have is how to redirect users back to the client.php page after they are asked to login using X-cart authentication.
__________________
version 4.1.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020