Minature & group prices

  • Chuffart
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #42852 by Chuffart
Minature & group prices was created by Chuffart
Hi,

We would like to view the miniature bigger than default. When I set the parameter to 350x600 it stays as small as default.

Furthermore, we would see the group prices under the individual price in the category view, is it possible ?

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

More
10 years 1 month ago #42904 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Minature & group prices
Hi

We would like to view the miniature bigger than default. When I set the parameter to 350x600 it stays as small as default


=> Could you please explain more details ? I don't understand miniature .

Furthermore, we would see the group prices under the individual price in the category view, is it possible ?


Sorry it is not possible. If you want that, you will need to customize the code.

Regards,

Tuan

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

  • Chuffart
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #42924 by Chuffart
Replied by Chuffart on topic Minature & group prices
Sorry, it's thumb image in english ^^

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

More
10 years 1 month ago #42925 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Minature & group prices
Hi

Go to Events Booking -> Configuration, there are two config options :

1. Thumb Width

2. ThumbHeight

Please change it to the value you want. After that, re-upload the thumbnail for the event and it should be OK !

Tuan

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

  • Chuffart
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago - 10 years 1 month ago #42927 by Chuffart
Replied by Chuffart on topic Minature & group prices
I will pass for a fool.

It's what I exactly do yesterday, two times before post here.

I do it today and It works...

Thanks
(Resolved)
Last edit: 10 years 1 month ago by Chuffart.

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

More
10 years 1 month ago #42928 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Minature & group prices
Great. Thanks for confirming !

Tuan

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

  • Chuffart
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago - 10 years 1 month ago #43098 by Chuffart
Replied by Chuffart on topic Minature & group prices
Where can I find the file that must be edited for viewing group prices in category view ?

here is the code I insert into events_default.php after the code for individual price but it seems it does nothing. Not familiar with php.
Code:
if (count($event->rowGroupRates)) { $i = 0 ; foreach ($event->rowGroupRates as $rowRate) { ?> <tr class="eb-event-property"> <th class="eb-event-property-label"> <?php echo JText::_('EB_NUMBER_REGISTRANTS'); ?> <?php echo JText::_('EB_RATE_PERSON'); ?>(<?php echo $event->item->currency_symbol ? $event->item->currency_symbol : $event->config->currency_symbol; ?>) </th> <td class="eb-event-property-value"> <?php echo $rowRate->registrant_number ; ?> <?php echo number_format($rowRate->price, 2); ?> </td> </tr> <?php } }
Last edit: 10 years 1 month ago by Chuffart.

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

More
10 years 1 month ago #43128 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Minature & group prices
components/com_eventbooking/views/common/events_default.php

Good luck with this modification :).

Tuan

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

  • Chuffart
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #43142 by Chuffart
Replied by Chuffart on topic Minature & group prices
I based my code on yours, what's wrong with it, please? It does nothing on category view, as i said yesterday.

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

More
10 years 1 month ago #43144 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Minature & group prices
It is not simple like that. If you look at the file components/com_eventbooking/views/event/view.html.php, you will see that I have code for reading the data from #__eb_event_group_prices table, store it in $this->rowGroupRates = $rowGroupRates; so that on the file default.php you can get that value.

So in this case, you will need to write code to read the same data. If you know programming, I think you can complete the modification in about one hour or so. But if you don't know programming, you will need to find someone who know programming to write the code for you.

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc