Jump to content
Adamm

How do I limit number of add-ons per product

Recommended Posts

So if we have 3 products in WHMCS e.g. Small Biz, Medium Biz, Large Biz

We want to limit "Small" to 4 x Add-ons, Medium to 8 x Add-ons and Large can have up to 16 Add-ons

Any way of doing this? via the client and the admin areas

Share this post


Link to post
Share on other sites
On 12/03/2019 at 11:42, Adamm said:

Any way of doing this? via the client and the admin areas

not from the settings - there's no built-in method to limit addons, or products for that matter, to a client... there was a free addon that could limit products to a client, but I can't think of a similar one for product addons.

from a technical point of view, you could write a hook (ShoppingCartValidateCheckout) to limit the number of addons in the cart.. though it may have to go further than that, e.g to check if they're logged in and upgrading, and then check how many active addons they already have.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines