Child pages
  • Creating a PrestaShop module

Versions Compared

Key

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

...

Info
titleMultistore

All of these methods pertain to the current context. In the default context, these methods apply to the store which is currently being using by the administrateur administrator at the time they are called.

They have three optional parameters, which are not presented in the list above:

  • id_lang: enables you to force the language with which you want to work.
  • id_shop_group: enables you to indicate the shop group of the target store.
  • id_shop: enables you to indicate the the id of the target store.

By default, these three parameters use the values of the current context.

It is therefore possible to override these three parameters when dealing with a multistore installation, in order to work outside of the current context.

...

Now that all basics are in place, reload the back-office's "Modules" pages, in the "Front-office features" section, you should find your module. Install it (or reset it if it is already installed).

Image RemovedImage Added

On installation, PrestaShop automatically creates a small config.xml file in the module's folder, which stores the configuration information. You should be very careful when editing by hand (see below).

...