[英]Magento - Shopping cart delete item is not working
I have update my store at last version 1.9.2.4 and I have ssl enable, after this my delete button from the shopping cart has stop working. 我已将商店的最新版本更新为1.9.2.4,并且启用了ssl,在此之后,购物车中的删除按钮已停止工作。 I see in firebug this error: 我在萤火虫中看到此错误:
ReferenceError: coShippingMethodForm is not defined
coShippingMethodForm.submit = function () { at line 655
At that line I have this function: 那一行我有这个功能:
function getQuote() {
$jq('#shipping-zip-form').attr('id','shipping-zip-form-ajax');
var coShippingMethodFormAjax = new VarienForm('shipping-zip-form-ajax');
**THIS IS THE LINE 655** coShippingMethodForm.submit = function () {
var country = $F('country');
var optionalZip = false;
for (i=0; i < countriesWithOptionalZip.length; i++) {
if (countriesWithOptionalZip[i] == country) {
optionalZip = true;
}
}
if (optionalZip) {
$('postcode').removeClassName('required-entry');
}
else {
$('postcode').addClassName('required-entry');
}
if (this.validator.validate()) {
this.form.submit();
}
console.log(countriesWithOptionalZip.length);
}.bind(coShippingMethodFormAjax);
}
How I can solve this? 我该如何解决?
Thank you 谢谢
this is your code shown above: 这是上面显示的代码:
var coShippingMethodFormAjax = new VarienForm('shipping-zip-form-ajax');
Update line 655 更新第655行
FROM 从
coShippingMethodForm.submit = function () {
TO 至
coShippingMethodFormAjax .submit = function () {
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.