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

#   How can I refresh the orders view page?

##

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

Less More

- Posts: 107
- Thank you received: 3
-
-

13 years 9 months ago [\#89057](#89057) by [lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")  *[How can I refresh the orders view page?](/forum/4-how-to/78143-how-can-i-refresh-the-orders-view-page#89057 "Hi. I'm using a code that updates the invoice date and number in the orders table when I change the order status to confirmed, but I must refresh manually the orders listing page to see the changes....")* was created by *[lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")*

Hi. I'm using a code that updates the invoice date and number in the orders table when I change the order status to confirmed, but I must refresh manually the orders listing page to see the changes. Can I put some code anywhere to make this process automatically?

Thanks.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 9 months ago [\#89118](#89118) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How can I refresh the orders view page?](/forum/4-how-to/78143-how-can-i-refresh-the-orders-view-page#89118 "Hi. I'm using a code that updates the invoice date and number in the orders table when I change the order status to confirmed, but I must refresh manually the orders listing page to see the changes....")*

Hi,

I think that you can use the function "onAfterOrderUpdate" in you plugin and in this function just call the address of the order listing. by this way it should refresh the page.

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

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

Less More

- Posts: 107
- Thank you received: 3
-
-

13 years 9 months ago -  13 years 9 months ago [\#89133](#89133) by [lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")  Replied by *[lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")* on topic *[How can I refresh the orders view page?](/forum/4-how-to/78143-how-can-i-refresh-the-orders-view-page#89133 "Hi. I'm using a code that updates the invoice date and number in the orders table when I change the order status to confirmed, but I must refresh manually the orders listing page to see the changes....")*

Hi, thanks for the answer, but I'm not using any plugin. I've modified the code in order.php to set the invoice date (if the invoice number is empty) when I change the state to Confirmed or other 'invoice' state, and the code works fine, but I must refresh the page manually to see the new data in the orders listing.

Please, Can you tell me where may I put the 'refresh page' code?

Thanks.

Last edit: 13 years 9 months ago by [lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTQzLWhvdy1jYW4taS1yZWZyZXNoLXRoZS1vcmRlcnMtdmlldy1wYWdlP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14323
-
-

13 years 9 months ago [\#89345](#89345) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How can I refresh the orders view page?](/forum/4-how-to/78143-how-can-i-refresh-the-orders-view-page#89345 "Hi. I'm using a code that updates the invoice date and number in the orders table when I change the order status to confirmed, but I must refresh manually the orders listing page to see the changes....")*

Hi,

You will need to modify the function _terminate of the controllers/order.php file to modify the JS which closes the popup in order to add a javascript window.location in order to refresh the page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4MTQzLWhvdy1jYW4taS1yZWZyZXNoLXRoZS1vcmRlcnMtdmlldy1wYWdlP3RtcGw9bWFya2Rvd24=) 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.062 seconds

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