Display event price in Category module

  • tzaboath
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 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!

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

More
12 years 1 month ago - 12 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.
Last edit: 12 years 1 month ago by lesliez.

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

More
12 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 :
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.

More
12 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