Expiry Date next to Discount Price on event detail
- James Riley
-
Topic Author
- Offline
- Platinum Member
-
Less
More
11 years 2 months ago #56475
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 :.
Expiry Date next to Discount Price on event detail was created by James Riley
Is the [ $item->discounted_price ] object on the event's [Event Properties] listing used for anything else other than displaying the active early-bird rate for the event?
If it is only for early-bird... How would one go about adding the early-bird cutoff date beside the price? I tried mucking around with the code, but couldn't figure out how, in your current code constructs, to grab the date variable (I'm a code tweaker/twister, not a real programmer). I suppose I could write my own sql query, but it would take me all day, and I'm guessing that the variable I need is sitting there within easy reach (or just a properly-written-line-or-two-of-code away).
Here's an example of what I would like to see:
PS: Would this be something useful to others too, and worth considering inclusion in the core code?
If it is only for early-bird... How would one go about adding the early-bird cutoff date beside the price? I tried mucking around with the code, but couldn't figure out how, in your current code constructs, to grab the date variable (I'm a code tweaker/twister, not a real programmer). I suppose I could write my own sql query, but it would take me all day, and I'm guessing that the variable I need is sitting there within easy reach (or just a properly-written-line-or-two-of-code away).
Here's an example of what I would like to see:
PS: Would this be something useful to others too, and worth considering inclusion in the core code?
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 2 months ago #56484
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Expiry Date next to Discount Price on event detail
Hi James
I agree that is useful. However, that discount contains:
1. Early Bird Discount
2. It might also contains members discount
So if we want to display the date like that, we can only display if member discount is zero. Will consider implementing it in the core. Thanks for pointing it out
Regards,
Tuan
I agree that is useful. However, that discount contains:
1. Early Bird Discount
2. It might also contains members discount
So if we want to display the date like that, we can only display if member discount is zero. Will consider implementing it in the core. Thanks for pointing it out
Regards,
Tuan
The following user(s) said Thank You: James Riley
Please Log in or Create an account to join the conversation.
- James Riley
-
Topic Author
- Offline
- Platinum Member
-
11 years 2 months ago #56503
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 Expiry Date next to Discount Price on event detail
Thanks for your reply and for considering adding this, Tuan. Seeing as it could contain 2 amounts summed together, the text could state something like "•member discount •early-bird discount (expiry date)", with one or the other being absent if =$0. That would clarify things nicely for the registrant.
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.
- James Riley
-
Topic Author
- Offline
- Platinum Member
-
11 years 2 months ago #56507
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 Expiry Date next to Discount Price on event detail
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.
- James Riley
-
Topic Author
- Offline
- Platinum Member
-
11 years 2 months ago #56546
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 Expiry Date next to Discount Price on event detail
Here is and example for html and CSS that seems to work for layout. Might save your designers a couple of minutes -- They can create classes / assign IDs however they want.
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.
- Michael Austermeier
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
11 years 4 weeks ago #59152
by Michael Austermeier
Replied by Michael Austermeier on topic Expiry Date next to Discount Price on event detail
Hi,
what can I do that I can see the expired Date? It´s really cool.
what can I do that I can see the expired Date? It´s really cool.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 4 weeks ago #59156
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Expiry Date next to Discount Price on event detail
Could you send me the link to the page?
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Michael Austermeier
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
11 years 4 weeks ago #59158
by Michael Austermeier
Replied by Michael Austermeier on topic Expiry Date next to Discount Price on event detail
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 4 weeks ago #59163
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Expiry Date next to Discount Price on event detail
You can try to get this file, unzip it, upload to components/com_eventbooking/views/common folder of your site and the early bird discount date should be displayed. You can customize it further by looking at line 215 of that file. I just made a small modification to the code so that you can customize it further to make it works as you want
Tuan
Tuan
The following user(s) said Thank You: James Riley
Please Log in or Create an account to join the conversation.
- Michael Austermeier
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
11 years 4 weeks ago #59169
by Michael Austermeier
Replied by Michael Austermeier on topic Expiry Date next to Discount Price on event detail
Whow! Your support ist awesome!!
Thank you very much
Thank you very much
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.