Regaton Posted May 30, 2016 Share Posted May 30, 2016 Bonjour, Je me trouve dans le fichier theme/default-bootstrap/modules/blockcart/crossselling.tpl et je souhaite afficher l'id du produit en cours (lequel on vient de rajouter au panier). J'ai tenté {$product.id_product} mais en vain... Si vous pouviez me donner conseil ! Merci. Link to comment Share on other sites More sharing options...
cirylBD28 Posted May 30, 2016 Share Posted May 30, 2016 Possiblement pas récupéré dans blockpcart.php, le récupérer et lui assigner ton 'id_product' Link to comment Share on other sites More sharing options...
Regaton Posted May 30, 2016 Author Share Posted May 30, 2016 Merci de ta contribution... J'ai besoin de cette info un peu partout dans le panier, j'ai donc overridé le fichier cart.php. J'ai rajouté une fonction permettant de retourner ce que je veux. Puis j'appelle ma fonction dans le fichier tpl du genre $cart->MaFonction(). Mon algo est un peu bancal mais je ne sais pas faire autrement... En tout cas, ça fonctionne. 1 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