Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Early Bird + Coupon codes

  • WebSeo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 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????

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

More
10 years 3 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

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

  • WebSeo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 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?

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

  • WebSeo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 months ago - 10 years 3 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:
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: 10 years 3 months ago by WebSeo.

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

More
10 years 3 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

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

Moderators: Tuan Pham Ngoc