Members Discount

  • Ian Hyde
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 7 months ago #102263 by Ian Hyde
Members Discount was created by Ian Hyde
Hi Tuan,

It seems that members discount for registration is tied to Joomla ACL but, like deposits, only through the back-end?

Thanks,
Ian

Best wishes,
Ian

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 7 months ago #102278 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Members Discount
Hi Ian

For members discount setting, it can be controlled from frontend event submission form, too. Could you please attach a screenshot of submit event form which you are seeing at the moment so that I can check it further?

Tuan

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

  • Ian Hyde
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 7 months ago - 8 years 7 months ago #102287 by Ian Hyde
Replied by Ian Hyde on topic Members Discount
Hi Tuan,

Don't have one, this is a virgin setup. You should know me. I'm experimenting.

Can't allow event organizer to modify discount. It will mess up the theory

Best wishes,
Ian
Last edit: 8 years 7 months ago by Ian Hyde.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 7 months ago #102292 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Members Discount
Ah

So you want to allow selecting user groups which will receive members discounts like in the backend?

Guess we can implement it

Tuan

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

  • Ian Hyde
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 7 months ago - 8 years 7 months ago #102305 by Ian Hyde
Replied by Ian Hyde on topic Members Discount
Hi Tuan,

OK! So that discount field is not the same as the one in the backend or it is but you just can't assign groups from the frontend?

I'll explain the concept.

Somebody buys a ticket and we take a deposit of 15% via PayPal. PayPal charge just under 4% handling which leave 11%. we retain that as our commission and the customer pays the balance on arrival.

We also run a membership system in conjunction where people pay $X.00 to join. Instead of retaining the 11% we apply a 10% (for example) discount for our members using our 11% retention. Ticket prices are normally in the region of US$100.00 per person and it is unusual for single people to attend, it's normally 2 or more so a discount would have a worthwhile value.

We can set this up via the backend using groups at the same time we are setting up deposits etc!. Obviously what we don't want is the event organizer to be able to change the discount amount but would still prefer not to start "hacking" the code.

Just to clarify one other point, our members would not belong to the registered group but a membership group below registered. People buying tickets through Event Booking would, logically, just become registered users

I've looked at the config but I can't see something like show discount in frontend?

Now, if that is not the same discount field that appears in the backend then all is well.

As a point of interest, in what order do you apply discounts and fees?

Best wishes,
Ian
Last edit: 8 years 7 months ago by Ian Hyde.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 7 months ago #102328 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Members Discount
The only difference between frontend and backend is that in the backend, you can select user groups which you want to give discount. And if you read documentation, you will see that you can give different user groups with different discount amount if needed

In the frontend, you cannot select user groups yet. So all users who has account on your site will receive members discount

Hope it is clear to you. I will add this select user groups option in the frontend on the next release maybe 3.0.3 of the extension

Tuan

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

  • Ian Hyde
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 7 months ago #102332 by Ian Hyde
Replied by Ian Hyde on topic Members Discount
Yes Tuan, I did read the documentation.

I would prefer organisers not to be able to change the discount amount via the frontend.

OK, Minor software hack. Just remove that field from the display.

Hopefully, in edit mode when you do your select you retrieve the entire data structure for that element. When you write it to the DB, anything that is not changed in "$memvar" remains unchanged and gets rewritten unchanged. In add mode that field is just written as a null. So the frontend user doesn't ever need to know ??.

Is that reasonable?

Thanks.

Best wishes,
Ian

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 7 months ago #102333 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Members Discount
Yes. You just need to edit the code to remove that fields/settings from frontend event submission form. The remaining, leave it to Events Booking to handle it

Tuan

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

  • Ian Hyde
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 7 months ago #102334 by Ian Hyde
Replied by Ian Hyde on topic Members Discount
Tuan, Absolutely brilliant.

I had it figured that you guys would do just what I would do. You are all so good - you're almost predictable. Nothing second rate with you fella's. I think that's why I love your components so much.

I don't like "hacking" other peoples code but I would rather do it myself so I know.

Give me a clue to save me a major search, where is that program, subroutine or whatever name you want to give it? otherwise I'll be starting with the language or ini files and drilling down from there.
That is such a small fix and we are doing it. We just need to remember it on the updates.

Again, Thanks.

Best wishes,
Ian

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 7 months ago #102341 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Members Discount
If you want to remove the discount settings part in frontend, please edit the code in the file components/com_eventbooking/view/event/form.php, find these lines of code and remove it

echo JHtml::_('bootstrap.addTab', 'event', 'discount-page', JText::_('EB_DISCOUNT_SETTING', true));
echo $this->loadTemplate('discount_settings');
echo JHtml::_('bootstrap.endTab');

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc