Jump to content

[MOD] Choose currency at registration.


Recommended Posts

With the great new multi-currency functionality of WHMCS one thing that bugged me was that once a user registered they are stuck with the currency at the time of registration. Unfortunately WHMCS does not ask the customer at registration what their default currency should be so you can end up with customers registering and being stuck with a currency they don't want.

 

The mode below added a currency selector to the registrations form template "clientregister.tpl" (For Portal template, but should also work in Default). Just add it somewhere in the main table and the user can then choose their currency. It will also preset the current currency if they have already chosen one.

 

<tr>
           <td class="fieldarea">{$LANG.choosecurrency}</td>
           <td><select name="currency">{foreach from=$currencies item=curr}
<option value="{$curr.id}"{if $curr.id eq $smarty.session.currency} selected{/if}>{$curr.code}</option>
{/foreach}</select></td>
         </tr>

Link to comment
Share on other sites

  • 4 weeks later...

That's great! Thanks for this!!

 

Do you have a mod for the admin? We had all our clients in USD and when whmcs4 came out we mailed our Canadian clients to let them know that their account could be in CAD instead which many preferred... the only problem is that past (paid) invoices were also converted screwing up everybody's records..

 

Any thoughts? Do we even have access to the admin code?

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