Jump to content

Erreur lors de l'ajout au panier


Recommended Posts

Bonjour tout le monde,

 

lorsque j'essai d'ajouter un article a mon panier, il y a une erreur qui s'affiche dans le popup : 

 

Voici l'adresse : www.lerelaisbio.fr

 

"Impossible to add the product to the cart.

textStatus: 'parsererror'
errorThrown: 'SyntaxError: Unexpected token  in JSON at position 0'
responseText:
{"products":[{"id":16,"link":"http:\/\/lerelaisbio.fr\/accueil\/16-avocat.html","quantity":29,"image":"http:\/\/lerelaisbio.fr\/35-home_default\/avocat.jpg","image_cart":"http:\/\/lerelaisbio.fr\/35-cart_default\/avocat.jpg","priceByLine":"217,50 \u20ac","name":"AVOCAT","price":"217,50 \u20ac","price_float":181.25,"idCombination":0,"idAddressDelivery":29,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"0,00 \u20ac","shippingCostFloat":0,"wrappingCost":"0,00 \u20ac","nbTotalProducts":29,"total":"217,50 \u20ac","productTotal":"217,50 \u20ac","freeShipping":"0,00 \u20ac","freeShippingFloat":0,"free_ship":true,"isVirtualCart":false,"hasError":false,"crossSelling":"\t

\n\t\t"
 
 
Cette erreur n'apparaît pas quand le fichier langue n'est pas modifié, en fait j'ai dû traduire "mon panier" par "mon cabas"... et là il y a eu cette erreur, elle n'apparaît pas quand je ne touche pas au fichier langue... bisard, car j'ai juste remplacer ce qui était écrit en francais par d'autres mots en francais.
 
J'ai reinitialisé le module, vider le cache, renommer le JSON pour voir si le pb venait de là... rien n'y fait. J'ai même désactiver l'ajax mais quand j'ajoute un article au panier, j'arrive sur une page blanche avec mon logo...
 
Si vous pouviez m'aider, ce serait sympa :)
 
Merci d'avance
Edited by Celine24-59000 (see edit history)
Link to comment
Share on other sites

Vous avez commis 2 erreurs:

- Editer directement un fichier langue, alors que les traductions du BO sont faites pour ça

- Utiliser un éditeur moisi pour modifier ce fichier, ce qui vous rajoute des BOM (Byte Order Marker) en tête de fichier et provoque une erreur ajax

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