Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow product ordering on explicit request #11279
We must not introduce any more business logic in this controller as we plan to remove it at some point: let's extract what can be re-used in the future Product Controller. See PrestaShop/prestafony-project#7 for more information.
@PierreRambaud I got rid of the extract calls
Instead I fetch the selected category with Category class, which is not super either but at least there is less garbage code
If you still don't like the use of category ObjectModel I will simply remove as it was not really the purpose of this PR/Issue, I just thought showing the selected category made the catalog page much more understandable (for now the info is not shown anywhere and you don't event know you have filtered products from the database filters.. cheap UI experience)