View Single Post
  #9  
Old 09-24-2019, 12:56 AM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default 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
Reply With Quote