What is the difference between hooks and overrides in PrestaShop?

1374 views

Hooks are designated extension points in PrestaShop's code where modules can inject content or behavior. They are the preferred way to extend functionality because multiple modules can use the same hook without conflicting. Overrides replace entire classes or controllers — only one override per class is possible, and they can break when PrestaShop updates. Think of hooks as plug-in sockets (many plugs can connect) and overrides as rewiring (only one rewiring per wire). Always prefer hooks.

Learn more: our PrestaShop hooks guide.

Was this answer helpful?

Still have questions?

Can't find what you're looking for? Send us your question and we'll get back to you quickly.

Loading...
Back to top