[PrestaShop] How to override PrestaShop controller, class or main class of the module

In this entry I describe how to override PrestaShop controller, class or main class of the module.

 

How to override PrestaShop controller: /controllers/front/AddressController.php (this is just an example of the file)

Create file: /override/controllers/front/AddressController.php with content:

 

How to override PrestaShop class: /classes/Address.php (this is just an example of the file)

Create file: /override/classes/Address.php with content:

 

How to override main class of the module: /modules/bankwire/bankwire.php (this is just an example of the file)

Create file: /override/modules/bankwire/bankwire.php with content:

 

 

I ask you to review this article

Rating 3 Stars from 4 reviews

One thought on “[PrestaShop] How to override PrestaShop controller, class or main class of the module”

  1. Pretty nice post. I simply stumbled upon your blog and wanted to say that
    I have really enjoyed browsing your blog posts. After all I will be subscribing on your rss feed and I’m hoping you
    write once more very soon!

Leave a Reply

Your email address will not be published. Required fields are marked *

13 − 10 =