Magento Onepage Checkout - Add Custom Steps


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



Copy this code and paste it in your HTML
  1. <form id="co-excellence-form" action="">
  2. <fieldset>
  3. <ul class="form-list">
  4. <li id="excellence-form">
  5. <fieldset>
  6. <ul>
  7. <li class="wide">
  8. <label for="excellence:like" class="required"><em>*</em><?php echo $this->__('Do you like Excellence Magento Blog?') ?></label>
  9. <div class="input-box">
  10. <select class="required-entry" name="excellence[like]" id="excellence:like">
  11. <option value=''><?php echo $this->__('Please Choose..');?></option>
  12. <option value='1' <?php if($this->getQuote()->getExcellenceLike() == 1){echo 'selected="selected"';} ?>><?php echo $this->__('Yes');?></option>
  13. <option value='2' <?php if($this->getQuote()->getExcellenceLike() == 2){echo 'selected="selected"';} ?>><?php echo $this->__('No');?></option>
  14. </select>
  15. </div>
  16. </li>
  17. </ul>
  18. </fieldset>
  19. </li>
  20. </ul>
  21. <div class="buttons-set" id="excellence-buttons-container">
  22. <p class="required"><?php echo $this->__('* Required Fields') ?></p>
  23. <button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="excellence.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
  24. <span class="please-wait" id="excellence-please-wait" style="display:none;">
  25. <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
  26. </span>
  27. </div>
  28. </fieldset>
  29. </form>
  30. <script type="text/javascript">
  31. //<![CDATA[
  32. var excellence = new ExcellenceMethod('co-excellence-form','<?php echo $this->getUrl('custom/onepage/saveExcellence') ?>');
  33. var excellenceForm = new VarienForm('co-excellence-form');
  34. //]]>
  35. </script>

URL: http://www.excellencemagentoblog.com/magento-onestep-checkout-add-step

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.