Magento Onepage签出-添加自定义步骤

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Magento Onepage签出-添加自定义步骤相关的知识,希望对你有一定的参考价值。

  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>

以上是关于Magento Onepage签出-添加自定义步骤的主要内容,如果未能解决你的问题,请参考以下文章

Magento签出页-添加自定义字段

扩展 Magento 购物车

Magento - OnePage Checkout - 根据送货方式隐藏付款方式

用于添加产品愿望清单的 Magento 自定义 API

向 Magento 的订阅模块添加自定义字段

如何在 Magento 中添加自定义字段来订购?