- Posts: 49
- Thank you received: 0
Member Discount Per Class/Custom Field
- Nicholas Flint
- Topic Author
- Offline
- Senior Member
-
Less
More
3 years 1 month ago #150115
by Nicholas Flint
Member Discount Per Class/Custom Field was created by Nicholas Flint
I have an event with three custom fields associated with it; First Class, Second Class and Third Class. Each of these fields is a radio with multiple values; each value is the same price. First class is $15, Second Class is $10 and Third Class is $10. I'm using the +15 in the field value to add the cost of the class to the registration.
Our club members get a $5 discount on each class; some register for one, some for two and some for all three classes. Is it possible to create a discount that is $5 x the number of classes selected?
Our club members get a $5 discount on each class; some register for one, some for two and some for all three classes. Is it possible to create a discount that is $5 x the number of classes selected?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 1 month ago #150126
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Member Discount Per Class/Custom Field
Sorry Nicholas. It is not possible to configure the extension to handle discount like that. For this, if it is really needed, the only solution is customizing code of the extension. However, we need:
- More detailed requirement
- Have to also charge you some fee for the development
Tuan
- More detailed requirement
- Have to also charge you some fee for the development
Tuan
Please Log in or Create an account to join the conversation.
- Nicholas Flint
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 49
- Thank you received: 0
3 years 1 month ago #150146
by Nicholas Flint
Replied by Nicholas Flint on topic Member Discount Per Class/Custom Field
I was able to get this to work ok. I created a 'Number of Classes' field that they select the number of classes. They are then shown that number of dependent fields. I created coupons for each number of fields and made them apply only to my club members. I then wrote some javascript to insert the correct coupon into the coupon field when the number of classes field changes. I had to edit one of the component files to include my javascript function in the onchange of the number of classes field.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 1 month ago #150147
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Member Discount Per Class/Custom Field
Great. I'm glad you come up with a solution. Please remember that in case you modify the code of the extension, please implement the change using override so that it won't be lost when you update to future releases
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Nicholas Flint
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 49
- Thank you received: 0
3 years 1 month ago - 3 years 1 month ago #150151
by Nicholas Flint
Replied by Nicholas Flint on topic Member Discount Per Class/Custom Field
Override is new to me. The file I changed is administrator\components\com_eventbooking\libraries\rad\form
form.php
I returned it to original state and tried my edited copy in these folders:
templates\purity_iii\html\administrator\components\com_eventbooking\libraries\rad\form
templates\purity_iii\html\components\com_eventbooking\libraries\rad\form
administrator\templates\purity_iii\html\com_eventbooking\libraries
None of those worked. Are you able to tell me where I should put that file to override it correctly?
Thank you!
form.php
I returned it to original state and tried my edited copy in these folders:
templates\purity_iii\html\administrator\components\com_eventbooking\libraries\rad\form
templates\purity_iii\html\components\com_eventbooking\libraries\rad\form
administrator\templates\purity_iii\html\com_eventbooking\libraries
None of those worked. Are you able to tell me where I should put that file to override it correctly?
Thank you!
Last edit: 3 years 1 month ago by Nicholas Flint.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 1 month ago #150166
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Member Discount Per Class/Custom Field
Hmm
Sadly, the file is not overridable. So you will need to keep the change and re-upload the file each time you update to future releases of Membership Pro
Regards,
Tuan
Sadly, the file is not overridable. So you will need to keep the change and re-upload the file each time you update to future releases of Membership Pro
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.