- Posts: 27
- Thank you received: 0
Need to alter code for coupons.
- sharonob
- Topic Author
- Offline
- Junior Member
-
Less
More
12 years 7 months ago #17443
by sharonob
Need to alter code for coupons. was created by sharonob
HI Tuan,
I need to do some integration with cbsubs to validate coupon codes and was looking for the coupon code logic. As far as the coupons table , I will map the valid_to to the expiration date, the valid_from to the subscription_date , then enter the plan_id as coupon code.
I was thinking of using view.html.php, unless there is a better place to add this code.
Thanks for your help, integrating all the 3rd party extensions is not for the fainthearted!
Cheers,
Sharon
I need to do some integration with cbsubs to validate coupon codes and was looking for the coupon code logic. As far as the coupons table , I will map the valid_to to the expiration date, the valid_from to the subscription_date , then enter the plan_id as coupon code.
I was thinking of using view.html.php, unless there is a better place to add this code.
Thanks for your help, integrating all the 3rd party extensions is not for the fainthearted!
Cheers,
Sharon
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 7 months ago #17464
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Need to alter code for coupons.
Hi Sharon
You can look at the file components/com_osmembership/controller.php, find the function subscription_confirmation, you will see the logic for validating coupon code .
Regards,
Tuan
You can look at the file components/com_osmembership/controller.php, find the function subscription_confirmation, you will see the logic for validating coupon code .
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- sharonob
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
12 years 7 months ago #17548
by sharonob
Replied by sharonob on topic Re: Need to alter code for coupons.
Hi Tuan,
Thanks for that info, but do you mean components/com_eventsbooking/controller.php?
Cheers,
Sharon
Thanks for that info, but do you mean components/com_eventsbooking/controller.php?
Cheers,
Sharon
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 7 months ago #17596
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Need to alter code for coupons.
Dear Sharon
I thought you are using OS Membership component. If you are using Events Booking , please look at components/com_eventbooking/controller.php to understand the logic of validating coupon .
Regards,
Tuan
I thought you are using OS Membership component. If you are using Events Booking , please look at components/com_eventbooking/controller.php to understand the logic of validating coupon .
Regards,
Tuan
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.