dongmeiran609914 2013-11-25 10:04
浏览 29

Magento升级到1.8后,单页结帐无法正常工作

I have upgraded my site to Magento 1.8. I didnt upgraded the magento using magento downloader. I have used fresh magento 1.8 and moved my skin to this version. Now everything working fine Except the one page checkout page. The checkout progress bar is updating as i complete steps and also the payment is working neither paypal not the creditcard. The place order button does nothing, the site is not directing to payment page. Here are the couple of steps i have followed with no success in /app/design/frontend/base/default/template/checkout/onepage/payment.phtm i have changed this line

       <fieldset>
            <?php echo $this->getChildHtml('methods') ?>
         </fieldset>

to

        <fieldset id="checkout-payment-method-load">
                <?php echo $this->getChildHtml('methods') ?>
         </fieldset>

This didnt worked. And also in app/design/frontend/default/mobileshoppe/template/checkout/onepage/review/info.phtml

i have changed this line

    review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));

to

       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'));

Both didnt worked for me. Is there any other solutions except this? Can someone help me to fix this problem?

  • 写回答

2条回答 默认 最新

  • dongyuqi3808 2014-07-05 19:50
    关注

    Check the files for the special form key. I had the same problems with the checkout and fixed them that way.

    Since Magento 1.8.0.0, the core team has added a form key, which has to be present in order to submit some forms. I guess that your form does not have that form key. It should look like this:

    <?php echo $this->getBlockHtml('formkey'); ?>
    

    You need to compare your template and layout files from the checkout module to the files from the Magento's base/default template and layout.

    In the layout files you should search for a block, named formkey

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大