Possible Bug in group registration?

  • President - PCASA
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 4 months ago #23776 by President - PCASA
Possible Bug in group registration? was created by President - PCASA
Hello,

I have an event which is for example's sake $100. Registered users are to get a $10 discount. If I enable group registration (e.g. husband and wife, husband is registered member, but wife is not) then the non-registered user also gets the discount.

Am I doing something wrong?



Regards

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

More
11 years 4 months ago #23814 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Possible Bug in group registration?
Hi

That's how the extension is designed to work. When you set member discount and a logged in user make group registration, all members from that group will get discount as well. If you only want that member get discount, you can edit code alitle :

1. Open the file components/com_eventbooking/views/confirmation/view.html.php

2. Find the code below :
Code:
$discount = $numberRegistrants*$event->discount ;

3. Change it to :

$discount = $event->discount ;

After that, it will work as expected.

Tuan

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

  • President - PCASA
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 4 months ago #23837 by President - PCASA
Replied by President - PCASA on topic Re: Possible Bug in group registration?
OK.
Thanks Tuan.

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

Moderators: Tuan Pham Ngoc