- Posts: 1
- Thank you received: 0
Display event price in Category module
- tzaboath
- Topic Author
- Offline
- New Member
-
Less
More
13 years 5 months ago #12764
by tzaboath
Display event price in Category module was created by tzaboath
I would like to display the price of the events when using the mod_eb_events module. Also if I could substitute the cut off date for the date of the event that would be helpful too.
Thanks in advance!
Thanks in advance!
Please Log in or Create an account to join the conversation.
- lesliez
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
13 years 1 month ago - 13 years 1 month ago #14827
by lesliez
Replied by lesliez on topic Re: Display event price in Category module
Hello,
I need this too.
I need the price to be display in the module.
Can anyone from the support team help answer this? Please advice, thank you.
I need this too.
I need the price to be display in the module.
Can anyone from the support team help answer this? Please advice, thank you.
Last edit: 13 years 1 month ago by lesliez.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 1 month ago #14852
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Display event price in Category module
Hi ALL
I can guide you. However, you will need to know PHP / HTML code in order to do this modification. Here are the steps :
1. Open the file modules/mod_eb_events/mod_eb_events.php
2. Find the code below :
3. Change it to :
4. Open the file modules/mod_eb_events/tmpl/default.php, you can then find the code to display event information (in the loop command) and use the code below to display event price in the position you want :
Hope this help .
Tuan
I can guide you. However, you will need to know PHP / HTML code in order to do this modification. Here are the steps :
1. Open the file modules/mod_eb_events/mod_eb_events.php
2. Find the code below :
Code:
$sql = 'SELECT a.id, a.title, a.location_id, a.event_date, c.name AS location_name FROM #__eb_events AS a '
. ' LEFT JOIN #__eb_locations AS c '
. ' ON a.location_id = c.id '
. ' WHERE '.implode(' AND ', $where)
. ' ORDER BY a.event_date '
. ' LIMIT '.$numberEvents
;
3. Change it to :
Code:
$sql = 'SELECT a.id, a.title, a.location_id, a.event_date, a.individual_price, c.name AS location_name FROM #__eb_events AS a '
. ' LEFT JOIN #__eb_locations AS c '
. ' ON a.location_id = c.id '
. ' WHERE '.implode(' AND ', $where)
. ' ORDER BY a.event_date '
. ' LIMIT '.$numberEvents
;
4. Open the file modules/mod_eb_events/tmpl/default.php, you can then find the code to display event information (in the loop command) and use the code below to display event price in the position you want :
Code:
<?php echo $row->individual_price ; ?>
Hope this help .
Tuan
Please Log in or Create an account to join the conversation.
- lesliez
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
13 years 1 month ago #14862
by lesliez
Replied by lesliez on topic Re: Display event price in Category module
Thanks Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
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.