ajhax Posted March 1, 2012 Share Posted March 1, 2012 Bonjour, J'ai déjà vu certains topics à propos de mon problème, mais n'ai trouvé la solution dans aucun. Est-il possible de faire afficher le module blockcart uniquement lorsque l'utilisateur ajoute au moins un produit dans son panier ? J'ai testé la solution d'ajouter cette portion de code au fichier blockcart.php : global $cart; if (count($cart->getProducts()) == 0) return; Mais cela ne fonctionne pas, la page nécessite un rafraichissement. J'ai également retiré le "return;" à la ligne 140 du fichier ajax-cart.js, mais sans succès. Si quelqu'un a une idée... Link to comment Share on other sites More sharing options...
ajhax Posted March 7, 2012 Author Share Posted March 7, 2012 Petit up 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