Whmcs Module redudo...
 
Notifications
Clear all

Whmcs Module redudowngrading options qty handling

4 Posts
3 Users
0 Reactions
881 Views
Posts: 6
Topic starter
(@rolandch)
Active Member
Joined: 8 years ago

Hello

We have whmcs with the integration to SolidCP running, and discovered the issue with reducing qtys of option products.

Like you have shared mailboxes ordered, and configured in SolidCP.

If you reduce now the option qty in whmcs to 1 i see in SolidCP under sharedmailbox 5 of 1 with a red bar.

What is the handling if the user is underprovisioning a qty. According whmcss this should be handled by the SolidCP whmcs modul, more or less denying the reduced qty .

Can you please advise

3 Replies
Posts: 1967
Admin
(@m-tiggelaar)
Noble Member
Joined: 9 years ago

Hello,

In your description it does actually reduce the quantity to 1, it however does not delete any existing quantities that go over the limit.

I don't think we should automatically remove 4 random email accounts out of 5 when you just reduced the quantity.

Regards,

Marco

Reply
Posts: 6
Topic starter
(@rolandch)
Active Member
Joined: 8 years ago

Hello

its clear we can't delete the mailbox, but the transaction itselve on whmcs should be denied if the new requested qty is less that the already provisioned qty.

So the user would first to clean up the unneeded mailboxes before he can reduce the qty on the billing system.

Reply
Posts: 80
(@bogdan_k)
Member
Joined: 8 years ago

Hi,

right now I don't know how it can be denied logically, because the WHMCS module is only mapping the WHMCS addon/configurable Option to a SolidCP addon (and add/delete them from the hosting space in SolidCP).

In one SolidCP addon there can be tons of different quotas (depends on how many services you are providing and what you want to allow). So it's quite impossible to check all possible quotas from an addon via the API without bigger performance issues. For one addon all possible quotas need to be checked, and now imagine if you have 5 or 10 different configurable options in WHMCS/addons in SolidCP for one product. Then the plugin would need to check all possible quotas 5-10 times.

If you have any ideas how it could be managed without bigger performance issues, I'm totally open for a discussion :).

Best regards

Bogdan

Reply
Share: