Paldru Posted July 3, 2013 Share Posted July 3, 2013 (edited) How could new products be shown on the homepage? Particulary the list of products that shows when using the new products controller /index.php?controller=new-products I would like, that my homepage /index.php would automatically show the new products the same way as the link /index.php?controller=new-products shows. I already tried a redirect in .htaccess but it is not really working. Somehow I managed to make a Module and register it to the homepage hook (display home) with the new-products controller files copied to the module surprisingly it nearly works, but without the product-sort form on the top. Would there be another possibility? Edited July 4, 2013 by TwoPenceCritter (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 5, 2013 Share Posted July 5, 2013 You mean it doesn't work, or it doesn't display? Link to comment Share on other sites More sharing options...
vekia Posted July 5, 2013 Share Posted July 5, 2013 i suppose that he want feature which will display new products with pagination on homepage of his prestashop.It isn't possible by default. You can achieve this with: 1) modification of the core 2) module maybe this module: home new products block 1 Link to comment Share on other sites More sharing options...
NemoPS Posted July 6, 2013 Share Posted July 6, 2013 If Vekia's right I suggest you use ajax pagination when clicking on the sort. Have your module add a javascript file, and call your ajax file (which calls your module file) when clicking on the pagination. Then from the module's called method simply run a query that accepts the page number as parameter (optionally, the order by as well) and return the list. then fetch a template and replace the currently displaying list with the new page Link to comment Share on other sites More sharing options...
Paldru Posted July 6, 2013 Author Share Posted July 6, 2013 (edited) . Edited September 14, 2013 by TwoPenceCritter (see edit history) 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