Skip to content

Instantly share code, notes, and snippets.

@SheriSmith
Created November 26, 2015 00:13
Show Gist options
  • Save SheriSmith/f93b0e250e16ac03f0ef to your computer and use it in GitHub Desktop.
Save SheriSmith/f93b0e250e16ac03f0ef to your computer and use it in GitHub Desktop.
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
<li class="wide">
<label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
<div class="input-box">
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text validate-pobox <?php echo $_streetValidationClass ?>" />
</div>
</li>
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
<li class="wide">
<div class="input-box">
<input type="text" title="<?php echo $this->__('Street Address %s', $_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text validate-pobox2 <?php echo $_streetValidationClass ?>" />
</div>
</li>
<?php endfor; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment