Everything here seems really useful and exactly fitting for what I need. I am wanting to change the category thumbnail size to 300x300. I'm also wanting to change the product thumbnail size to 300x300. As of now, the categories are showing 160x160. Also the products in the grid view are showing 160x160.
However, I tried integrating this into my theme and it doesn't seem to be working at all? What am I missing? Attached are the files that I've added to my module. Any insight is appreciated!
/XLite/Module/DevID/ModuleID/View/ProductBox.php
PHP Code:
<?php
namespace XLite\Module\DevID\ModuleID\View;
abstract class ProductBox extends \XLite\View\ProductBox implements \XLite\Base\IDecorator
{
protected function defineWidgetParams()
{
parent::defineWidgetParams();
$this->widgetParams += array(
self::PARAM_PRODUCT_ID => new \XLite\Model\WidgetParam\ObjectId\Product('Product Id', 0, true),
self::PARAM_ICON_MAX_WIDTH => new \XLite\Model\WidgetParam\Int(
'Maximal icon width', 300, true
),
self::PARAM_ICON_MAX_HEIGHT => new \XLite\Model\WidgetParam\Int(
'Maximal icon height', 300, true
),
);
}
}
?>
/XLite/Module/DevID/ModuleID/View/Subcategories.php
PHP Code:
<?php
namespace XLite\Module\DevID\ModuleID\View;
class Subcategories extends \XLite\View\Subcategories implements \XLite\Base\IDecorator
{
protected function defineWidgetParams()
{
parent::defineWidgetParams();
$this->widgetParams += array(
self::PARAM_DISPLAY_MODE => new \XLite\Model\WidgetParam\Set(
'Display mode', $this->getDisplayMode(), true, $this->displayModes
),
self::PARAM_ICON_MAX_WIDTH => new \XLite\Model\WidgetParam\Int(
'Maximal icon width', 300, true
),
self::PARAM_ICON_MAX_HEIGHT => new \XLite\Model\WidgetParam\Int(
'Maximal icon height', 300, true
),
);
}
}
?>