| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Adding a rediredect to my code | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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?
__________________
Topuk http://www.northidahoflix.com http://www.lotionsandpotionsonline.com X-Cart Version 4.1.9 |
|||||||
#2
|
|||||||||
|
|||||||||
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
__________________
Regards, SpinyMan X-Cart Templates Store - http://www.x-cart-customization.com/shop/ X-Cart Customization Services - http://www.x-cart-customization.com/ |
|||||||||
#3
|
|||||||
|
|||||||
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?
__________________
Topuk http://www.northidahoflix.com http://www.lotionsandpotionsonline.com X-Cart Version 4.1.9 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Adding a rediredect to my code
this is PHP.
Put it in the php file where you want to monitor after Code:
__________________
Regards, SpinyMan X-Cart Templates Store - http://www.x-cart-customization.com/shop/ X-Cart Customization Services - http://www.x-cart-customization.com/ |
|||||||||
#5
|
|||||||
|
|||||||
Re: Adding a rediredect to my code
does this work within the cart itself? i cannot find that require within the cart
__________________
Topuk http://www.northidahoflix.com http://www.lotionsandpotionsonline.com X-Cart Version 4.1.9 |
|||||||
#6
|
|||||||
|
|||||||
Re: Adding a rediredect to my code
forget it lol... found it and thank you for your help Spinyman
__________________
Topuk http://www.northidahoflix.com http://www.lotionsandpotionsonline.com X-Cart Version 4.1.9 |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|