Quote:
Originally Posted by tony_sologubov
In other words, you should decorate the setWidgetParams() method instead of defineWidgetParams() one.
|
Thank you, that works perfectly for the Category images. However, I tried to apply the fix for Product thumbnail images also and had no success. Here is what I have.
PHP Code:
<?php
namespace XLite\Module\Dev-ID\Module-ID\View;
abstract class ProductBox extends \XLite\View\ProductBox implements \XLite\Base\IDecorator
{
public function setWidgetParams(array $params)
{
parent::setWidgetParams($params);
$this->widgetParams[static::PARAM_ICON_MAX_WIDTH]->setValue(300);
$this->widgetParams[static::PARAM_ICON_MAX_HEIGHT]->setValue(300);
}
}
?>
Any suggestions? Thanks for your help.