Magento - 购物车删除项目不起作用

Magento - Shopping cart delete item is not working

我已经将我的商店更新到最新版本 1.9.2.4 并启用了 ssl,此后我从购物车中删除的按钮已停止工作。我在 firebug 中看到这个错误:

ReferenceError: coShippingMethodForm is not defined
coShippingMethodForm.submit = function () { at line 655

在那一行我有这个功能:

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);
}

我该如何解决这个问题?

谢谢

这是您上面显示的代码:

var coShippingMethodFormAjax = new VarienForm('shipping-zip-form-ajax');

更新第 655 行

来自

coShippingMethodForm.submit = function () {

coShippingMethodFormAjax .submit = function () {