JerseyG Posted September 5, 2013 Share Posted September 5, 2013 (edited) Product Category Module V1.3 PrestaShop V1.5.4.1 Hi I am using the Product Category Module and I would like to know what changes I need to make, in what module, to present the results in alphabetical order. Thanks in advance. G Edited October 15, 2013 by JerseyG (see edit history) Link to comment Share on other sites More sharing options...
JerseyG Posted September 7, 2013 Author Share Posted September 7, 2013 Hi I understand that website that have failed on upgrades take priority with assistance but is there no one out there that can help with this request? Thanks in advance G Link to comment Share on other sites More sharing options...
stottycabanas Posted September 7, 2013 Share Posted September 7, 2013 Maybe this thread will help ... http://www.prestashop.com/forums/topic/273293-solved-how-to-show-items-in-alphabetical-order Link to comment Share on other sites More sharing options...
JerseyG Posted September 7, 2013 Author Share Posted September 7, 2013 (edited) Hi Stottycabanas Thanks for your input, nice to see someone is out there.... That solution is for the "Category" block, I am looking for a solution to the "Product Category" block. Edited September 7, 2013 by JerseyG (see edit history) Link to comment Share on other sites More sharing options...
stottycabanas Posted September 7, 2013 Share Posted September 7, 2013 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 1 Link to comment Share on other sites More sharing options...
JerseyG Posted September 7, 2013 Author Share Posted September 7, 2013 Hi Dave Fantastic, simple and works, who could ask for more. Thank you very much for your help, it just makes it easier for the client if everything is in order. Thanks again Geoff Link to comment Share on other sites More sharing options...
JerseyG Posted October 14, 2013 Author Share Posted October 14, 2013 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 More sharing options...
Recommended Posts