【问题标题】:magento: onepagecheckout, stuck on billing informationmagento:onepagecheckout,停留在计费信息上
【发布时间】:2012-09-10 11:34:30
【问题描述】:

Magento:onepagecheckout,卡在账单信息上

这是我们得到的回复:

当我查看http://baleinen.com/checkout/onepage/ 中的代码时,我找不到名为 shipping-method 的块。

任何想法如何解决? (这是 Sentana 模板,我几乎无法想象这之前没有工作过)

{"goto_section":"shipping_method","update_section":{"name":"shipping-method","html":"    <dl class=\"sp-methods\">
<dt>Betaal en verzendkosten (PostNL)<\/dt>
<dd>
<ul>
<li>
<span class=\"no-display\"><input name=\"shipping_method\" type=\"radio\" value=\"flatrate_flatrate\" id=\"s_method_flatrate_flatrate\" checked=\"checked\" \/><\/span>
<label for=\"s_method_flatrate_flatrate\">NL                                                                        <span class=\"price\">\u20ac\u00a01,25<\/span>                                                <\/label>
<\/li>
<\/ul>
<\/dd>
<\/dl>
<script type=\"text\/javascript\">
\/\/<![CDATA[
var shippingCodePrice = {'flatrate_flatrate':1.25};

$$('input[type=\"radio\"][name=\"shipping_method\"]').each(function(el){
Event.observe(el, 'click', function(){
if (el.checked == true) {
var getShippingCode = el.getValue();
var newPrice = shippingCodePrice[getShippingCode];
if (!lastPrice) {
lastPrice = newPrice;
quoteBaseGrandTotal += newPrice;
}
if (newPrice != lastPrice) {
quoteBaseGrandTotal += (newPrice-lastPrice);
lastPrice = newPrice;
}
checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
return false;
}
});
});
\/\/]]>
<\/script>
"},"allow_sections":["shipping"],"duplicateBillingInfo":"true"}

http://baleinen.com/checkout/onepage/

【问题讨论】:

  • 查看'var/log'中的日志文件,看看有没有线索

标签: magento magento-1.7


【解决方案1】:

我遇到了类似的问题,即 OnePage Checkout 未完成。

我必须进行以下更改:

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

找到以下部分:

<form action="" id="co-payment-form">
    <fieldset>
        <?php echo $this->getChildHtml('methods') ?>
    </fieldset>
</form>

并为 fieldset 元素添加一个 id:

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

现在我的结帐可以正常进行了。

【讨论】:

    【解决方案2】:

    问题是 Magento JS 试图找到 col-right,但实际上并没有。

    这是 col-left 并报告为一个小缺陷,因为它是在 JS 中硬编码的

    【讨论】:

    • 很好,但是你怎么不回答如何解决这个问题?
    猜你喜欢
    • 2021-07-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多