![]() |
Adding a rediredect to my code
does anyone know a line of code that i can add and when so that when we have a customer not logged in they will be redirected to the registration page?
secondly does anyone know a php code that i can put on a page outside the cart to check if the logged in cookie is present? |
Re: Adding a rediredect to my code
Quote:
if(!$login) func_header_location('register.php'); Quote:
$some_var=$HTTP_COOKIE_VARS['xidC_remember']; //it was return a cookie string with logged in name (ex. "tester") //else it will be an epmty string |
Re: Adding a rediredect to my code
if(!$login) func_header_location('register.php');
Is this smarty or php? where in the code would you suggest i put it? |
Re: Adding a rediredect to my code
this is PHP.
Put it in the php file where you want to monitor after Code:
require "./auth.php"; |
Re: Adding a rediredect to my code
does this work within the cart itself? i cannot find that require within the cart
|
Re: Adding a rediredect to my code
forget it lol... found it and thank you for your help Spinyman
|
All times are GMT -8. The time now is 11:19 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.