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:
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>
Call a required function in the template file, You need to pass Order id to below function. Using Order Id we can get Customer billing and shipping address id and based on respective id we can get billing and shipping address.
If you have access to the address object, you can easily get each street line with:
$address->getStreet(1);
$address->getStreet(2);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With