Magento移动购物主题单页结帐在CE 1.8上不起作用



我在结帐时遇到了真正的问题,因为我被困在第 3 步运输方式上。

我注意到右侧的"您的结帐流程"无法加载内容。

有人可以帮我吗?

自从我的上一篇文章被删除以来,我会再试一次。您需要采取两个步骤才能让Mobileshoppe恢复工作:

1.转到/app/design/frontend/base/default/template/checkout/onepage/payment.phtml

并更改此内容(对我来说是第 36 行)

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

对此

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



阿拉伯数字。打开应用程序/设计/前端/默认/移动商店/模板/结帐/一页/评论/信息.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.8后被困在一页结帐上。

祝你好运。

在这里我发布了您的第二个问题答案,结帐进度逐个向后消失。

在前端/默认/主题/布局/结帐中查找代码.xml

    <checkout_onepage_progress>
            <!-- Mage_Checkout -->
            <remove name="right"/>
            <remove name="left"/>
            <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress.phtml">
                <block type="checkout/onepage_payment_info" name="payment_info">
                    <action method="setInfoTemplate"><method></method><template></template></action>
                </block>
            </block>
        </checkout_onepage_progress>

将其更改为此

<checkout_onepage_progress>
        <!-- Mage_Checkout -->
        <remove name="right"/>
        <remove name="left"/>
        <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress.phtml">
            <action method="setInfoTemplate"><method></method><template></template></action>
            <block type="checkout/onepage_progress" name="billing.progress" template="checkout/onepage/progress/billing.phtml"></block>
            <block type="checkout/onepage_progress" name="shipping.progress" template="checkout/onepage/progress/shipping.phtml"></block>
            <block type="checkout/onepage_progress" name="shippingmethod.progress" template="checkout/onepage/progress/shipping_method.phtml"></block>
            <block type="checkout/onepage_progress" name="payment.progress" template="checkout/onepage/progress/payment.phtml"></block>
        </block>
    </checkout_onepage_progress>
    <!-- Individual blocks for Progress steps begins -->
    <checkout_onepage_progress_billing>
        <!-- Mage_Checkout -->
        <remove name="right"/>
        <remove name="left"/>
        <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress/billing.phtml">
            <action method="setInfoTemplate"><method></method><template></template></action>
        </block>
    </checkout_onepage_progress_billing>

    <checkout_onepage_progress_shipping>
        <!-- Mage_Checkout -->
        <remove name="right"/>
        <remove name="left"/>
        <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress/shipping.phtml">
            <action method="setInfoTemplate"><method></method><template></template></action>
        </block>
    </checkout_onepage_progress_shipping>

    <checkout_onepage_progress_shipping_method>
        <!-- Mage_Checkout -->
        <remove name="right"/>
        <remove name="left"/>
        <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress/shipping_method.phtml">
            <action method="setInfoTemplate"><method></method><template></template></action>
        </block>
    </checkout_onepage_progress_shipping_method>
    <checkout_onepage_progress_payment>
    <!-- Mage_Checkout -->
    <remove name="right"/>
    <remove name="left"/>
    <block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress/payment.phtml">
        <block type="checkout/onepage_payment_info" name="payment_info">
            <action method="setInfoTemplate"><method></method><template></template></action>
        </block>
        <action method="setInfoTemplate"><method></method><template></template></action>
    </block>
    </checkout_onepage_progress_payment>

我希望这将解决您的问题,请评论和反馈!!

我希望我不会通过为您的第二个问题发布另一个答案来做错什么。 我也在结帐进度方面工作过,但它不是 100% 完美的。看看这是否适合您:

1. 打开文件应用程序/设计/前端/默认/移动商店/布局/结帐.xml

阿拉伯数字。 搜索此行:

<block type="checkout/onepage_progress" name="checkout.progress" before="-" template="checkout/onepage/progress.phtml"/>

3.将其替换为以下内容:

<block type="checkout/onepage_progress" name="checkout.progress" before="-" template="checkout/onepage/progress.phtml">
    <block type="checkout/onepage_progress" name="billing.progress" template="checkout/onepage/progress/billing.phtml"></block>
    <block type="checkout/onepage_progress" name="shipping.progress" template="checkout/onepage/progress/shipping.phtml"></block>
    <block type="checkout/onepage_progress" name="shippingmethod.progress" template="checkout/onepage/progress/shipping_method.phtml"></block>
    <block type="checkout/onepage_progress" name="payment.progress" template="checkout/onepage/progress/payment.phtml"></block>
</block>

我在使用Magento 1.8.1.0时遇到了问题。我通过这个解决了它

  1. 打开应用程序/设计/前端/默认/移动商店/布局/结帐.xml

  2. 更改行

                   <block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/methods.phtml">
    

                   <block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/info.phtml">
    

祝你好运!

最新更新