Reduce registration, showing Group billing step

More
9 years 5 months ago #89745 by 142
Hi !

I put the Reduce registration process setting to "Yes" but it still shows the Group billing step.

(It's not a free event and I don't understand if it's working ony for free events. If it's the case, can you help me delete this billing step for groups on paid events ?)

Can you help me please ?

Thank you !

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 5 months ago #89788 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Reduce registration, showing Group billing step
Hi

You will need to edit code if you want to remove billing step:

1. Open the file components/com_eventbooking/helper/helper.php

2. Find this method:

showBillingStep

3. Add the command below to the begining :

return false;

Then it should work as expected. Could you please check?

Tuan

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

More
9 years 4 months ago #89816 by James Riley
Replied by James Riley on topic Reduce registration, showing Group billing step
I've been playing with the new Override functionality that was added in with EB 2.10.2 and think that I've finally got it all figured out.
If you wanted to build a permanent override for this that won't be lost when you upgrade:
1) create a new folder and file: components/com_eventbooking/helper/override/helper.php
2) and place the following code into it
Code:
<?php // no direct access defined('_JEXEC') or die; // disable group billing step class EventbookingHelperOverrideHelper extends EventbookingHelper { public static function showBillingStep($eventId) {return(false);} } ?>

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.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 4 months ago #89847 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Reduce registration, showing Group billing step
Hi James

Unfortunately , this is actually a static method and override is not supported (not like in Controllers, Models or Views classes )

Tuan

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 4 months ago #89848 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Reduce registration, showing Group billing step
Maybe we can alter EB code abit to support overriding that method. But that must be in the next release of Events Booking, for now, modify code is needed

Tuan

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

More
9 years 4 months ago #89880 by James Riley
Replied by James Riley on topic Reduce registration, showing Group billing step

Tuan Pham Ngoc wrote: Unfortunately , this is actually a static method and override is not supported (not like in Controllers, Models or Views classes )

Just when I think I've got it finally figured out ;) My knowledge of classes and functions is really pretty elementary.
Sorry if my post caused confusion, @142.

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.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 4 months ago #89915 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Reduce registration, showing Group billing step
No problem James. Thanks for your help

Tuan

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

Moderators: Tuan Pham Ngoc