View Single Post
  #20  
Old 04-03-2015, 09:43 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Adding Images to the Invoice

Tony,

Does this look right?

PHP Code:
namespace XLite\Module\FasterThanYours\ImagesOnGeneralInfoTab\View;

class 
OrderItem extends \XLite\View\ItemsList\Model\OrderItem implements \XLite\Base\IDecorator
{
    protected function 
defineRepositoryName()
    {
        return 
'\XLite\Model\Product';
    }
    
    protected function 
defineColumns()
    {
        return array(
            
'image' => array(
                static::
COLUMN_NAME     => 'Image',
                static::
COLUMN_ORDERBY  => 100,
            ),
        );
    }

__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote