bteo Posted October 1, 2013 Share Posted October 1, 2013 I'm trying to find a way to redirect a successful freeorder. When you use a coupon that is 100% discount, you don't have a payment option only "I Confirm My Order" When clicked this should redirect to the OrderHistory page but its not going there for some reason. 1) Need help in fixing this? I can't figure out why its not redirect. 2) If you can figure out how to redirect this to a STATIC page that would be great. (just a simple redirect to a direct url is fine) Thanks you! Link to comment Share on other sites More sharing options...
seyi Posted October 2, 2013 Share Posted October 2, 2013 Hello,I get it too, but in my case, it is because I have outgoing emails disabled and I receive this warning instead, and it is never sent:------------------------------------Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in \tools\swift\Swift\Plugin\MailSend.php on line 160freeorder:FAUEFWWGN:[email protected]------------------------------------If you want to find out the cause of what is causing it, go to this file:www/themes/default/js/order-opc.js, find function confirmFreeOrder, around line 261, and within the: success: function(html) {add this: alert('success'); alert(html);If you read the code further, you will see it is splitting on ":", and so it is finding the warning, instead of the returned text "freeorder:FAUEFWWGN:[email protected]".After you update the js file just make sure you browser loads the updated version and test it again. Link to comment Share on other sites More sharing options...
Recommended Posts