Quote:
Originally Posted by minfinger
I'm trying to get the image load on the General Info Tab on when you look at the order information. You originally said:
And that's what I was trying to do. I was asking your opinion before I tried the code.
|
Thanks for the explanation, Michael. Now your idea is clear to me.
Your code should look as follows:
PHP Code:
namespace XLite\Module\FasterThanYours\ImagesOnGeneralInfoTab\View;
class OrderItem extends \XLite\View\ItemsList\Model\OrderItem implements \XLite\Base\IDecorator
{
protected function defineColumns()
{
$return = parent::defineColumns();
$return += array(
'image' => array(
static::COLUMN_NAME => 'Image',
static::COLUMN_ORDERBY => 100,
),
);
}
}
Because, you only need to add one more field to an array returned by defineColumns() method, not to overwrite this array completely.