Changing country settings
I live in UK and on registration form I would like United Kingdom and UK county list showing by default. At present it is United States. Please can someone tell me how to set this up. Thanks
I live in UK and on registration form I would like United Kingdom and UK county list showing by default. At present it is United States. Please can someone tell me how to set this up. Thanks
on the webassist/plugins/registration/full/registration.php page, change line 377;
<option value="<?php echo $row_Countries['CountryISO']?>"<?php if (!(strcmp($row_Countries['CountryISO'], isset($wa_settings['Country'])?$wa_settings['Country']['value']:'US'))) {echo "selected=\"selected\"";} ?>><?php echo $row_Countries['CountryName']?></option>
to:
<option value="<?php echo $row_Countries['CountryISO']?>"<?php if (!(strcmp($row_Countries['CountryISO'], isset($wa_settings['Country'])?$wa_settings['Country']['value']:'GB'))) {echo "selected=\"selected\"";} ?>><?php echo $row_Countries['CountryName']?></option>
Hi Jason
I have tried this and still the same. Yesterday before I asked the question, I was trying the same on this file>> admin_pm/users_registration.php and today I have followed your instructions and made the changes on the file you mentioned.
I also changed the $countryparam_Regions = "US"; to $countryparam_Regions = "GB"; and tried this way too. Still no luck. On the list I am seeing United States and California selected.
admin_pm/users_registration.php and webassist/plugins/registration/full/registration.php page, change line 377;
These 2 files seems to be the same ones. Do you think there is something wrong with my installation? I have followed the instructions.
After intallation I have found the 'webassist' folder still being in 'install_pm' I had to reload to the root folder of PowerMessanger manually to make image upload function for the CK Editor.
Your help will be appriciated. Thanks
Aladdin
Hi Jason,
Finally I have found where the change needs to be made.
Globals/globals.php
change
$WAGLOBAL_Country = 'US';
$WAGLOBAL_State = 'CA';
to
$WAGLOBAL_Country = 'GB';
This seems to work fine. I hope it doesn't effect other areas.
I don't know very much about coding but this is a guess.
Aladdin
OK, glad to hear this is working.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.