View Single Post
  #2  
Old 01-25-2008, 08:20 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default Re: Adding a rediredect to my code

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
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
Reply With Quote