emilyoct Posted September 8, 2016 Share Posted September 8, 2016 (edited) Can I put "new arrivals" "popular" module into my cms page? If yes, can anyone please tell me how to do it? Please... Edited September 8, 2016 by emilyoct (see edit history) Link to comment Share on other sites More sharing options...
modprestashop Posted September 12, 2016 Share Posted September 12, 2016 (edited) 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 September 12, 2016 by modprestashop (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now