Search code examples
phpsmartyprestashopprestashop-1.6

How to Split home tabs in prestashop 1.6 ?(Popular” and “New arrivals” )


How to Split home tabs in prestashop 1.6 ?(Popular” and “New arrivals” ) Split them into independent rows. enter image description here

Can anybody help me?Iwould save my days. Thanks


Solution

  • Assuming you are using the default bootstrap theme, look at the index.tpl file as well as, for instance, the blocknewproducts.php and see how these "tabs" are implemented.

    PS is using the bootstrap tabs and the modules you are talking about are hooked into {$HOOK_HOME_TAB} and {$HOOK_HOME_TAB_CONTENT}. I would for example copy that block from index.tpl, create new hooks, rename the html classes and override one of the modules so it hooks into that new row. Explaining exactly how that is done goes beyond the scope of SO answers.