- Posts: 82
- Thank you received: 0
Valid coupon code & times used
- bumble
- Topic Author
- Offline
- Premium Member
Less
More
1 year 6 months ago - 1 year 6 months ago #159570
by bumble
Valid coupon code & times used was created by bumble
1. How we ensure that the coupon code that the user enters is a valid code?
Currently if the coupon code is not valid, the form can still be submitted but the discount is just not applied.
I have added the custom code to make the coupon code a required field.
Now I would like to ensure that the coupon code is valid, else the form cannot be submitted.
2. Limit the number of times a coupon is used
Can I confirm what is the difference in these fields:
Times:
Times Used:
Max Usages Per User:
I would like to set it such that the coupon code can only be used once.
Waiting for your reply. Thank you!
Currently if the coupon code is not valid, the form can still be submitted but the discount is just not applied.
I have added the custom code to make the coupon code a required field.
Now I would like to ensure that the coupon code is valid, else the form cannot be submitted.
2. Limit the number of times a coupon is used
Can I confirm what is the difference in these fields:
Times:
Times Used:
Max Usages Per User:
I would like to set it such that the coupon code can only be used once.
Waiting for your reply. Thank you!
Last edit: 1 year 6 months ago by bumble.
Please Log in or Create an account to join the conversation.
- bumble
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 82
- Thank you received: 0
1 year 6 months ago - 1 year 6 months ago #159572
by bumble
Replied by bumble on topic Valid coupon code & times used
Example:
Coupon code has been setup to be used for Event 1 & Event 2.
This coupon code can only be used once.
User registers for Event 1 and uses the coupon code.
User is able to submit the registration form with the discount applied.
Same user registers for Event 2 and uses the same coupon code.
User is still able to submit the registration form, but without the discount applied.
> User should NOT be able to submit this registration form.
The aim is to prevent the user from submitting the registration form again, if the coupon code has already been used.
Before submitting the form, can the system check if the coupon code is still valid for use?
If it is not valid, the registration form should not be able to be submitted.
Valid coupons check: Correct code & if hit max usage times.
Coupon code has been setup to be used for Event 1 & Event 2.
This coupon code can only be used once.
User registers for Event 1 and uses the coupon code.
User is able to submit the registration form with the discount applied.
Same user registers for Event 2 and uses the same coupon code.
User is still able to submit the registration form, but without the discount applied.
> User should NOT be able to submit this registration form.
The aim is to prevent the user from submitting the registration form again, if the coupon code has already been used.
Before submitting the form, can the system check if the coupon code is still valid for use?
If it is not valid, the registration form should not be able to be submitted.
Valid coupons check: Correct code & if hit max usage times.
Last edit: 1 year 6 months ago by bumble.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 6 months ago #159575
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Valid coupon code & times used
Hello
1. The coupon code is optional. If user enters a valid coupon code, he will receive discount for their registration. If he does not enter valid coupon code or enter a wrong coupon code, the registration is still allowed. But he won't receive discount for registration
So we do not support required coupon code.
2. About these fields :
- Times : Control total number of times the coupon code can be used for all users.
- Times Used : Just statistic data shows how many times that coupon code has been used by registrants so far
- Max Usages Per User: Control how many times the coupon code can be used by each user. For example, if you set that to 1, each user can only use that coupon code for one time only
Hope my answers are clear to you
Regards,
Tuan
1. The coupon code is optional. If user enters a valid coupon code, he will receive discount for their registration. If he does not enter valid coupon code or enter a wrong coupon code, the registration is still allowed. But he won't receive discount for registration
So we do not support required coupon code.
2. About these fields :
- Times : Control total number of times the coupon code can be used for all users.
- Times Used : Just statistic data shows how many times that coupon code has been used by registrants so far
- Max Usages Per User: Control how many times the coupon code can be used by each user. For example, if you set that to 1, each user can only use that coupon code for one time only
Hope my answers are clear to you
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- bumble
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 82
- Thank you received: 0
1 year 6 months ago #159576
by bumble
Replied by bumble on topic Valid coupon code & times used
Hi Tuan, thank you very much for your explanation.
I would like to make sure that the coupon code can only be used certain number of times (X times) and it has to be a valid code.
Where a valid code means: Correct code & has not hit max usage.
So when users enter the code more times than max usage (X+1 times), the discount cannot be applied, therefore the form should not be able go through.
A message appears: "Invalid coupon code (max use hit)"
In summary, I would the Event Registration form to work like this:
Correct coupon code & has not hit max usage:
Form can be submitted.
- RESOLVED, system already works like this.
No coupon code:
Form cannot be submitted.
Message appears: "This field is required"
- RESOLVED with custom code that you provided #158609
Wrong coupon code:
Form cannot be submitted.
Message appears: "The coupon you entered is invalid"
- RESOLVED, system already works like this.
Coupon code max usage hit:
Form cannot be submitted.
Message appears: "Invalid coupon code (max use hit)"
- So this is the only one that needs to be resolved.
Can please let me know how this can be achieved.
Thank you!
I would like to make sure that the coupon code can only be used certain number of times (X times) and it has to be a valid code.
Where a valid code means: Correct code & has not hit max usage.
So when users enter the code more times than max usage (X+1 times), the discount cannot be applied, therefore the form should not be able go through.
A message appears: "Invalid coupon code (max use hit)"
In summary, I would the Event Registration form to work like this:
Correct coupon code & has not hit max usage:
Form can be submitted.
- RESOLVED, system already works like this.
No coupon code:
Form cannot be submitted.
Message appears: "This field is required"
- RESOLVED with custom code that you provided #158609
Wrong coupon code:
Form cannot be submitted.
Message appears: "The coupon you entered is invalid"
- RESOLVED, system already works like this.
Coupon code max usage hit:
Form cannot be submitted.
Message appears: "Invalid coupon code (max use hit)"
- So this is the only one that needs to be resolved.
Can please let me know how this can be achieved.
Thank you!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 6 months ago #159577
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Valid coupon code & times used
As I said, coupon code is optional, so the system does not prevent the form from being submitted if the coupon code is not valid
If you want to prevent the registration processed when a coupon code is used, you will need to perform customization to perform this validation
Regards,
Tuan
If you want to prevent the registration processed when a coupon code is used, you will need to perform customization to perform this validation
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- bumble
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 82
- Thank you received: 0
1 year 6 months ago #159578
by bumble
Replied by bumble on topic Valid coupon code & times used
Ok noted. I am ok to do the customisation.
Please let me know what codes to change for the validation. Thank you!
Please let me know what codes to change for the validation. Thank you!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 6 months ago #159579
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Valid coupon code & times used
What type of registration you are using on your site? Individual / Group Registration Or shopping cart ?
Please Log in or Create an account to join the conversation.
- bumble
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 82
- Thank you received: 0
1 year 6 months ago - 1 year 6 months ago #159580
by bumble
Replied by bumble on topic Valid coupon code & times used
I will need this for both Individual & Group Registration.
Last edit: 1 year 6 months ago by bumble.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 6 months ago #159581
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Valid coupon code & times used
It will cost you 25$ for implementing this validation for both registration types
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- bumble
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 82
- Thank you received: 0
1 year 6 months ago #159582
by bumble
Replied by bumble on topic Valid coupon code & times used
Ok agreed. How should we proceed?
Please Log in or Create an account to join the conversation.
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.