Page 1 of 1

Product sort by date added – OC 2.0.3.1

Posted: Tue Oct 20, 2015 11:48 pm
by michaelscott
Anyone knows how to sort products in category page by date added?

I found few xml files but doesn't work. They sort products by date added but only on first page. When I click on page 2 products are sort by name.

I use Opencart 2.0.3.1 and Journal Theme
Thanks a lot!

Re: Product sort by date added – OC 2.0.3.1

Posted: Wed Oct 21, 2015 9:36 pm
by michaelscott
RESOLVED!
Here is extension: https://www.opencart.com/index.php?rout ... _id=674862

After installation you may get:
Notice: Undefined variable: customer_group_id in /.../vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 233

To fix this go to this file and find in this line:

Code: Select all

. (int)$customer_group_id .
change to:

Code: Select all

. (int)$this->config->get('config_customer_group_id') .
Opencart 2.0.3.1 with Journal theme

Re: Product sort by date added – OC 2.0.3.1

Posted: Mon May 02, 2016 2:57 am
by jonidfld
Whats the name of the extension? Im trying to fix the same problem! =/ Cant seem to get it from your link.

Re: Product sort by date added – OC 2.0.3.1

Posted: Mon Aug 29, 2016 6:47 pm
by stfn
This video shows how it's done. And it also works for OpenCart 2.x. I've used it on a OC 2.0.3.1 store.

Video: https://www.youtube.com/watch?v=UW-YrwRpVqA

Re: Product sort by date added – OC 2.0.3.1

Posted: Tue Aug 30, 2016 8:36 am
by opencartboost
Very nice video