jmbdev Posted January 26 Share Posted January 26 Bonjour , Je souhaite afficher des informations supplémentaires dans la page de détails d'une commande en Administrateur. Je souhaite notamment afficher les prix hors taxe pour chaque ligne de produit ainsi que pour le total de la commande, le pourcentage de remise appliqué à ce produit. J'ai déja ajouté l'information du prix HT pour chaque ligne de produit en créant un module modifiant le fichier PrestaShop/Admin/Sell/Order/Order/view.html.twig. Cela a été possible car le fichier src\PrestaShopBundle\Controller\Admin\Sell\Order\OrderController.php qui gère cela injecte la variable $orderForViewing dans lequel cette info est déja présente. Je voudrais donc accéder aux autres informations et les rendre disponibles à la vue PrestaShop/Admin/Sell/Order/Order/view.html.twig. Or OrderController se trouve dans le dossier /src du projet. Or il semble qu'on ne peut pas faire d'override sur les classes contenu dans ce dossier. Comment faire autrement ? 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