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.
|