Apply currency discount to multiple registration

  • Laus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 3 months ago #13486 by Laus
At present when applying a member discount there are 2 option currency (£ in my site) or Percetage (%)

If you use percentage discount this applies the discount to all tickets bought, but if you apply the currency discount it will only take that discount off the total bill rather than applying in to each ticket booked.

How can I change this so that the currency discount is applied to all tickets booked please?

Thx

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

More
13 years 3 months ago #13549 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Apply currency discount to multiple registration
Hi Laus

Could you please explain more detail ? You are talking about Group Registration ?

Tuan

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

More
13 years 3 months ago #13562 by johnibiz
I have the same question - I would like to apply a fixed discount (say £5) for each ticket purchased both in single and multiple registrations - I could do this with a percentage but it will give me an odd percentage as my tickets are £65 - is there a way that the discount amount can be removed from each registration.

Rgds

John

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

  • Laus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 3 months ago - 13 years 3 months ago #13661 by Laus
No I am not talking about group registration as group registration applies to all applicants.

I am talking about member discount, which is only applied to members.

If I were to apply a discount of £10 to the first ticket and then put a £10 discount on a group booking over 2, this would have the effect of giving non-members the same discount as members.

I would like the £10 discount to apply only to members and multiplied by the number of places booked.

Thx for your support :)
Last edit: 13 years 3 months ago by Laus.

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

More
13 years 3 months ago #13692 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Apply currency discount to multiple registration
Hi Laus

I am sorry but I still don't understand what you want to setup here. Maybe we should have a quick chat on Skype about this problem ? Please see my contact information at joomdonation.com/index.php?option=com_co...ntact&id=1&Itemid=18

Regards,

Tuan

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

  • Laus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 3 months ago #13707 by Laus
Sorry no skype here.

When I submit event and set price it looks like this:


Which looks like this on details view:


If I add 4 tickets/registrants to the cart and go to checkout, the member discount of £10 is only applied to the whole transaction - not to each ticket:


The discount should be £40 (quantity x discount), but it is only applying a discount of £10.

How do I make it multiply the discount x quantity?

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

More
13 years 3 months ago #13738 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Apply currency discount to multiple registration
@Laus : I understand what you want now. Please get the file below, unzip it, upload to components/com_eventbooking/helper folder of your site. After that, it will work as expected !

Regards,

Tuan

Attachment os_cart.zip not found

Attachments:

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

  • Laus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 3 months ago #13811 by Laus
That is great Tuan, thank you very much.

Perhaps we can catch up on YIM about customizations today?

Many Thanks!

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

More
13 years 3 months ago #13814 by johnibiz
Does this apply to early bird discount too ?

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

  • Laus
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 3 months ago #13816 by Laus
Hi Johnibiz,

looking at the code I would say that it does NOT apply the same formula to early bird.

Tuan may confirm but I believe you need to change the line:
Code:
$registrantDiscount += $event->early_bird_discount_amount ;

to:
Code:
$registrantDiscount += $event->quantity*$event->early_bird_discount_amount ;

I have not tested this, so please use use at your discretion.

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

Moderators: Tuan Pham Ngoc