Jump to content

My cart is not updating UNLESS I do a reload of the Page?


Recommended Posts

55 minutes ago, joseantgv said:

Check if you have a JS error in console (Ctrl + Shift + J)

Yes, I do in ajax-cart.php

Uncaught ReferenceError: baseUri is not defined
    at Object.refresh (ajax-cart.js:126)
    at HTMLDocument.<anonymous> (ajax-cart.js:700)
    at u (core.js:39)
    at Object.fireWith [as resolveWith] (core.js:39)
    at Function.ready (core.js:39)
    at HTMLDocument.H (core.js:39)

I hope there's a quick fix to it

Link to comment
Share on other sites

I have further looked into and have found that, baseDir is undefined [when tested in ajax-cart.js line# 126] and hence baseUri also remains undefined.

// Retrocompatibility with 1.4
if (typeof baseUri === "undefined" && typeof baseDir !== "undefined")
	baseUri = baseDir;

but don't know how to get it fixed!

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...