Coupon applied multiple times

  • Eric Darling
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 1 month ago #78985 by Eric Darling
Coupon applied multiple times was created by Eric Darling
When using a coupon for $55 in group registrations, it is being applied for each group member. There are no fields to control how many times a coupon can be used in a given group. This shouldn't be the default behavior, as we could make a second coupon if we wanted different amounts. A coupon should only be discounting the explicit amount entered, not multiplied by the number of group members. Can this be changed?

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

More
8 years 1 month ago - 8 years 1 month ago #78987 by James Riley
Replied by James Riley on topic Coupon applied multiple times
To further the topic of changes within the coupon system, it would be nice to have the standard Individual / Group control over coupons too (sometimes I want coupons to ONLY apply to individual registration and not groups).

Both this and @Eric's request could all be implemented together into a drop-down within Coupon Manager -> Edit Coupon.
For example:
Code:
Apply Coupon to: -> each person registering (individual & each group member) -> each registration (individual & once per group) -> individual registration -> group registration - each member -> group registration - once per group

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: 8 years 1 month ago by James Riley.

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

  • Eric Darling
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 1 month ago #78988 by Eric Darling
Replied by Eric Darling on topic Coupon applied multiple times
That's a more robust and helpful solution, James, and the way it should work.

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

More
8 years 1 month ago #78994 by Roger D
Replied by Roger D on topic Coupon applied multiple times
100% agree with James

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

More
8 years 1 month ago #79015 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Coupon applied multiple times
OK. I will think about it and add support for it in future release. For now (urgent case), Eric can submit a support ticket sending us super admin account of your site so that we can make modification to the code to have the code work as expected

@James: There is a customer need paid phone call support. I have gave him your email, hope it is OK for you. He needs someone could guide him via phone call (I could not speak English very well). Since you know Events Booking very well, I suggest him to contact him.

If you are not OK with that, please let me know so that I won't do that again in the future

Tuan

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

  • Eric Darling
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 1 month ago #79017 by Eric Darling
Replied by Eric Darling on topic Coupon applied multiple times
I have created a ticket. Thank you for the support!

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

More
8 years 1 month ago #79034 by James Riley
Replied by James Riley on topic Coupon applied multiple times
@Tuan -- no problem. I will await an email from him. Could you email me details so that I have a heads-up on what the issue is?

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
8 years 1 month ago #79097 by Guy Bournival
Replied by Guy Bournival on topic Coupon applied multiple times
I got the same issue today!
I would like to have this patch too!

Guy

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

More
8 years 1 month ago #79348 by Dan Sajdowitz
Replied by Dan Sajdowitz on topic Coupon applied multiple times
I've had to work around this issue as well.

You can work around it yourself, but you will lose these changes when doing version upgrades, so keep that in mind.

Open /components/com_eventbooking/helper/helper.php

Locate public static function calculateGroupRegistrationFees in that file.

Change:
Code:
$discountAmount = $numberRegistrants * $discountRate;

To:
Code:
$discountAmount = $discountRate;

The big drawback here is that the system only allows for a single coupon to be applied. It would be great if you could apply a coupon for each registrant, which would also solve the original problem of the discount being applied to each registrant rather than once.
The following user(s) said Thank You: Tuan Pham Ngoc, Guy Bournival

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

More
7 years 11 months ago #82016 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Coupon applied multiple times
Hi

This improvement is now implemented into version 2.6.0 of Events Booking. See joomdonation.com/forum/events-booking-ge...-2-6-0-released.html

From this version, you won't have to customize the code anymore. Just set Apply to setting of the coupon to Each Registration and it will work as expected

Tuan
The following user(s) said Thank You: Dan Sajdowitz, Guy Bournival

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

Moderators: Tuan Pham Ngoc