View Single Post
  #17  
Old 03-05-2015, 10:46 AM
 
ant99 ant99 is offline
 

Advanced Member
  
Join Date: Mar 2015
Posts: 39
 

Default Re: Thumbnail size in xc5

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'0true), 
                
self::PARAM_ICON_MAX_WIDTH => new \XLite\Model\WidgetParam\Int
                    
'Maximal icon width'300true 
                
), 
                
self::PARAM_ICON_MAX_HEIGHT => new \XLite\Model\WidgetParam\Int
                    
'Maximal icon height'300true 
                
), 
            ); 
        }

}
?>

/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'300true
            
),
            
self::PARAM_ICON_MAX_HEIGHT => new \XLite\Model\WidgetParam\Int(
                
'Maximal icon height'300true
            
),
        );
    }

}
?>
__________________
Ant

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

XC v4.7.6
CloudSearch
Reply With Quote