Jump to content

How do I limit number of add-ons per product


Adamm

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

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated