[Skip to main content](#vessel-content)

#   User Feedback from an Order Status Change?

##

- **[icomex](/forum/user/4967-icomex "View icomex's Profile")**
- [![icomex's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4967.png)](/forum/user/4967-icomex "View icomex's Profile") Topic Author
- [ Offline](/forum/user/4967-icomex)

Less More

- Posts: 149
- Thank you received: 6
-
-

5 years 1 month ago -  5 years 1 month ago [\#335864](#335864) by [icomex](/forum/user/4967-icomex "View icomex's Profile")  *[User Feedback from an Order Status Change?](/forum/31-development/903222-user-feedback-from-an-order-status-change#335864 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4.23  My latest custom PaymentPlugin uses onBeforeOrderUpdate to contact our gateway provider to capture funds (which were pre-authorized during the Order Creation) whenever the order is later changed from status 'created' to 'shipped' or 'confirmed'. This status change is executed from the Orders List Admin page, so the process is actually executed in a Modal Window. Because of this, the Order listing is not reloaded after the method is finished. To view the actual changes made while changing the status, I have to reload the page manually. Even when I do that, I don't see any messages I added during the custom method using enqueueMessage.  Is there any way to send the User direct feedback from the onBeforeOrderUpdate Method, so I can let them know immediately if the custom capture process has succeeded or failed?")* was created by *[icomex](/forum/user/4967-icomex "View icomex's Profile")*

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.2
-- PHP version -- : 7.4.23

My latest custom PaymentPlugin uses **onBeforeOrderUpdate** to contact our gateway provider to capture funds (which were pre-authorized during the Order Creation) whenever the order is later changed from status '**created**' to '**shipped**' or '**confirmed**'. This status change is executed from the Orders List Admin page, so the process is actually executed in a **Modal Window**. Because of this, the Order listing is not reloaded after the method is finished. To view the actual changes made while changing the status, I have to reload the page manually. Even when I do that, I don't see any messages I added during the custom method using **enqueueMessage**.

Is there any way to send the User direct feedback from the **onBeforeOrderUpdate** Method, so I can let them know immediately if the custom capture process has succeeded or failed?

Last edit: 5 years 1 month ago by [icomex](/forum/user/4967-icomex "View icomex's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwMzIyMi11c2VyLWZlZWRiYWNrLWZyb20tYW4tb3JkZXItc3RhdHVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

5 years 1 month ago [\#335868](#335868) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[User Feedback from an Order Status Change?](/forum/31-development/903222-user-feedback-from-an-order-status-change#335868 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4.23  My latest custom PaymentPlugin uses onBeforeOrderUpdate to contact our gateway provider to capture funds (which were pre-authorized during the Order Creation) whenever the order is later changed from status 'created' to 'shipped' or 'confirmed'. This status change is executed from the Orders List Admin page, so the process is actually executed in a Modal Window. Because of this, the Order listing is not reloaded after the method is finished. To view the actual changes made while changing the status, I have to reload the page manually. Even when I do that, I don't see any messages I added during the custom method using enqueueMessage.  Is there any way to send the User direct feedback from the onBeforeOrderUpdate Method, so I can let them know immediately if the custom capture process has succeeded or failed?")*

Hi,

You're on the right track. The problem is that the messages you add from a popup with enqueueMessage is that it's the popup that is displaying the messages, but since HikaShop stops the processing in the popup to close it, you're not seeing them.
And even if you reload the page manually, that won't change.

What I would recommend is for you to like this: Code:

if($_REQUEST['tmpl']=='component') { echo hikashop_display('My error message', 'error'); exit; }

That will halt the process in the popup and display your error message in the popup.
If the payment capture is successful, then I would recommend to have that code in onAfterOrderUpdate: Code:

if($_REQUEST['tmpl']=='component' &amp;&amp; $this-&gt;payment_success) { echo hikashop_display('My success message', 'success'); exit; }

Doing it like that will prevent HikaShop from closing the popup and will display the message through HikaShop's message display system which works even when the process of the page is stopped, which joomla's doesn't.

The following user(s) said Thank You: [icomex](/forum/user/4967-icomex "View icomex's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwMzIyMi11c2VyLWZlZWRiYWNrLWZyb20tYW4tb3JkZXItc3RhdHVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[icomex](/forum/user/4967-icomex "View icomex's Profile")**
- [![icomex's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4967.png)](/forum/user/4967-icomex "View icomex's Profile") Topic Author
- [ Offline](/forum/user/4967-icomex)

Less More

- Posts: 149
- Thank you received: 6
-
-

5 years 1 month ago [\#335906](#335906) by [icomex](/forum/user/4967-icomex "View icomex's Profile")  Replied by *[icomex](/forum/user/4967-icomex "View icomex's Profile")* on topic *[User Feedback from an Order Status Change?](/forum/31-development/903222-user-feedback-from-an-order-status-change#335906 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4.23  My latest custom PaymentPlugin uses onBeforeOrderUpdate to contact our gateway provider to capture funds (which were pre-authorized during the Order Creation) whenever the order is later changed from status 'created' to 'shipped' or 'confirmed'. This status change is executed from the Orders List Admin page, so the process is actually executed in a Modal Window. Because of this, the Order listing is not reloaded after the method is finished. To view the actual changes made while changing the status, I have to reload the page manually. Even when I do that, I don't see any messages I added during the custom method using enqueueMessage.  Is there any way to send the User direct feedback from the onBeforeOrderUpdate Method, so I can let them know immediately if the custom capture process has succeeded or failed?")*

I'll give it a shot. Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwMzIyMi11c2VyLWZlZWRiYWNrLWZyb20tYW4tb3JkZXItc3RhdHVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.074 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
