View Single Post
  #1  
Old 06-08-2015, 06:43 AM
 
xgarb xgarb is offline
 

eXpert
  
Join Date: Jul 2004
Location: UK
Posts: 263
 

Default X5 - Creating a new ItemsList type

X-cart comes with three list types for products: Grid, List and Table

How do I get another list type?

In the class I have this

Code:
const DISPLAY_MODE_CLIENT = 'client''; protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[self::PARAM_WIDGET_TYPE]->setValue(self::WIDGET_TYPE_CENTER); $this->widgetParams[self::PARAM_DISPLAY_MODE]->setValue(self::DISPLAY_MODE_CLIENT); $this->widgetParams[self::PARAM_SHOW_DISPLAY_MODE_SELECTOR]->setValue(false); $this->widgetParams[self::PARAM_SHOW_SORT_BY_SELECTOR]->setValue(false); }

and I've added the tpl files with the other Itemslist tpl files.

I can see further code in parent classes but I'm not sure what I need to edit.
__________________
Core version: 5.5.xx
Reply With Quote