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
ย
