Jump to content

Put "New Arrivals" "Popular" Tab in cms page


Recommended Posts

Yes, you can do that.

"New Product" is blocknewproducts module which is transplanted at displayHomeTabContent hook by default. So what you need to do is add a custom hook in cms.tpl and need to create that hook in database. For example 

{hook h='displayNewOnCMS'}

and then add respective function to blocknewproducts.php like this

public function hookDisplayNewOnCMS($params)
{
   return $this->hookRightColumn($params);
}

Now don't forget to transplant this module to newly created hook, well you can create new hook by just adding a new entry in ps_hook table. You can take care of product-list.css by adding some needed style.

And i don't need to say that you can do same for popular stuff module.

This must work.

Edited by modprestashop (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...