Hide Group Rate Table

  • Malinthas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #7599 by Malinthas
Hide Group Rate Table was created by Malinthas
I need a way to hide the Group Rate table. I have an event with an annoying pricing scheme ($20 for the first two, $15 each additional person) and the only way I could think of to calculate this easily in the system was to divide the total in the group rate. As a result, the rate per person ends up being a bit odd; people see $16.43 per person when registering six people, for example. We're getting calls on this, because while the average Jane gets the "two for $20, add $15 for each after that", the fee table is causing them migraines.

Is there any simple way to hide this table? If not, can anyone point me to the chunk of code I would need to alter/add/delete/comment out to accomplish it? Thanks a million,

~Malinthas the Yodeling Mage

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

More
13 years 11 months ago #9339 by ottomek
Replied by ottomek on topic Re: Hide Group Rate Table
Yes I would like to do this too. Did you find/get a solution?

thanks,
John

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

More
13 years 11 months ago #9355 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Hide Group Rate Table
Hi all

The code to display the group rate table is located in components/com_eventbooking/views/event/tmpl/default.php. Just comment out the code below and the table will be hided :
Code:
<div id="detail_right"> <?php if (count($this->rowGroupRates)) { ?> <h3> <?php echo JText::_('EB_GROUP_RATE'); ?> </h3> <table> <tr> <th class="sectiontableheader eb_no_column"> <?php echo JText::_('EB_NO'); ?> </th> <th class="sectiontableheader eb_number_registrant_column"> <?php echo JText::_('EB_NUMBER_REGISTRANTS'); ?> </th> <th class="sectiontableheader eb_rate_column"> <?php echo JText::_('EB_RATE_PERSON'); ?>(<?php echo $this->config->currency_symbol; ?>) </th> </tr> <?php $i = 0 ; foreach ($this->rowGroupRates as $rowRate) { ?> <tr> <td class="eb_no_column"> <?php echo ++$i; ?> </td> <td class="eb_number_registrant_column"> <?php echo $rowRate->registrant_number ; ?> </td> <td class="eb_rate_column"> <?php echo number_format($rowRate->price, 2); ?> </td> </tr> <?php } ?> </table> <?php } ?> </div> </div>

Regards,

Tuan

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

More
13 years 11 months ago #9381 by ottomek
Replied by ottomek on topic Re: Hide Group Rate Table
Great, thank you. This worked good.

I also commented out the Group Rate table in the plugins/content/ebevent/default.php so this Group Rate table wouldn't show up when I used the shortcode of {ebevent 1}

John

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

More
13 years 11 months ago #9383 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Hide Group Rate Table
Ah, Yes . Thanks for giving the information. It might be helpfull for other users !

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc