Jump to content

Show Latest Modified Products Module?


Recommended Posts

I've found my own solution.


Go to .../classes/Product.php


in getNewProducts function, find:

if (empty($order_by) || $order_by == 'position') $order_by = 'date_add';

change $order_by = 'date_add' to $order_by = 'date_upd'

if (empty($order_by) || $order_by == 'position') $order_by = 'date_upd';

Save it as a new file Product.php in .../override/classes/Product.php.

This will help you keeping the original core file untouched.



Don't forget to also change the product controller.

Go to .../controllers/front/NewProductsController.php


in initContent() function, find


$this->orderBy = 'date_add'; change it to $this->orderBy = 'date_upd';


Save it as a new file NewProductsController.php in .../override/controllers/front/NewProductsController.php



Remember, always delete your class_index.php file in .../cache folder when you create a new overriden file



Edited by jijaybajay (see edit history)

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More