View Single Post
  #20  
Old 03-26-2015, 10:27 PM
 
ant99 ant99 is offline
 

Advanced Member
  
Join Date: Mar 2015
Posts: 39
 

Default Re: Thumbnail size in xc5

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.
__________________
Ant

XC v5.3.1.8
Horizontal Flyout Categories Menu Module
CloudSearch / CloudFilters

XC v4.7.6
CloudSearch
Reply With Quote