View Single Post
  #8  
Old 09-08-2015, 02:38 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.

X-Cart 5 generates missing getter and setter methods for fields automatically.

However, is_order is not a regular field, but a "discriminator" column that allows X-Cart to determine if a database record is an entity of \XLite\Model\Cart class, or \XLite\Model\Order class (records for both the classes reside in the same database table).

You can ask X-Cart to turn \XLite\Model\Cart into \XLite\Model\Order by using $cart->markAsOrder(). And use $order->markAsCart() to do the opposite.
__________________
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