Need to alter code for coupons.

  • sharonob
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 9 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

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

More
11 years 9 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

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

  • sharonob
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 9 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

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

More
11 years 9 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

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