1

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

我注意到右侧的“您的结帐流程”不加载内容的一件事。

有人能帮助我吗?

4

4 回答 4

4

我会再试一次,因为我的上一篇文章被删除了。为了让 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> 



2. 打开app/design/frontend/default/mobileshoppe/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.8 后卡在单页结帐上的其他人有所帮助。

祝你好运。

于 2013-10-07T16:02:13.810 回答
2

在这里我贴出了你第二个结账进度的答案一一向后消失。

在你的 frontend/default/theme/layout/checkout.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>

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

于 2013-12-10T09:26:59.220 回答
1

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

1.打开文件app/design/frontend/default/mobileshoppe/layout/checkout.xml

2. 搜索此行:

<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>
于 2013-10-08T15:37:07.283 回答
0

Magento 1.8.1.0 有问题。我通过这个解决了

  1. 打开 app/design/frontend/default/mobileshoppe/layout/checkout.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">
    

祝你好运!

于 2014-08-13T21:02:32.093 回答