Get Free Audit

Prestashop Category Info Free

Nov 29, 2013

423 Alex Simonchik

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.

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.

The code of the module includes the following features:

Igor Dragun
Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Igor

  • __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:

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

Get access to dedicated PrestaShop development team and create bespoke module for your online store.

Igor Dragun
Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Igor

Post a new comment

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