- Posts: 13
- Thank you received: 0
Trying to override Admin EventbookingModelCommonEvent store
- Jeff Dun
- Topic Author
- Offline
- New Member
-
Less
More
6 days 18 hours ago #172737
by Jeff Dun
Trying to override Admin EventbookingModelCommonEvent store was created by Jeff Dun
Hi,
i'm trying (unsuccessfully) to override the store function in administrator/components/com_eventbooking/model/common/event.php, as its not sending mail to superusers
if (MailHelper::isEmailAddress($eventCreator->email) && !$eventCreator->authorise('core.admin'))
EventbookingHelper::callOverridableHelperMethod('Mail', 'sendEventApprovedEmail', [$row, $config, $eventCreator]);
and i'd like it to!
I've tried creating a event.php under administrator/components/com_eventbooking/model/override but I haven't been able to get it to work.
What should i be overriding?
admin EventbookingModelEvent, or EventbookingModelCommonEvent (which the site model seems to extend?)
If its the common event, do i need to do it under a model/common/override folder?
Thanks
Jeff
i'm trying (unsuccessfully) to override the store function in administrator/components/com_eventbooking/model/common/event.php, as its not sending mail to superusers
if (MailHelper::isEmailAddress($eventCreator->email) && !$eventCreator->authorise('core.admin'))
EventbookingHelper::callOverridableHelperMethod('Mail', 'sendEventApprovedEmail', [$row, $config, $eventCreator]);
and i'd like it to!
I've tried creating a event.php under administrator/components/com_eventbooking/model/override but I haven't been able to get it to work.
What should i be overriding?
admin EventbookingModelEvent, or EventbookingModelCommonEvent (which the site model seems to extend?)
If its the common event, do i need to do it under a model/common/override folder?
Thanks
Jeff
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 days 17 hours ago #172738
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Trying to override Admin EventbookingModelCommonEvent store
Hi Jeff
You cannot override EventbookingModelCommonEvent . Please override the EventbookingModelEvent class instead and it will be fine
Regards,
Tuan
You cannot override EventbookingModelCommonEvent . Please override the EventbookingModelEvent class instead and it will be fine
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Jeff Dun
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
6 days 17 hours ago #172740
by Jeff Dun
Replied by Jeff Dun on topic Trying to override Admin EventbookingModelCommonEvent store
Got it working - had to override in Site rather than in admin.
Thanks
Jeff
Thanks
Jeff
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 days 6 hours ago #172746
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Trying to override Admin EventbookingModelCommonEvent store
Great. I'm glad you got it working
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.