You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I did do this in version 8, but can I have some pointers to do this in V9
I need the default country set as United Kingdom in "Create Account" form rather that it asking for "Select" as the majority of our customers are from the UK.
And obviously customers can still select the drop down box to select their county if it is not the default
Offline
This can be done by modifying the default value for the country field (only if blank) in the files:
{private}/core/CORE/includes/formfield_country.php
{private}/core/CORE/includes/formfield_countryship.php
For version 9.3+, isolate your mods to make future updates quick and easy using these instructions:
https://forum.kryptronic.com/viewtopic.php?id=35650
Offline
Thanks Nick... perfect although I just commented out the "// print '<option value="" label="Select"></option>' . $eol;" - seemed to be the logical choice
print '<select'; if (!(empty($cssstyle))) {print ' class="' . $cssstyle . '"';} print ' name="' . $id . '" id="' . $id . '" title="' . $fieldtitle . '">' . $eol;
// print '<option value="" label="Select"></option>' . $eol;
foreach ($values as $valueid => $data) {
$name = $this->xhtml_encode($data['id']);
$value = $this->xhtml_encode($data['id']);
if ($defaultvalue == $name) {$selected = ' selected="selected"';}
else {$selected = '';}
print '<option value="' . $name . '"' . $selected . '>' . $value . '</option>' . $eol;
} // End of foreach statement.
print '</select>' . $eol;
Last edited by antsevo (07-08-2024 22:45:58)
Offline