| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Login Redirect... | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
![]() I want to redirect customer to orders.php cant fine the code in include/login.php
__________________
X-Cart Gold 4.3.2 X-Cart Gold 4.4.1 Unix High Quality CCTV DVRs & Cameras http://www.eaglemobiles.co.uk/CCTV |
|||||||||
#12
|
|||||||
|
|||||||
![]() I want to redirect the customer to either the cart page or to their account page is nothing is in the cart, what code do I place in for that?
__________________
x-cart 4.0.16v linux server |
|||||||
#13
|
|||||||
|
|||||||
![]() Quote:
if(!func_is_cart_empty($cart)) func_header_location($redirect_to."/cart.php"); else func_header_location($redirect_to."/account.php"); Anyone know how to have it redirect to the previous page???
__________________
... v 4.0.18; 4.1 |
|||||||
#14
|
|||||||
|
|||||||
![]() Quote:
This would be useful on a lot of pages. Click a button, get the action processed and return to the same page. The same as 'add to cart' with 'redirect to cart' switched off - this is achieved in cart.php by func_header_location($HTTP_REFERER); .... Code:
I think firewalls that block the referrer might cause this to fail tho.
__________________
Core version: 5.5.xx |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|