Jump to content

Impossible to add the product to the cart.


Recommended Posts

Hi,

 

I need a splash screen for my website, and I have created a simple index.html, which I have placed in the root of my shop. I modified the header.tpl to include the index.php after the {$base_dir}. so that when the logo is clicked you return to the index page, and not the splashscreen.

 

Now however when you try to add an item to the basket, the following error occurs:

 

Impossible to add the product to the cart.

textStatus: 'parsererror'
errorThrown: 'SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data'
responseText:

 

and under that part of the splash screen is shown.

 

When I switch off ajax cart in cart block module, the problem goes away, but I really do like the ajax cart. Any ideas anyone?

 

regards,

Dave.

 

PS 1.6.1.4 default bootstrap theme.

 

Link to comment
Share on other sites

try that one :

 

<?php
  // If a user choses to remove an item, then ts valid.
  if ($form_state['triggering_element']['#value'] == t('Remove')) {
    return;
  }
?>
I am setting the issue as worked as designed as I can't see how this can be an issue on the latest version, however if this is still an issue feel free to reopen and provide more details to help me recreate the issue.

 

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