Child pages
  • Making your module work with Bootstrap

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here is an example of how your module can make use of the Bootstrap framework, through PrestaShop's Helper methods. This example is taken from the blockcart module, and concentrates on two methods: getContent() (which PrestaShop calls in order to display to the module's configuration page), and displayForm() (which is replaced by renderForm()).

...

One last thing to watch out for: if your module uses a bootstrapped controller, you must add the bootstrap variable to your the module's constructor method.

...

If you are not use a bootstrapped controller, then PrestaShop will wrap it with a specific class, which will do its best to handle the controller as effectively as possible, and ensure thus ensuring a certain level of retrocompatibility.