sufi Posted June 23, 2019 Share Posted June 23, 2019 Hello, I have activated product addon with monthly, yearly, biennial pricing. When a customer tries to order addon from "Services > View Available Addons (cart.php?gid=addons)" page, it shows only monthly pricing. And when click on "Order Now", it adds product to cart with 1 year term, and no option to update billing cycle (i.e. choosing monthly or biennial). How to fix this, so clients can choose billing cycle? Note: selected active product is under one year recurring cycle. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted July 3, 2019 Share Posted July 3, 2019 @sufi do you have the product and addon setup with Monthly, quarterly, semi-annually and annually pricing? 0 Quote Link to comment Share on other sites More sharing options...
sufi Posted July 3, 2019 Author Share Posted July 3, 2019 @WHMCS ChrisD yes, both the product and add-on (in this case sitelock defend) has Monthly, Annually, Biennially and Triennially pricing setup and activated. I did a bit more testing. It looks like add-on billing cycle only honors the billing cycle of active product. If the active product is activated with yearly cycle, add-on gets added to cart with only yearly term without any option to change cycle. And if active product is in monthly cycle, add-on gets added to cart with only monthly term without any option to change cycle. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted July 3, 2019 Share Posted July 3, 2019 Ah, yes, that would be the cause 0 Quote Link to comment Share on other sites More sharing options...
sufi Posted July 3, 2019 Author Share Posted July 3, 2019 13 minutes ago, WHMCS ChrisD said: Ah, yes, that would be the cause So, this is not any error? This is how it works? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 3, 2019 Share Posted July 3, 2019 4 hours ago, sufi said: So, this is not any error? This is how it works? welcome to using WHMCS - you will get used to that astonishment eventually! 🙂 5 hours ago, sufi said: I did a bit more testing. It looks like add-on billing cycle only honors the billing cycle of active product. If the active product is activated with yearly cycle, add-on gets added to cart with only yearly term without any option to change cycle. And if active product is in monthly cycle, add-on gets added to cart with only monthly term without any option to change cycle. it doesn't necessarily honour the cycle of the active product, it will just show the product addon with it's lowest available billing cycle (e.g, monthly, quarterly, semi, annual, bi & tri in that order)... if you have a monthly product, but the addon is available at semi or annual, it will show the semi price... this occurs whether you are ordering an addon for an existing product, or ordering a product with addon from scratch. the template is only passed that one minimum cycle price, so in order to get prices for other cycles, you'd need to get the pricing from the database - so that's not only a hook, but changes to the template would be required too if you intend to give the user a choice... though I can't recall anyone posting for this previously. I can remember eyebrows being raised in the v7.2 beta forums a couple of years ago (when product addons were given increased functionality)... but by WHMCS' own definition, this isn't a bug as they've designed the feature to work like this... so it may be badly designed, but not a bug. 🙄 0 Quote Link to comment Share on other sites More sharing options...
sufi Posted July 3, 2019 Author Share Posted July 3, 2019 7 hours ago, brian! said: welcome to using WHMCS - you will get used to that astonishment eventually! 🙂 it doesn't necessarily honour the cycle of the active product, it will just show the product addon with it's lowest available billing cycle (e.g, monthly, quarterly, semi, annual, bi & tri in that order)... if you have a monthly product, but the addon is available at semi or annual, it will show the semi price... this occurs whether you are ordering an addon for an existing product, or ordering a product with addon from scratch. the template is only passed that one minimum cycle price, so in order to get prices for other cycles, you'd need to get the pricing from the database - so that's not only a hook, but changes to the template would be required too if you intend to give the user a choice... though I can't recall anyone posting for this previously. I can remember eyebrows being raised in the v7.2 beta forums a couple of years ago (when product addons were given increased functionality)... but by WHMCS' own definition, this isn't a bug as they've designed the feature to work like this... so it may be badly designed, but not a bug. 🙄 Thanks for the insight. Yes, it shows the lowest cycle price on available add-on page, and when taken to cart, it automatically coverts to the billing cycle of the active product without any option to change billing cycle. Though, it's not a major concern for me at this moment, as most of my clients don't bother about add-ons, and I am not offering much, it has some problem in the designing for sure. If an active product is in yearly cycle and has only 3-4 months left, why would someone purchase an add-on paying for whole one year! Instead, ability for choosing monthly cycle (if set from admin) would have been the right choice. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.