Magento Checkout Page - Add Custom Fields


/ Published in: PHP
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.