Jump to content

Uncaught Referenceerror: Hasdeliveryaddress Is Not Defined


Vosteen

Recommended Posts

Hello,

 

I was told our shop has some kind of Java error. It says:

Uncaught ReferenceError: hasDeliveryAddress is not defined

 

But to be true I have no idea how to detect stuff like that. And even more (or less): how to solve this?

 

So can anyone please help me? (:

Link to comment
Share on other sites

It looks like a bug. Change the /themes/default-bootstrap/js/modules/blockcart/ajax-cart.js file this way:

    updateCartEverywhere : function(jsonData){
        $('.ajax_cart_total').text($.trim(jsonData.productTotal));

        if (typeof hasDeliveryAddress == 'undefined')
            hasDeliveryAddress = false;

        if (parseFloat(jsonData.shippingCostFloat) > 0)
Link to comment
Share on other sites

Do you really mean the default theme?

Because the file already looks like your changes.

 

I edited this file in the actuall active theme. There the line

        if (typeof hasDeliveryAddress == 'undefined')
            hasDeliveryAddress = false;

was missing.

 

Sooo...does it work? :S

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...