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 back to a customized page (https://forum.x-cart.com/showthread.php?t=13388)

jdedba 04-12-2005 09:05 PM

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

TelaFirma 04-13-2005 04:43 AM

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.

jdedba 04-13-2005 08:31 AM

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.


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

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