Hi Tony,
Thanks for the instructions. I have followed them and made the changes.
It didn't work and found that some of the directory listings are not the same for the version I'm using.
Ver. 5.2.4 (recently updated)
All I want to do is enlarge the "product_thumbnail" in the subcategories.php?
(I hope these are the right terminology)
Any tips, guidance would be appreciated as there is not much info on the latest version.
Cheers, Tom
Quote:
Originally Posted by tony_sologubov
Thanks for sending me the module.
The correct implementation of the \XLite\Module\Dev-ID\Module-ID\View\Subcategories class should be as follows:
PHP Code:
<?php
namespace XLite\Module\Dev-ID\Module-ID\View;
abstract class Subcategories extends \XLite\View\Subcategories 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);
}
}
In other words, you should decorate the setWidgetParams() method instead of defineWidgetParams() one.
|