PrestaShop Documentation, PrestaShop Tutorials

Prestashop how to hook unhook module transplant module from back-office

In PrestaShop, “Transplant a module” means hooking or unhooking a module to a position (hook) from the Back Office.

Below is the correct way (works for PrestaShop 1.7 / 8.x).


✅ Method 1: Hook / Unhook from Positions Page (Recommended)

📍 Go to:

Back Office → Design → Positions

(Older versions: Modules → Positions)


🔹 🔵 To Hook (Transplant) a Module

  1. Click “Transplant a module” (top-right button)
  2. Fill the form:
    • Module: Select module name
    • Hook: Select position (example: displayHeader, displayFooter)
    • Exceptions: (Optional – exclude pages)
  3. Click Save

Done ✅


🔹 🔴 To Unhook a Module

  1. In Design → Positions
  2. Use search filter:
    • Filter by module name
  3. Find the hook where it is attached
  4. Click Unhook

Done ✅


✅ Method 2: Manage Hooks from Module Page

📍 Go to:

Modules → Module Manager

  1. Find your module
  2. Click ▼ (dropdown arrow)
  3. Click “Manage hooks”
  4. Uncheck hook to remove
  5. Check hook to add
  6. Save

📌 Common Important Hooks (Frontend)

Hook Name Position
displayHeader Head section
displayFooter Footer
displayHome Homepage
displayTop Top header
displayLeftColumn Left sidebar
displayRightColumn Right sidebar
displayProductAdditionalInfo Product page

🎯 Example

If you want to:

  • Remove newsletter from footer
    → Unhook from displayFooter
  • Add banner on homepage
    → Hook to displayHome

⚠️ If “Transplant” Button Not Visible

  1. Enable Debug Mode
  2. Check employee permissions:
    • Advanced Parameters → Team → Permissions
  3. Make sure you are using full admin profile

🛠️ Pro Tip (For Speed Optimization – Since you’re improving site speed)

Unhook unused modules from:

  • displayHeader
  • displayFooter
  • displayHome

This reduces:

  • JS loading
  • CSS loading
  • TTFB

 

About zohaibk

We develop useful addons for #E-Commerce and #CRM software to provide extra features.#PrestaShop,#Magento,#SugarCRM,#Vtiger & #Android #apps
View all posts by zohaibk →