For whatever reason, the second address line is missing in my Magento store but I’ve noticed it active in other stores. Can someone please copy and past what they have for their 2nd address line in the following files:
- template/customer/address/edit.phtml
- template/checkout/onepage/shipping.phtml
- template/checkout/onepage/billing.phtml
Below is an example of what I have for the first street line, but I need to add in the second street line. Also, will there be anything I’ll need to change to make this work? I suspect that the core functionality is still there, it’s just not appearing on the front end.
<li class="wide">
<label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
<div class="input-box">
<input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text required-entry" />
</div>
</li>
Tried repairing it through proper configuration?
System Config -> Customers -> Customer Configuration -> Name and Address Options
Change Number of Lines in a Street Address
If your template follows best practice, then it checks this config to know how many address lines to include in the templates and database.