Remove payment fields in case of a free event

  • Paul Heffels
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #56016 by Paul Heffels
Remove payment fields in case of a free event was created by Paul Heffels
It would be nice if payment information is removed from the registration history screen in case of free events. Currently it shows the amount (0) and payment status (Paid) but that doesn't add anything. Instead it looks a bit strange and over-obvious.

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

More
9 years 3 months ago #56056 by James Riley
Replied by James Riley on topic Remove payment fields in case of a free event
While you wait for a feature addition, you could make the change yourself to the code on your server (you'll just have to reapply it after every Event Booking update that Tuan publishes).

Edit the file /administrator/components/com_eventbooking/view/registrants/tmpl/default.php
STEP1:
At around line 210, look for:
Code:
<?php echo EventbookingHelper::formatAmount($row->amount, $this->config) ; ?>
and replace with:
Code:
<?php if ($row->amount>0) {echo EventbookingHelper::formatAmount($row->amount, $this->config);}else{echo 'FREE'; $freeEvent=1;} ?>

STEP 2:
Next, look around line 220 for:
Code:
echo JText::_('EB_FULL_PAYMENT');
and replace with:
Code:
if ($row->amount>0) {echo JText::_('EB_FULL_PAYMENT');} else {echo 'FREE';}

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 :.
The following user(s) said Thank You: zesharck, Paul Heffels

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

More
9 years 3 months ago #56311 by zesharck
Replied by zesharck on topic Remove payment fields in case of a free event
Hi all

James thx for your help, this is simple but very important for free events!! ;)
The following user(s) said Thank You: James Riley

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

More
9 years 3 months ago #56314 by James Riley
Replied by James Riley on topic Remove payment fields in case of a free event
You're welcome :)
I've been making a bunch of tweaks to the Event Booking code on my own website, and figured I could come up with a quick work-around to your issue. I agree that seeing what you want and expect to see at a quick glance in the backend makes for a far better experience.

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 :.
The following user(s) said Thank You: zesharck

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

More
9 years 3 months ago #56383 by zesharck
Replied by zesharck on topic Remove payment fields in case of a free event
yes you're right,
Well one more question..... in your "bunch of tweaks" dont you have something more sexy to present an event in front-end ?

I mean that the default design registration for a customer is 'sad'. Tuan did (do) a very good work with the options that are allowed in backend, this allow a lot of possibilities, but the design in frontend is too "basic". :(

just have a look here: joomdonationdemo.com/eventbooking/joomla...ividual-registration

for my events I usually have a lot of options, I mean the list could be very long and maybe boring for a guy who wants to register.


So James (and maybe Tuan) do you have something for me in your hat ??

thx :)

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

More
9 years 3 months ago - 9 years 3 months ago #56385 by James Riley
Replied by James Riley on topic Remove payment fields in case of a free event
Tuan & team have done a marvelous job providing CSS-addressable classes and ids around everything in the forms. (The few places where there has not been a class/ID applied, I've been able to add via the language file by including my own <div> blocks surrounding the text). What it comes down to, is that you NEED TO KNOW CSS STYLES in order to make the forms look how you want them to. Then you can make the forms as nice or as bland as you want.
Here's an example of the code from the example page you provided in your post. The IDs can be styled individually and the classes can be styled site-wide.

I've also found that there are some text boxes that will accept raw javascript (which you can use for tweaking some things too), or you can use NoNumber Sourcer to allow js in other locations that normally strip js.

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 :.
Last edit: 9 years 3 months ago by James Riley. Reason: error in the image link -- had a stray " in the url
The following user(s) said Thank You: zesharck

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

More
9 years 3 months ago #56579 by zesharck
Replied by zesharck on topic Remove payment fields in case of a free event
Ok James, thx for your reply.
Well my biggest pb seems to be that I dont know enought CSS to do changes in my forms :pinch: Shame on me!

Have you got a link to show me what you did with the default forms ?

thx!

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

More
9 years 2 months ago #56847 by James Riley
Replied by James Riley on topic Remove payment fields in case of a free event
I really have not done anything with the form itself yet, so I've got nothing to show off :( Still the same old default form.
What did you want to do with your form? Alternating row background colors? Different font or text color? Different spacing? Maybe I can help you tweak your css a bit??

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.

More
9 years 2 months ago #57036 by zesharck
Replied by zesharck on topic Remove payment fields in case of a free event
ok ok no pb James ;)

well it would be great ! I think something like this could be more "sexy" :



instead of :




heres is my website ( in test for the moment...)
www.evenements-sportifs.fr

as you can see, even my events pages are not nice at all :blush:
for example: evenements-sportifs.fr/les-evenements/cy.../36-la-coublevitaine
Attachments:

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

Moderators: Tuan Pham Ngoc