Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After a successful payment order-history is shown instead of the order-confirmation #3

Closed
paetor opened this issue Sep 10, 2014 · 2 comments
Assignees

Comments

@paetor
Copy link

paetor commented Sep 10, 2014

In correct operation Prestashop will – with or without the Mollie plugin – display an order confirmation page to customers returning to the shop from making a payment. Some customers will notice a change here when they use a version of Prestashop ≤ 1.6.0.7 and the Mollie plugin ≥ 1.0.3. The anomaly is that under these circumstances the customers are shown their order-history instead. Not a giant problem, but both unexpected and undesirable.

@paetor paetor self-assigned this Sep 10, 2014
@paetor
Copy link
Author

paetor commented Sep 10, 2014

This is in fact a bug in Prestashop that was fixed in version 1.6.0.7. It has to do with the OrderConfirmationController that on line 73 checks whether the module matches the payment.

To fix it upgrading Prestashop to ≥ 1.6.0.7 is without a doubt the cleanest solution. However, if you're (temporarily) stuck anywhere between 1.5.x and 1.6.0.6 you could simply edit the code this way:

Find line 72 or 73 (depends on your actual current version) of the file controllers/front/OrderConfirmationController.php which reads:

if ($order->payment != $module->displayName)

and change that to

if ($order->module != $module->name)

@paetor paetor closed this as completed Sep 10, 2014
@codepoppo
Copy link

codepoppo commented Jul 11, 2016

Uploading firstdataphp.txt…

Hi- I have this issue still where all orders are redirected from Paypal to order history. I desperately need these to fire scripts, have no clue why. My Prestashop is 1.6.1 and website is www.bedandwood.com. I have attached the first data.php file. Order confirm contr.php has ->name as one would expect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants