Jump to content

(Solved)Display results of Product Category Module in alphabetical order


Recommended Posts

Ah OK, understood.

I've surprised myself somewhat, but I think I have the answer. :)

In /modules/productscategory/productscategory.php change 

$categoryProducts = $category->getProducts($this->context->language->id, 1, 100); /* 100 products max. */

to

$categoryProducts = $category->getProducts($this->context->language->id, 1, 100, name); /* 100 products max. */

Hope that works for you.

Cheers, Dave

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Hi

 

I am using The solution that Dave provided however I am getting the following errors in my log:-

 

PHP Notice:  Use of undefined constant name - assumed 'name' in \modules\productscategory\productscategory.php on line 120

 

the solution works so I would like to keep the "fix". This may be an easy item for most people but I have no expertise in this area.

 

Thanks in advance

G

Link to comment
Share on other sites

×
×
  • Create New...