Posted By

etechblog on 10/07/11


Tagged

checkout magento onestep


Versions (?)

Magento Checkout Page - Add Custom Fields


 / Published in: PHP
 

URL: http://www.excellencemagentoblog.com/magento-add-custom-fields-checkout-page

In this blog, we will see how to add custom fields to magento onepage checkout steps. This method can be used to add custom field to any step in the checkout page, although in the current blog i have demonstrated how to add it to the billing step. This method will work on all magento versions.

  1. <li class="fields">
  2. <div class="field">
  3. <label for="billing:ssn" class="required"><em>*</em><?php echo $this->__('SSN') ?></label>
  4. <div class="input-box">
  5. <input type="text" name="custom[ssn]" value="<?php echo $this->htmlEscape($this->getQuote()->getSsn()) ?>" title="<?php echo $this->__('SSN') ?>" class="input-text required-entry" id="billing:ssn" />
  6. </div>
  7. </div>
  8.  
  9. </li>

Report this snippet  

You need to login to post a comment.