Answers:
在此处找到解决方案:http : //www.magentocommerce.com/boards/viewthread/441003/#t460203
转到/ app / design / frontend / base / default / template / checkout / onepage /文件付款。phtml将其打开,第36行
<fieldset>
<?php echo $this->getChildHtml('methods') ?>
</fieldset>
将ID添加到字段集
<fieldset id="checkout-payment-method-load">
<?php echo $this->getChildHtml('methods') ?>
</fieldset>
多亏了hungtk2707!
我也遇到了结帐问题,并且找到了解决方案:
在/template/checkout/onepage/review/info.phtml中(末尾)
更换
review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
通过
review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
它应该可以解决您的结帐问题。
如果您将Magento升级到1.9.1,并且自定义结帐模板,并且更改了xml。
外观如下:
<block type="checkout/onepage_payment" name="checkout.onepage.payment" as="payment" template="checkout/onepage/payment.phtml">
<block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/methods.phtml">
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
</block>
</block>
问题是checkout / onepage / payment / methods.phtml,此数据应通过ajax请求加载。将其替换为checkout / onepage / payment / info.phtml,如下所示:
<block type="checkout/onepage_payment" name="checkout.onepage.payment" as="payment" template="checkout/onepage/payment.phtml">
<block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/info.phtml">
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
</block>
</block>
如果您的模板在info.phtml的底部没有review =,则只需添加
</script>
<script type="text/javascript">
//<![CDATA[
review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this- >getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
//]]>
</script>
到此文件的底部,例如./app/design/frontend/blank/default/template/checkout/onepage/review/info.phtml
我在rwd(iphone)storeview中遇到了同样的问题,并解决了第一个问题
但后来我仍然遇到问题(继续按钮不起作用)解决方案是从/ app / design / frontend / default / iphone / template / checkout / onepage / review收集info.phtml
我取自旧的工作版本。
奇怪的事实是,一切在桌面视图中都可以正常工作。