- Posts: 257
- Thank you received: 34
Price not agreed... ...but not free!
- Calum
- Topic Author
- Offline
- Elite Member
-
Less
More
10 years 2 months ago - 10 years 2 months ago #75482
by Calum
Price not agreed... ...but not free! was created by Calum
Sometimes we have an event that is not going to be free - perhaps 6 months away that we haven't finalised the cost for. We know when it will be running, so we want to list it with a registration date in the future. But if we don't know the price it will show as free. We do have events that are free and would quite like to shout about that! Any thoughts on how we could achieve this.
In addition it would be very handy if I could have a way to have free split into two sub-types:
Any thoughts on if there would be a way to do this? i.e. can I edit a template and put in a check for registration type?
In addition it would be very handy if I could have a way to have free split into two sub-types:
| Free | Free | |
| To Public | To Members |
Any thoughts on if there would be a way to do this? i.e. can I edit a template and put in a check for registration type?
Last edit: 10 years 2 months ago by Calum.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 2 months ago #75527
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Price not agreed... ...but not free!
Yes. You can try to edit code and try to make this work. For event details page, the file need to be modified is components/com_eventbooking/view/event/tmpl/default.php
Try to pay with the code and you should be able to customize it to meet your need
Tuan
Try to pay with the code and you should be able to customize it to meet your need
Tuan
Please Log in or Create an account to join the conversation.
- Calum
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 257
- Thank you received: 34
10 years 2 months ago #75570
by Calum
Replied by Calum on topic Price not agreed... ...but not free!
I can probably botch this into the common/event_timeline.php file
However to do it "properly" I should be:
That would let me add some modified EB_FREE type text that says "FREE to members" or "FREE to public"
I'd imagine that would be useful for others. Could do with a setting in the config file to switch these too.
If I do all that future upgrades become a nightmare. Is there some way to contribute code back to the project e.g. via a git pull/push?
--
I haven't yet figured out how to do the other bit of events that we haven't set a price for, but assuming I can develop something - again could it be contributed back?
However to do it "properly" I should be:
- adding a new helper function
- adding a new language file entry or 3
- adding content to the event_timeline.php
That would let me add some modified EB_FREE type text that says "FREE to members" or "FREE to public"
I'd imagine that would be useful for others. Could do with a setting in the config file to switch these too.
If I do all that future upgrades become a nightmare. Is there some way to contribute code back to the project e.g. via a git pull/push?
--
I haven't yet figured out how to do the other bit of events that we haven't set a price for, but assuming I can develop something - again could it be contributed back?
Please Log in or Create an account to join the conversation.
- Calum
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 257
- Thank you received: 34
10 years 2 months ago #75571
by Calum
Replied by Calum on topic Price not agreed... ...but not free!
The logic will be another config setting which says "Show price if registration is disabled"calum polwart wrote: I haven't yet figured out how to do the other bit of events that we haven't set a price for, but assuming I can develop something - again could it be contributed back?
Please Log in or Create an account to join the conversation.
- Calum
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 257
- Thank you received: 34
10 years 1 month ago #75869
by Calum
Replied by Calum on topic Show that event is only FREE to members
This is the first of 3 enhancements I'm making:
OK - so I've created the code to add a line under the "FREE" box that says and event in only for members.
It has a new config setting in admin, plus language and a minor css tweak.
I've pout the changes into a GIT repository. Happy to provide details for a pull if you would like them.
Screenshot below shows how this looks in the timeline.
Have attached 5 patch files from git if you would prefer that (does anyone really use patch files?)
OK - so I've created the code to add a line under the "FREE" box that says and event in only for members.
It has a new config setting in admin, plus language and a minor css tweak.
I've pout the changes into a GIT repository. Happy to provide details for a pull if you would like them.
Screenshot below shows how this looks in the timeline.
Have attached 5 patch files from git if you would prefer that (does anyone really use patch files?)
Please Log in or Create an account to join the conversation.
- Calum
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 257
- Thank you received: 34
10 years 1 month ago #75893
by Calum
Replied by Calum on topic Registration Disabled - Price Not Set - Not Free
Todays work has included patching to add a config setting that will allow switching off of Price Display (free or otherwise) when Registration is set to disabled.
As above, this is in my git repository if you want it let me know and I'll sort a pull request.
Patch file available if wanted
As above, this is in my git repository if you want it let me know and I'll sort a pull request.
Patch file available if wanted
Please Log in or Create an account to join the conversation.
- Calum
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 257
- Thank you received: 34
10 years 1 month ago - 10 years 1 month ago #75897
by Calum
Replied by Calum on topic Multiple Categories for Custom Fields
The default configuration in EB is that when use Categories instead of Events for Custom Fields is that the Custom Fields are selected based on the Main Category for an event.
I want an easy way to recycle clusters of fields which might be applied across a number of events. So for instance I might have a set of sailing events that could be a Race, A Course or A Social Event. Race will want Sail Number. But only a Crewed Race would want Crew Names, Only a Handicap Race will want Class of Boat. But all Races would offer Camping, but for some events thats "free" (included in the entry fee!) for others its an optional extra. For social events there may be meal extras but no sail number, usually no camping but occassionally there may be. I want others to be able to select the fields and they won't have backend access. So the answer is to set up EB like this:
Then I've modified the code to allow a switch in config to enable multiple categories to be used for application to the fields, and modified a number of SQL lookups based on this.
Again its in my git repository if wanted, or I can create a patch file.
(Untested on Cart)
I want an easy way to recycle clusters of fields which might be applied across a number of events. So for instance I might have a set of sailing events that could be a Race, A Course or A Social Event. Race will want Sail Number. But only a Crewed Race would want Crew Names, Only a Handicap Race will want Class of Boat. But all Races would offer Camping, but for some events thats "free" (included in the entry fee!) for others its an optional extra. For social events there may be meal extras but no sail number, usually no camping but occassionally there may be. I want others to be able to select the fields and they won't have backend access. So the answer is to set up EB like this:
Code:
Categories:
Event-Categories
+--- Race
+--- Training
+--- Social
Field-Categories
+--- Camping
+--- Free Camping
+--- Paid Camping
+--- Meals
+--- Race Entry
+---Single Handed
+---Crewed
Again its in my git repository if wanted, or I can create a patch file.
(Untested on Cart)
Last edit: 10 years 1 month ago by Calum.
Please Log in or Create an account to join the conversation.
- James Riley
-
- Offline
- Platinum Member
-
10 years 1 month ago #75920
by James Riley
James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Replied by James Riley on topic Multiple Categories for Custom Fields
The idea of Field-Categories is great! Being able to group fields into some sort of category (or set or folder) is something that I've been thinking about asking for, but never quite got to posting it in the features request forum.
To further the idea a bit, it would be great to be able to 1) expand & collapse -and/or- 2) sort by -and/or- 3) show & hide; field-categories in the custom field view.
To further the idea a bit, it would be great to be able to 1) expand & collapse -and/or- 2) sort by -and/or- 3) show & hide; field-categories in the custom field view.
James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Please Log in or Create an account to join the conversation.
- Calum
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 257
- Thank you received: 34
10 years 1 month ago #75929
by Calum
Replied by Calum on topic Multiple Categories for Custom Fields
In the current release on the custom fields view (with Category instead of event set in config) there is a drop down to select category. Not quite nesting but you can see the nest on the drop down...
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 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.