Magento: on 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/
发布于 2012-09-13 01:41:13
问题是Magento JS试图找到正确的col right,而实际上没有。
这是一个很小的缺陷,因为它是用JS硬编码的
发布于 2013-12-27 07:37:44
我遇到了类似的问题,OnePage结帐没有完成。
我不得不做以下更改:
app/design/frontend/base/default/template/checkout/onepage/payment.phtml
找到下面的部分:
<form action="" id="co-payment-form">
<fieldset>
<?php echo $this->getChildHtml('methods') ?>
</fieldset>
</form>并将id添加到fieldset元素:
<form action="" id="co-payment-form">
<fieldset id="checkout-payment-method-load">
<?php echo $this->getChildHtml('methods') ?>
</fieldset>
</form>现在我的结帐工作正常进行了。
https://stackoverflow.com/questions/12350850
复制相似问题