Quote:
Originally Posted by Topuk
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?
|
if(!$login) func_header_location('register.php');
Quote:
Originally Posted by Topuk
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?
|
$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