Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Changing Order Fulfilment Status (Xcart 5)

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-28-2018, 11:00 PM
 
gior_08 gior_08 is offline
 

Member
  
Join Date: Sep 2008
Posts: 23
 

Default 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
__________________
Xcart 4.x.x
Xcart 5.x.x
Reply With Quote
  #2  
Old 10-29-2018, 05:13 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
qualiteam (11-01-2018)
  #3  
Old 10-29-2018, 06:59 AM
 
gior_08 gior_08 is offline
 

Member
  
Join Date: Sep 2008
Posts: 23
 

Default 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!!!
__________________
Xcart 4.x.x
Xcart 5.x.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:22 PM.

   

 
X-Cart forums © 2001-2020