tanmalik786 Posted November 25, 2020 Share Posted November 25, 2020 I am facing a strange issue, when I click on the 'Add to Cart' button, the product gets added to the Cart BUT the same is not shown till at a time I reload the page? I mean I have to reload the page [probably ajax issue?] to see the updated cart. Link to comment Share on other sites More sharing options...
joseantgv Posted November 25, 2020 Share Posted November 25, 2020 Check if you have a JS error in console (Ctrl + Shift + J) Link to comment Share on other sites More sharing options...
tanmalik786 Posted November 25, 2020 Author Share Posted November 25, 2020 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 More sharing options...
tanmalik786 Posted November 25, 2020 Author Share Posted November 25, 2020 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 More sharing options...
joseantgv Posted November 25, 2020 Share Posted November 25, 2020 Which is your store URL? Link to comment Share on other sites More sharing options...
tanmalik786 Posted November 25, 2020 Author Share Posted November 25, 2020 28 minutes ago, joseantgv said: Which is your store URL? https://nikpaul.com/shop Note: I kept on working and finally was able to make it work partially - when we add products to the Cart, shop updates now BUT not when we remove products from the Cart. Link to comment Share on other sites More sharing options...
joseantgv Posted November 26, 2020 Share Posted November 26, 2020 It's working for me. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now