Sure 🙂 Here’s a clear, step-by-step PrestaShop guide covering adding a new module, uninstalling a module, and changing a module’s position (works for PrestaShop 1.7 & 8.x).
🔹 1. How to Add / Install a New Module
âś… Method 1: From PrestaShop Back Office (Recommended)
- Go to Back Office → Modules → Module Manager
- Click “Upload a module”
- Upload the module
.zipfile - PrestaShop will:
- Upload
- Install
- Enable the module automatically
👉 Done 🎉
âś… Method 2: Manual Upload (FTP)
- Extract the module ZIP
- Upload the folder to:
/modules/ - Go to Back Office → Modules → Module Manager
- Find the module → Click Install
⚠️ Folder name must match the module’s internal name.
🔹 2. How to Uninstall a Module
âś… Normal Uninstall (Keeps files)
- Go to Modules → Module Manager
- Find the module
- Click Disable (optional)
- Click Uninstall
📌 This removes:
- Database tables (if module is well-coded)
- Configurations
But files stay in /modules/
🔥 Complete Removal (Clean uninstall)
After uninstalling:
- Delete module folder via FTP:
/modules/module_name/ - Clear cache:
- Advanced Parameters → Performance
- Clear cache
🔹 3. How to Change Module Position (Hooks)
âś… Method 1: Using Positions (Classic Way)
- Go to Design → Positions
- Search for the module name
- Click “Transplant a module”
- Choose:
- Module
- Hook (e.g.
displayHome,displayHeader)
- Save
📌 You can also:
- Drag & drop modules inside the same hook
- Change display order
âś… Method 2: From Module Configuration
- Go to Modules → Module Manager
- Click Configure on the module
- Some modules allow selecting hooks directly
đź§ Common Useful Hooks
| Hook | Location |
|---|---|
displayHeader | Page header |
displayTop | Top bar |
displayHome | Homepage |
displayFooter | Footer |
displayLeftColumn | Left sidebar |
displayRightColumn | Right sidebar |
displayProductExtraContent | Product page |
🔹 4. Disable Module Without Uninstalling
If you just want to temporarily stop it:
- Modules → Module Manager → Disable
No data loss 👍
🔹 5. Troubleshooting Tips
- Module not visible? 👉 Clear cache
- Layout broken after uninstall? 👉 Regenerate theme cache
- Module not showing? 👉 Check hook compatibility with your theme
