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

Prestashop 1.7 - MOLPay response information not showing #17

Closed
chenyaau94 opened this issue Jul 13, 2018 · 1 comment
Closed

Prestashop 1.7 - MOLPay response information not showing #17

chenyaau94 opened this issue Jul 13, 2018 · 1 comment

Comments

@chenyaau94
Copy link
Collaborator

MOLPay response message on transaction does not shown in Order detail's message panel.

@chenyaau94
Copy link
Collaborator Author

In Prestashop 1.7, AdminOrderController has updated their message variable definition.

To retrieve the message so that it can shown in Message Panel, Prestashop owner is required to modify the following script in AdminOrderController.php:

Steps to display MOLPay response message in Message Panel:

  1. Accessing to AdminOrderController.php via path Domain site/controllers/admin/AdminOrderController.php
  2. Look for $this->tpl_view_vars array , replace message variable in the array with the following details.
    Before
    'messages' => CustomerThread::getCustomerMessagesOrder($order->id_customer, $order->id)
    After
    'messages' => Message::getMessagesByOrderId($order->id, true)

Precaution

  1. This issue founded in Prestashop version 1.7.3.4
  2. Prestashop owner should take their own risk for any amendment in Prestashop's script

@wankimmy wankimmy closed this as completed Apr 7, 2022
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