Jump to content

Edit History

Ali Samie

Ali Samie


Solved

Hi community members.

I was trying to override a listing controller from this path `controllers/front/listing/CategoryController.php`.

As you all know you just need to copy and paste this file with the relative path into your custom module like this `modules/mymodule/override/controllers/front/listing/CategoryController.php` and then do the override based on your needs.

After all you just need to install the module in a prestashop instance or reset it if you have installed this before. That is what I went through. But it did not work for me. Actually nothing new appears in `override/controllers/front`.

I checked that in a fresh install of prestashop there is no `listing` folder within this path `override/controllers/front`.

I searched for this and found this answer by @hexadog which says you have to create `listing` folder in `override/controllers/front` and then install or reset your module. And it works for me. Thanks @hexadog

Ali Samie

Ali Samie

Hi community members.

I was trying to override a listing controller from this path `controllers/front/listing/CategoryController.php`.

As you all know you just need to copy and paste this file with the relative path into your custom module like this `modules/mymodule/override/controllers/front/listing/CategoryController.php` and then do the override based on your needs.

After all you just need to install the module in a prestashop instance or reset it if you have installed this before. That is what I went through. But it did not work for me. Actually nothing new appears in `override/controllers/front`.

I checked that in a fresh install of prestashop there is no `listing` folder within this path `override/controllers/front`.

I searched for this and found this answer by @hexadog which says you have to create `listing` folder in `override/controllers/front` and then install or reset your module. But again it did not work for me.

×
×
  • Create New...