Big Day Release: Prestashop Category Info Free

Nov 29, 201329Alex Simonchik
Big Day Release: Prestashop Category Info Free

We continue pleasing our readers with new free modules. Following Background Switcher Free and Promotional Banner Free which have become super popular modules we are glad to introduce already a new one – Prestashop Category Info. The module has been developed as a consequence of certain requirements to one of our projects.

Prestashop Category Info

On the above picture you can see a block in the left-hand column, which contains the name of a category, the number of items in the current category and their price range.

Used hooks:

  • displayHeader
  • leftColumn
  • rightColumn
  • displayBackOfficeHome

The module’s configuration includes only selection of the column in which the block will be displayed.

Prestashop Category Info

The code of the module includes the following features:

  • __construct()
  • install()
  • installConfiguration () //the function for setting configuration default values
  • getTemplate($area, $file) //this is the way we use to set path to a tpl file
  • getConfig($name) //a wrap for Configuration::get()
  • setConfig($name, $value) //a wrap for Configuration:: updateValue ()
  • getContent()
  • initForm()
  • initToolbar()
  • postProcess()
  • hookLeftColumn()
  • hookRightColumn()
  • displayCategoryInfo(&$return_html) //this functions converts the code of the module into html
  • getModuleInfo($categoryObj) //this function calculates data for the module
  • hookBackOfficeHome($params = array())

Used css files: modules/belvg_categoryinfo/css /belvg_categoryinfo.css

Used templates:

  • modules/belvg_categoryinfo/views/templates/admin/admin.tpl
  • modules/belvg_categoryinfo/views/templates/admin/iframe.tpl
  • modules/belvg_categoryinfo/views/templates/front/info.tpl

This is how the module layout looks in a standard theme:

Prestashop Category Info

We are really pleased to share our knowledge with the community and we hope that you will this module useful for you.


Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *