Alberto De Milano Posted July 29, 2012 Share Posted July 29, 2012 Salut, comment pourrai-je recupérer le panier et à chaque fois qu'il est modifié ? Ceci pour faire un traitement particulier et l'afficher. Aussi, où pourrai-je avoir une liste (une sorte d'API) de toutes les variables et fonctions prestashop ? merci Link to comment Share on other sites More sharing options...
franckm1000 Posted July 29, 2012 Share Posted July 29, 2012 ben les fonctions en regardant le fichier classes/cart.php ? Un simple coup d'oeil et tu verrais par exemple: Cart::getProducts te permet d'avoir les produits du panier Cart:nbProducts la qtté des produits Cart::deleteProduct pour supprimer un produit du panier etc... Link to comment Share on other sites More sharing options...
Alberto De Milano Posted July 30, 2012 Author Share Posted July 30, 2012 ok merci. Mais, il y a pas une sorte d'API pour cet os-commerce ? parcourrir un fichier de plus 1700 lignes et chercher à comprendre une fonction est vraiment fastidieux. l'API avec chaque classe et ses attributs et méthodes serait une bonne chose. Link to comment Share on other sites More sharing options...
franckm1000 Posted July 30, 2012 Share Posted July 30, 2012 pas à ma connaissance hélas ! 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