- Posts: 18
- Thank you received: 0
Early Bird + Coupon codes
- WebSeo
- Topic Author
- Offline
- New Member
-
Less
More
9 years 8 months ago #83947
by WebSeo
Early Bird + Coupon codes was created by WebSeo
we are selling courses and have enabled the Early Bird function which gives a 30% disocunt
we have some coupon codes which as well give a 30% disocunt.
the problem is that if the Coupon code is used on an early bird price the two discounts ar summed together, totaling 60%, which is really too much !!!!
is there a way to calucate the coupon code discont on FULL price and not on the Early Bird price????
we have some coupon codes which as well give a 30% disocunt.
the problem is that if the Coupon code is used on an early bird price the two discounts ar summed together, totaling 60%, which is really too much !!!!
is there a way to calucate the coupon code discont on FULL price and not on the Early Bird price????
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 8 months ago #83963
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Early Bird + Coupon codes
Some code modification will be needed. You can submit a support ticket sending us super admin account of your site and the link to registration page
I will help modifying code for you
Tuan
I will help modifying code for you
Tuan
Please Log in or Create an account to join the conversation.
- WebSeo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
9 years 8 months ago #83978
by WebSeo
Replied by WebSeo on topic Early Bird + Coupon codes
thanks, I have already heavily modified the component and I could make the hack myself if you instruct me briefly on how to do it.
what php file/s would be needed? which variable?
what php file/s would be needed? which variable?
Please Log in or Create an account to join the conversation.
- WebSeo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
9 years 8 months ago - 9 years 8 months ago #83979
by WebSeo
Replied by WebSeo on topic Early Bird + Coupon codes
I think I managed to hack the code, i modified the function which calculates the Early Bird discount in helper\os_cart.php
I have simply added an IF clause:
just before the calculation of the Early Bird discount . This way Early bird is not applied if the user enters a coupon code...
I have simply added an IF clause:
Code:
if (!isset($_SESSION['coupon_id']))
just before the calculation of the Early Bird discount . This way Early bird is not applied if the user enters a coupon code...
Last edit: 9 years 8 months ago by WebSeo.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 8 months ago #84002
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Early Bird + Coupon codes
Glad to see that you figured it out.
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 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.