Only Deposit shown under Payment information

  • Poul Melgaard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #150032 by Poul Melgaard
Replied by Poul Melgaard on topic Only Deposit shown under Payment information
In the signup form you can chose from dropdown to
- Pay full amount
or
- Pay only deposit
I just want "Pay only deposit" to show and hide "Pay full amount"
Just as in the examble above
Change
$paymentType = $input->post->getInt('payment_type', 0);
to
$paymentType = 1;
But the code and file structure have changed since the reply above 7 years ago
Attachments:

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

More
3 years 1 month ago #150045 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Only Deposit shown under Payment information
The code above is not valid anymore.

1. Go to Events Booking -> Configuration, set Default Payment Type config option to Deposit Payment

2. Open the file components/com_eventbooking/view/register/base.php , remove this line of code:
Code:
$options[] = HTMLHelper::_('select.option', 1, Text::_('EB_DEPOSIT_PAYMENT'));

Then try again. It should solve the issue

Tuan
The following user(s) said Thank You: Poul Melgaard

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

More
3 years 1 month ago #150046 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Only Deposit shown under Payment information
To make it easier for you to maintain this change without worrying that it will be lost when you update to future releases of the extension, I decided to implement the change using override. You can get the attached file, unzip it, upload the received html.php file to components/com_eventbooking/view/override/register folder, then check it again. It should work as expected and you won't have to worry that it won't be lost when you update to future releases of the extension

Regards,

Tuan
Attachments:
The following user(s) said Thank You: Poul Melgaard

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

More
3 years 3 weeks ago #150816 by Andrea
Hello Tuan,

I have implemented this ovverride, and it works perfectly for individual registrations.

However, in my installation, I've noticed that for group registrations, it still shows "complete payment" and "deposit payment". I would like it shows only deposit, via the ovveride.

Do you think it is an issue with my own installation, or can you replicate the problem on yours as well?

Thanks!

Kind Regards,

Andrea.

Visit my page! www.elementotango.it

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

More
3 years 3 weeks ago #150828 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Only Deposit shown under Payment information
That would require another override for group registration

But forgot about it. I just added a new config option to the extension to allow control this. You can:

1. Download latest package from My Downloads section, upgrade it to your site

2. Then go to Events Booking -> Configuration, set Enable Full Payment config option to No

Then it should work as expected. No override is needed anymore, you can remove override you created earlier

Tuan

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

More
3 years 3 weeks ago #150847 by Andrea
Hi Tuan,

as usual a 5-stars support from your side.

Downloaded, installed, configured. Now only the deposit payment is visible.

Thanks!

Kind Regards,

Visit my page! www.elementotango.it

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

More
3 years 3 weeks ago #150848 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Only Deposit shown under Payment information
Couldn't it be 10 stars :D ?

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

More
3 years 3 weeks ago #150849 by Andrea
LOL.

You're right. 10 stars for our Tuan for his great support and speed.

Thanks!!

:-)

Visit my page! www.elementotango.it

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

More
3 years 3 weeks ago #150850 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Only Deposit shown under Payment information
LOL :). Thanks

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

Moderators: Tuan Pham Ngoc