![]() |
I want to redirect customer to orders.php cant fine the code in include/login.php
|
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?
|
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??? |
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:
if($config["General"]["redirect_to_cart"]=="Y") { I think firewalls that block the referrer might cause this to fail tho. |
All times are GMT -8. The time now is 07:50 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.