Jump to content

Not Redirecting - Checking out with Coupon As Free Order


Recommended Posts

Version: 1.5.2.0

 

I've noticed there is a redirect problem with the One Page Checkout.

  1. Pay for item on checkout page using coupon
  2. Using coupon that is the same amount as the grand total which is FREE ORDER
  3. So instead of payment options you just click I CONFIRM MY ORDER
  4. Once you click the button it should redirect you.

However I'm not being redirected. Is there something wrong? Is there no default template for free order?

 

Anyone with any solutions please let me know I'm sure someone had this problem before?

Link to comment
Share on other sites

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 160
freeorder: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

  • 1 year later...
×
×
  • Create New...