Jump to content

Categories disappear on view cart page with Ajax cart enabled


Recommended Posts

Hi, I’m having an issue with the Ajax cart on my store.

 

The problem came about because when it was enabled, an item would be added to the side cart fine, but when viewing the main cart page, if I attempted to add, subtract or delete an item on that page, I got the following error:

 

Technical Error: Unable to save update quantity

Details:

Error Thrown: [Object XMLHttpRequest]

Test Status: parsererror

 

If I attempted to delete the item from the side cart while in this view, I got the same error, then the item disappeared from the side cart, but remained in the main cart page. Upon refreshing the page, the item had gone, I made sure there was nothing in the SSL domain box in the BackOfficeàSEO & URL area.

 

Then, I found this thread:

http://www.prestasho...rt/page__st__20

 

and tried the last solution on the 2nd page (In file /themes/prestashop/js/cart-summary.js in line 30 after

 

$(document).ready(function()

{

 

add the lines:

 

set

baseDir = 'http://domain.pl/dir/';

 

Where 'http://domain.pl/dir/' is base url of your store

 

This seems to work with my Ajax cart re-enabled but then, whenever viewing the main cart page (with products in or not), all the categories and subcategories have disappeared! (see attached screenshot post-300970-0-49857600-1332177630_thumb.jpg) When my Ajax cart is disabled, all the categories return. I also have dynamic links enabled, when disabled, again all the categories return.

 

I built my site on my computer using Wampserver, both the above problems only showed once the website was uploaded to my host, and I get these issues regardless of whether I use my own theme or the default Prestashop theme. I’ve also tried uninstalling and reinstalling the Cart block v1.2, the Categories block v2.0 and the Quick Search block v1.0, but no change.

 

I can only assume problems are happening due to an issue with the Ajax cart but I haven’t a clue where to start! If anyone would like to look at the problem first hand, just let me know and I’ll enable it and send the link!

Hope someone can help me!

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