Re: Adding order meta data and displaying it places!
Quote:
Originally Posted by cflsystems
Probably HasLifecycleCallbacks
But again you are not decorating the class. You are creating new class based on Model\Order so the actual Model\Order class will not have your new properties.
You need define it as
abstract class Order extends \XLite\Model\Order implements \XLite\Base\IDecorator
in order to decorate the Model\Order class and see your new properties there
|
Of course! How stupid was I, somehow I had deleted that part trying to debug (there were typos in other places) and didn't think about put it back again
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
|