How Can I add currency selector on WHMCS custom page?

Updated on: June 16, 2023

Estimated reading time: 2 minutes

Managing your business with WHMCS? Automating web hosting business has never been this easy before WHMCS. With the help of WHMCS(Web Host Manager Complete Solution), it is much more flexible to manage your business.

What is the task of a currency selector in WHMCS? Well, it helps to convert the currencies according to the customer’s requirement. WHMCS consists of a default currency selector that helps clients to select the currencies of the products. However, when you create a custom WHMCS page, the currency selector does not work, now there is no use of the page without the currency selector consisting of products. So to add the currency selector on this customized page you need to follow this procedure.

{if !$loggedin && $currencies}
<form method="post" action="" class="pull-right">
<select name="currency" class="form-control currency-selector" onchange="submit()">
<option>{lang key="changeCurrency"} ({$activeCurrency.prefix} {$activeCurrency.code})</option>
{foreach $currencies as $currency}
<option value="{$currency['id']}">{$currency['prefix']} {$currency['code']}</option>
{/foreach}
</select>
</form>
{/if}

Hope this helps you to add a currency selector to your custom WHMCS page.

In case you find any issue, please hire our WHMCS Developers.

Looking for Something More? We can help!

Our WHMCS experts are ready to accept your custom requirements.

Custom Development

Need a Custom Solution?

Looking for an integration or billing automation? Our team builds bespoke solutions designed around your stack and business requirements.

Discuss your requirement
Support & Maintenance

WHMCS Support & Maintenance Plans

Keep your billing platform secure, updated, and running smoothly with ongoing support from experienced WHMCS specialists.

  • ✓ WHMCS upgrades and security patching
  • ✓ Module and theme compatibility fixes
  • ✓ Priority support from WHMCS experts
See maintenance plans
Complete Setup

Starting a Web Hosting Business?

We help you set up your complete hosting platform, including WHMCS, client area, payments, order forms, and server automation.

01 WHMCS installation, licensing and setup
02 Hosting theme, client area and order forms
03 Payment gateways, tax rules and checkout
04 Server provisioning and automation
Request a setup quote
Need advice? Our WHMCS specialists are at your service 24/7. Reach out now