Hi,
I want the products on my category page to display from new to old by default.
Can someone please tell me how to do this?
Thank you!
Laura
Hi Laura, I just had to do this myself.
Open /catalog/controller/product/category.php
On or around line 21, change the code from:
to
then on or around line 27, change
to
Hope that helps!
Open /catalog/controller/product/category.php
On or around line 21, change the code from:
Code: Select all
if (isset($this->request->get['sort'])) {
$sort = $this->request->get['sort'];
} else {
$sort = 'p.sort';
}
Code: Select all
if (isset($this->request->get['sort'])) {
$sort = $this->request->get['sort'];
} else {
$sort = 'p.date_added';
}
Code: Select all
if (isset($this->request->get['order'])) {
$order = $this->request->get['order'];
} else {
$order = 'ASC';
}
Code: Select all
if (isset($this->request->get['order'])) {
$order = $this->request->get['order'];
} else {
$order = 'DESC';
}
My OpenCart Store: http://www.daiisyboutique.com.au
Who is online
Users browsing this forum: No registered users and 52 guests