Jump to content

Custom Server Module: How to Set pricing on config options?


gary4gar

Recommended Posts

Hi,

We have a made a custom Server Module for automatic setup of dedicated servers.

 

We used WHMCS's config options to allow client to choose OS,IP,Control panel etc.

 

I was wondering is there is a way to setup pricing on these? Like I want to give out centos for free but want to charge extra for windows.

 

 

any idea on how this could be done?

Link to comment
Share on other sites

Hi,

Thank you for replying.

 

the configration options are defined in function modulename_ConfigOptions() in our server module

.

here OS,IP,Control panel are defined and returned in $configarray variable

 

 

Can you please tell how to set prices for them?

 

I would be thankful to you!

Link to comment
Share on other sites

There is confusion on the "ConfigOptions" function and the WHMCS "Configurable Options" setup.

 

You cannot set pricing within the ConfigOptions for your custom module. You should setup "Configurable Options" (which, during definition, you set the pricing) and then reference those options in your custom module so services are created correctly.

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