equiox Posted March 31, 2010 Share Posted March 31, 2010 Hello,Thank you for the great storefront tool! I have a small issue... When someone orders an item (tested only with a free item right now), a confirmation page does not show up. Instead, the homepage shows up (even though the order went through). It's unlikely, but possible, that I had something to do with it. However, I would prefer to fix the problem instead of just reinstalling. I can't seem to find the area from which the completed (free) order redirects to the confirmation. Can anyone shed some light on this for me? Thanks a lot! Link to comment Share on other sites More sharing options...
rocky Posted April 1, 2010 Share Posted April 1, 2010 I have no idea why it is redirecting to the homepage for you. Here's the code on line 141 of order.php that checks for a free order and redirects: /* Bypass payment step if total is 0 */ function checkFreeOrder() { global $cart; if ($cart->getOrderTotal() <= 0) { $order = new FreeOrder(); $order->validateOrder(intval($cart->id), _PS_OS_PAYMENT_, 0, Tools::displayError('Free order', false)); Tools::redirect('history.php'); } } The code redirects to history.php, not index.php. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now