Jump to content

Configurable product options don't set client product standard fields in DB/API


Lone

Recommended Posts

In our system we have setup a hosting product which has the following configurable options available for it as outlined in the setup article below under step 9:

 

http://docs.whmcs.com/Configurable_Package_Addon

 

* Disk Space (100MB, 200MB etc.)

* Bandwidth (2000MB, 3000MB etc.)

 

The options are working as expected when ordering and editing existing products for clients whereby we now have a drop down for the fields 'Disk Space' and 'Bandwidth'.

 

However, we cannot export these values via the export tool or access them easily via the API. Looking at the 'tblhosting' table shouldn't these options populate the below fields (which are also accessible via the API):

 

* disklimit

* bwlimit

 

We can access the values via the API but not via the above 'standard' fields and need to remember the ID for each possible option.

Link to comment
Share on other sites

Turns out these fields are only accessible via the API and won't be set to these columns in the table. However if you have the cron setup as below they will be updated from cPanel:

 

"The disklimit and bwlimit are only populated when you have the usage information being updated from your server. This is enabled in Setup -> Automation Settings under the "Miscellaneous" section."

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