Just like there is a default value for 'State/Province' field which is: 'Please select region, state or province
' I need to add a default value to City field in billing and shipping steps in checkout.
In my case the City is drop-down list getting its list of cities from database.
In app>design>frontend>base>default>template>checkout>onepage>billing.phtml
, the city field code is:
<div class="field">
<label for="billing:city" class="required"><em>*</em><?php echo $this->__('City') ?>
</label>
<div class="input-box">
<input type="text" title="<?php echo $this->__('City') ?>"
name="billing[city]"
value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>"
class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>"
id="billing:city"/>
</div>
</div>
ex: <select>
) in your code.