[22-October-2025] EShop 5.0.0 released - A Major Technical Milestone

More
18 hours 7 minutes ago #176639 by Christoph
Hi Giang,

With this new structure, you can now override controllers, models, and views — not just layouts as before. This makes customizations easier and safer, allowing you to customize and update EShop without losing your custom features. A really big improvement.

I'm (very!) fine with the new structure - it's much better to understand where what is done in the view area. But I'm not sure how to override controllers and models. Could you please give an example of the directory structure one have to use to override (e.g. the original controller/cart.php)? Is it placed in my themes directory - and where?
Thank you very much!

Best regards,
Christoph

Please Log in or Create an account to join the conversation.

More
12 hours 53 minutes ago - 12 hours 52 minutes ago #176651 by Tuan Pham Ngoc
Hi Christoph

It is not layout, so it won't be placed in theme directory. You will need to put it into components/com_eshop/override/controller/cart.php instead
Code:
class EShopOverrideControllerCart extends EShopControllerCart { // Add method you want to override here }
Last edit: 12 hours 52 minutes ago by Tuan Pham Ngoc.
The following user(s) said Thank You: Christoph

Please Log in or Create an account to join the conversation.

More
12 hours 42 minutes ago #176653 by Christoph
Ahhh, okay.

Thank you very much for the explanations, Tuan!

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
12 hours 21 minutes ago #176658 by Giang Dinh Truong
OK no problem at all Christoph!

We will update the documentation to add this into there soon.

Sincerel, Giang

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong