X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   Changing Order Fulfilment Status (Xcart 5) (https://forum.x-cart.com/showthread.php?t=76608)

gior_08 10-28-2018 11:00 PM

Changing Order Fulfilment Status (Xcart 5)
 
Hello,

I would like your help to find out what method are calling when changing the Fulfilment status of an order in the administration zone. I want to implement it for some custom action.

In addition, if it is possible, I would like some advice how I can do reverse engineering in the admin zone.

For example in what I'm asking above, from which point I could start to find the method?

Thank you

cflsystems 10-29-2018 05:13 AM

Re: Changing Order Fulfilment Status (Xcart 5)
 
1. Go to an order

2. Look at the url - /admin.php?target=order&order_number=XX . The target parameter tells you which controller class it will run - in this case classes/XLite/Controller/Admin/Order.php

3. Usually changing something on the page with post to database will trigger an action - in the above file look for doAction functions

4. You will find - protected function doActionUpdate() - and this method runs number of updates - the one you are looking for is updateOrderStatus

gior_08 10-29-2018 06:59 AM

Re: Changing Order Fulfilment Status (Xcart 5)
 
Dear Steve, thank you very much.
Your answer helped me a lot. I actually understood what I should do!!!


All times are GMT -8. The time now is 12:04 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.