View Single Post
  #6  
Old 09-07-2015, 01:36 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Calling callback method to change transaction status.

If you want to update an order field, you should:
1. Retrieve the order model (entity) into a variable
2. Update the model's properties by using "setter" methods
3. Flush the changes into the database if the page controller doesn't do it after finishing executing the action method

These articles may help you to do the above:
- http://kb.x-cart.com/display/XDD/Understanding+Models
- http://kb.x-cart.com/display/XDD/Searching+entities+in+repositories

Or do you want to add new fields to the order model? If so you should "decorate" the order model from your custom module and add the necessary fields.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote