Skip to content
Shahid Malla

WHMCS Configurable Options: Types, Pricing, Modules and Upgrades

WHMCS configurable options end to end, from the current docs: groups, the four types, per-cycle pricing, what a provisioning module receives, the upgrade math, and the API parameters that move an option.

· Published · Updated · 12 min read · 9 steps
WHMCS Configurable Options: Types, Pricing, Modules and Upgrades

WHMCS configurable options are priced choices on a product, such as disk space, an operating system or a server location, that the customer picks while ordering. You build them in groups at Configuration > System Settings > Configurable Options, assign each group to products, price every sub-option on every enabled billing cycle, and the provisioning module reads the choices from $params['configoptions'] by option name.

A configurable option is a variable attached to a product that alters that product's price. It lives in a configurable option group, which you apply to one or more products, and WHMCS bills the chosen value inside the product line on the product's own cycle. That one rule, a priced choice billed as part of one item, separates it from a product addon and from a product custom field.

Every path, field name, API parameter and hook below was checked against the WHMCS 9.1 documentation and developers.whmcs.com on 25 November 2026. The documentation home page lists 9.1 as General Availability with a most recent release of 23 November 2026, and 9.0 and 8.13 on Long-Term Support with anticipated end-of-life dates of 31 December 2026 and 31 January 2027. My order form template guide covers how the cart looks; my provisioning module guide covers the rest of the module.

Five-step WHMCS configurable options workflow: sort the ask, build the group, price every cycle, wire the module to read options by name, then test upgrades on staging
The order I set configurable options up in, which is the order of this guide. Source: shahidmalla.com.

In words: decide whether the choice is really an option, create the group and select its products, price every sub-option on every enabled cycle, make the module read the values by name, then order, upgrade and downgrade each sub-option on staging.

Which product choices belong in a configurable option?

A choice belongs here when it changes the price of one item billed with the product, on the product's cycle. The Product Configuration Options page gives three conditions: a choice for a single item, a total billed as one item, and a cycle matching the product's. Disk space and the operating system are its examples. A product addon is the reverse, a one-time service chosen independently and able to bill on its own cycle, with SSL certificates and dedicated IPs as its examples.

Configurable optionProduct addonProduct custom field
Changes the priceYes, inside the product lineYes, as its own lineNo
Billing cycleAlways the product'sCan be its ownNot applicable
Input typesDropdown, Radio, Yes/No, QuantitySelected or not, with a quantityText Box, Link/URL, Password, Drop Down, Checkbox, Text Area
Change after the orderAn upgrade order, once enabledOrdered later, own due dateClients view but cannot edit
Decision flow for a WHMCS product choice: delivery information goes in a custom field, separately billed items are addons, dependent lists need one combined option, priced choices are configurable options
How I decide where a product choice belongs in WHMCS. Source: shahidmalla.com; the option and addon tests come from the WHMCS Product Configuration Options page.

In words: an answer you need only to deliver the service, such as an SSH public key, is a product custom field. Something billed separately on its own cycle is a product addon. A list that depends on another list needs one combined option or code. A choice that changes the price or the resources allocated is a configurable option, and a choice that changes neither belongs in the product description.

How do you create a configurable option group and attach it to products?

Create the group first, because every option has to live in one. The Configurable Options page gives this order.

  1. At Configuration > System Settings > Configurable Options, click Create a New Group.
  2. Enter a name and description. Only admins see them.
  3. Choose the products the group applies to and click Save Changes.
  4. Click the group's edit icon, then Add New Configurable Option.
  5. Enter the option name, choose the type, enter the first sub-option and save. The pricing fields appear.
  6. Price every cycle the product has enabled. For Dropdown and Radio, click Add Option for each further sub-option and save after each one, because a sub-option only gets pricing fields after a reload.
  7. Click Close Window. Back on the group, set Sort Order, tick Hidden on anything retired, and save.

The product side is the Configurable Options tab at Configuration > System Settings > Products/Services, which also decides whether options show on the order form or in the Client Area. One setting blocks them outright: the Products page says a product with Allow Multiple Quantities enabled cannot require additional configuration such as custom fields or configurable options. For per-unit pricing plus a choice, use a Quantity option and leave that setting on No.

Which configurable option type should each choice use?

There are four, and none accepts free text, so a typed answer has to be a custom field.

TypeWhat the customer seesDocumented behavior
DropdownA menu, as many sub-options as you addRecommended for many items in minimal space.
RadioRadio buttons, as many as you addFor larger lists, use Dropdown instead.
Yes/NoA checkbox, one sub-optionBoth yes and no are valid, and validation accepts the unchecked state even when the option is required.
QuantityA number field or slider, one sub-optionBlank Minimum and Maximum give a field, both set give a slider, one without the other is not allowed. No slider in the Boxes template.

The Yes/No row catches people. Marking it required does not force a tick, so when one of two answers must be chosen, use a Dropdown with two sub-options.

How do you price every sub-option without leaving a hole?

Price each sub-option on every cycle the product has enabled. WHMCS adds the chosen sub-option's price to the product price on whichever cycle the customer picks. Four details decide whether that works out.

  • Every enabled cycle needs its own price. A product sold monthly and annually needs both on every sub-option, and the setup fee has its own column per cycle.
  • Quantity is a unit price. Enter it in One Time/Monthly and the system multiplies it by the quantity selected.
  • Friendly display names split the label from the value. Write a sub-option as required value|display value, for example rbx01ssd|French Server - Solid State Drive. Visitors see the display half on the order form, in emails and on invoices; the module gets the required half.
  • Hide, do not delete. Hiding takes an option out of the store without losing the selection for existing customers.

Price override hooks are the trap. The shopping cart hook reference says OrderProductPricingOverride overrides product pricing exclusive of configurable option cost, so a per-client discount written there leaves option prices untouched. CartTotalAdjustment is the one that can see them: it receives cart products with keys including pid, billingcycle and configoptions, and adds a line rather than rewriting a price. For per-client and per-group prices on the same option, my Configurable Option Price Manager adds overrides, bulk updates and a change log. I sell it, all sales are final, so ask before buying.

How does a provisioning module read the chosen options?

From $params['configoptions'], keyed by option name. The Module Parameters page gives the example $params['configoptions']['Disk Space'], and custom fields arrive the same way in $params['customfields'].

function mymodule_CreateAccount(array $params)
{
    $location = $params['configoptions']['Location'] ?? '';
    $extraIps = (int) ($params['configoptions']['Extra IPv4'] ?? 0);
    $sshKey   = $params['customfields']['SSH Public Key'] ?? '';

    // Call the platform's API with these values, then:
    return 'success';
}

Two things trip developers up. The reference warns in its own words not to confuse Config Options with Configurable Options: $params['configoption1'] to configoption24 are the module's own settings from its ConfigOptions function, set per product by an admin. Second, the key is the option name, so renaming an option changes the key the module has to look for.

The supported functions page says ChangePackage runs when a client's upgrade or downgrade order becomes paid, and that the same function runs for products and for configurable options. One function therefore handles a new product, a bigger disk and a smaller disk.

How do you let clients upgrade or downgrade a configurable option?

Tick Configurable Options on the product's Upgrades tab. The Products page describes it as enabling the upgrading of configurable options, if the product has any. Without it, the values chosen at order time are fixed for the life of the service. Clients then order from the service in the Client Area, and staff from the client's Products/Services tab. The Upgrades and Downgrades page gives the arithmetic.

StepHow WHMCS calculates it
Amount creditedRecurring Amount divided by the days in the cycle, times the days until the next due date
Amount debitedThe new cost divided by the days in the cycle, times the days until the next due date
Total payable todayAmount debited minus amount credited. The Next Due Date does not change
Unpaid upgrade orderIf it is unpaid when the cron generates the renewal invoice, WHMCS cancels the upgrade and renews on the current details

Downgrades are where this strains. The math runs happily to a negative number, but many platforms cannot shrink a disk or hand back an IP, so ChangePackage has to refuse what the platform cannot do. Better, refuse earlier: the ShoppingCartValidateUpgrade hook runs during an upgrade or downgrade request to validate resource limits, receives the existing service id and the target product id, and returns error messages, with an empty array allowing the change. A client then never reaches an invoice for something you cannot deliver.

How do you move configurable options through the WHMCS API?

Three methods matter, and each wants the option's numeric ID rather than its name, the opposite of what a module wants.

MethodParameterFormat
AddOrderconfigoptionsAn array of base64 encoded, serialized arrays, one per product. The documented example is base64_encode(serialize(array("1" => 999)))
UpgradeProducttype, configoptionsSet type to configoptions. Keys are option IDs, values the choice ID for a dropdown or the number for a quantity. In the documented [1 => 4, 2 => 5], option 1 takes choice 4 and option 2 takes 5 units
GetProductsconfigoptions in the responseEach option returns id, name, type, minqty and maxqty; each sub-option returns id, name, rawName, recurring and per-currency pricing

GetProducts is how you find those IDs. Its type comes back as a number rather than the Admin Area label, with no published mapping, so read it off an install you control first. UpgradeProduct also takes calconly, which prices a change without placing it. Its documented example response moves a service to a cheaper product and returns "daysuntilrenewal": 13, "totaldays": 30 and "price": "$-8.67 USD", the formula above producing a credit. Its documented errors include a refusal while the previous upgrade invoice is unpaid, so a script looping over services should skip those rather than retry. My WHMCS API guide covers authentication.

What do you check before the options go live?

Order every sub-option on a staging copy, because WHMCS will bill a choice the module quietly ignores.

  • Every sub-option has a price on every enabled cycle, including the setup fee column.
  • The order form shows the option, in your sort order, on the template that product group uses.
  • The invoice line and the service's Recurring Amount both include the option.
  • The Module Log at Configuration > System Logs > Module Log, which has to be switched on there, shows the value the module received.
  • An upgrade and a downgrade both complete, and an impossible downgrade fails readably.
Four-step pipeline for testing a WHMCS configurable option: order the sub-option on staging, check the invoice line, read the module log, then upgrade and downgrade it
The test I run once per sub-option before a product group goes live. Source: shahidmalla.com, from my own pre-launch routine.

Which limits and mistakes should you plan for?

Most trouble comes from expecting a configurable option to be more than a priced list of choices.

  • Renaming. Rename the display half of a friendly name and leave the required half alone.
  • An option the module ignores. WHMCS bills every option it is told to; only the module turns one into a resource.
  • No live availability. Stock Control stops orders at zero, but it counts products, not sub-options, so per-option stock needs a module or a hook.
  • No dependent lists. Nothing in the documentation shows, hides or filters one option based on another. For a city that depends on a country, use one combined Dropdown such as de-fra|Germany, Frankfurt, one product per country, or filter two options in a child order form template and validate server-side with ShoppingCartValidateProductUpdate, which receives the request variables and returns error messages. My WHMCS hooks guide explains where that file goes.

A configurable option carries no logic. Anything that has to check a stock level or stop a downgrade belongs in a hook or a module, the line my VPS provisioning guide works through.

What else do people ask about WHMCS configurable options?

Can clients change configurable options after ordering?

Only if you tick Configurable Options on the product's Upgrades tab. With it, the client orders an upgrade from the service in the Client Area and WHMCS prorates the difference to the existing next due date.

Can one configurable option group apply to several products?

Yes, and that is the point of groups. You choose the products a group applies to when you create it, and each product then lists that group on its Configurable Options tab. One list of server locations serves every hosting product, which also means a rename hits all of them at once.

Why are my configurable options not showing on the order form?

Check three things in order. That the group is assigned to the product and set to show on the order form. The product's Allow Multiple Quantities setting, because a product with it enabled cannot require configurable options. Then the order form template, since a Quantity slider does not appear in the Boxes template.

How do I remove a configurable option without affecting existing customers?

Tick Hidden rather than deleting. The documentation describes hiding as the way to take an option out of the store without losing the selection for existing customers, and it works on a whole option or a single sub-option.

How do I find a configurable option's ID?

Call the GetProducts API for the product. The response lists each option with its id and each sub-option with its own id, the numbers AddOrder and UpgradeProduct expect. The Admin Area works in names, so a script needs this call first.

When a cart needs dependent options, per-client option prices or live stock, I build it as WHMCS custom module development or other WHMCS development work, with a free scoping call of about 30 minutes and a written quote within one business day at $55 to $65 per hour.

Last reviewed 25 November 2026. Disclosure: I sell WHMCS and web development work, including a configurable option pricing addon, so I am not neutral. I am CTO at ElySpace, a freelance developer for Marmaids LLC, and founder of WHMCSPilot and MagizAI. Paths, field names, option types, upgrade math, hook behavior and API parameters come from the WHMCS 9.1 documentation and developers.whmcs.com as I read them on 25 November 2026.

Share this article

Shahid Malla

Written by

Shahid Malla

Freelance WHMCS developer and web designer with 13+ years of client work. CTO at ElySpace, freelance developer for Marmaids LLC, and founder of WHMCSPilot and MagizAI.

Got a project like this?

Tell me what you need and I will send a written quote within one business day.