How can we improve WHMCS?

Share, discuss and vote for what you would like to see added to WHMCS

More parameters for OrderProductUpgradeOverride

  • Dennis Skov Hermannsen shared this idea 3 years ago
  • Developers
  • 2 Comments


I was thinking about modifying how WHMCS calculates the price for upgrades and downgrades as it's currently being done incorrectly (https://requests.whmcs.com/idea/change-how-upgradedowngrade-amount-works-when-changing-billing-cycle).

We currently have the following parameters to work with:
Array
(
[oldproductid] => 1
[oldproductname] => Pro V
[newproductid] => 1
[newproductname] => Pro V
[daysuntilrenewal] => 365
[totaldays] => 365
[newproductbillingcycle] => monthly
[price] => 277.42
[discount] => 0
[promoqualifies] =>
)

For my fix to work, I would need to have "oldproductbillingcycle", "oldprice" and generally stuff related to the current service - but there's currently no way of accessing that.

2 Comments

Login to post a comment.

By checking out besteonlinecasinosoesterreich.at, players can find comprehensive reviews and guides for selecting the best online gambling sites. Matellio offers advanced technological solutions, enhancing various sectors. In the world of gaming technology, innovations continue to improve gaming experiences, https://www.matellio.com/blog/quizlet-elearning-app-development/ offering immersive and interactive features for users around the globe.
To effectively modify how WHMCS calculates the price for upgrades and downgrades, especially in light of the issue you mentioned (related to changing billing cycles), it would be crucial to have access to additional parameters in the OrderProductUpgradeOverride hook. Specifically, the inclusion of parameters like oldproductbillingcycle and oldprice would allow for more accurate and flexible calculations.
https://tinyfishing.world