Jump to content

Change Zip Code to Postcode in Register.php


melds

Recommended Posts

I am setting up a UK web host platform. I need the Register.php to say

 

County (instead of State/Region)

Postcode (instead of Zip Code)

 

Do I need to change the language file clientregister.tpl(strangely it says postcode for the form group but shows zip code) or is there a UK setting somewhere in the admin.

 

I also need to change the default currency to £ from USD.

 

Thanks in advance

Link to comment
Share on other sites

Do I need to change the language file clientregister.tpl(strangely it says postcode for the form group but shows zip code) or is there a UK setting somewhere in the admin.

to do this, there should be no need to edit the templates, just use Language Overrides...

 

http://docs.whmcs.com/Language_Overrides

 

e.g change ZIP code in the overrides/english.php file using..

 

<?php
$_LANG['clientareapostcode'] = "Postcode";
$_LANG['clientareastate'] = "County";

you should probably look for other references to Zip Code and State in the language file(s).

 

I also need to change the default currency to £ from USD.

if you have no existing transactions/invoices/orders, just edit the existing USD currency to £ and GBP

Link to comment
Share on other sites

Is it ok to override the language/core files? It won't affect any future version updates etc

it's ok as long as you don't edit the existing language files (client or admin) - as described in the overrides link above, create an overrides folder and put your changes in there for each language you use.

 

the content of the overrides folder won't get changed or removed by future WHMCS updates - but the existing language files will... which is why you shouldn't edit those!

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