Thread: Rebuild thumbs
View Single Post
  #3  
Old 06-13-2015, 05:20 AM
 
Roman Prisiazniuk Roman Prisiazniuk is offline
 

Member
  
Join Date: Jun 2015
Posts: 27
 

Default Re: Rebuild thumbs

Quote:
These values are hard-coded. However, you can easily define new values by creating a decoration of the XLite/View/ProductBox class in your module.

You should override the following method in this class:
Code:
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', 160, true ), self::PARAM_ICON_MAX_HEIGHT => new \XLite\Model\WidgetParam\Int( 'Maximal icon height', 160, true ), ); }
Please tell me what name of decorator should be and in what location it must be placed and what namespace must it use?
IT would be better if u write full code of this decorator and say me where must it be located
__________________
xcart5
Reply With Quote