Categories

Featured templates

PrestaShop 1.6.x. How to move the module from one hook to another

Charlotte Bennett February 23, 2015
Rating: 5.0/5. From 2 votes.
Please wait...

In this tutorial we will show you how to move a module from one hook to another in Prestashop.

PrestaShop 1.6.x. How to move the module from one hook to another

Hooks are specific positions which determine the location of your modules on the site front end. One module can be assigned to two or more hooks at the same time. Some of the hooks are empty by default.

The modules are displayed on the site in the order in which they appear in the hook. The most important positions which predefine how your site front end looks are the following:

  • Top of Pages;

  • Homepage content;

  • Left column blocks;

  • Right column blocks;

  • Footer and other hooks.

  • Note: the hook Header contains the modules which are not visible on the site front end. Sometimes it may be wrongly taken for the “Top of Pages” hook.

To move the module from one hook to another, you need to do the next steps:

  1. Log into your PrestaShop admin panel.

  2. Navigate to Modules-> Positions menu:

    image_1

  3. Here you can see a list of all hooks and modules assigned to them.

  4. Locate the necessary module and click on the Edit button next to it:

    image_2

  5. Select the Unhook option to remove the module from the position:

    image_3

  6. Attach the module to the desired hook:

    1. Press the Transplant a module button from the top right menu:

      image_4

    2. In the Module drop-down list, select the module you want to transplant:

      image_05

    3. In the Hook into” drop-down list, select the position you want to transplant your module to. You can change your setting later if needed.

    4. Note that you cannot always transplant any module to any hook, as some modules are written to only be attached to a given set of hooks. In case you are attaching the module to a wrong hook, you will get the next error: “This module cannot be transplanted to this hook.”

      error_03

    5. In the “Exceptions” field, select the name of the page on which you do not want the module to appear. You can select more than one option by holding the “Ctrl” button on your keyboard and clicking with the left mouse button on the names of the pages. If you click on a selected page, it will be unmarked.

    6. Save the changes by pressing “Save” button.

    7. After successful transplanting, the module will appear in the list of modules attached to this hook.

  7. Change the position of the module within a hook with the help of the arrows or just drag-and-drop to the necessary position:

    image_7

  8. Return to the front end of your site to make sure your module shows up where you intended it to be.

We hope the tutorial was useful for you.

Feel free to check the detailed video tutorial below:

PrestaShop 1.6.x. How to move the module from one hook to another

Premium Prestashop Templates
This entry was posted in PrestaShop Tutorials and tagged hook, module, move, Prestashop. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket