Benjamin Freoua Posted November 27, 2020 Share Posted November 27, 2020 Hello, I am on Prestashop 1.7.8 I would like to retrieve data from the customer that I added from the creation form. They are well registered in the database, I can modify them, retrieve them in the front office but I don't see how to retrieve them in the personal_information.html.twig file. I have override my twig file which is in /Prestashop/Admin/Sell/Customer/Blocks/View but if I try to retrieve my data added to the customer it cannot find it, so I suppose I owe it send from a hook but I can't find the hook that would match the personal_information.html.twig file All this has obviously been override from a new module. Thank you in advance for your help Link to comment Share on other sites More sharing options...
ventura Posted November 29, 2020 Share Posted November 29, 2020 Check it out at src/PrestaShopBundle/Controller/Admin/Sell/Customer/CustomerController.php Link to comment Share on other sites More sharing options...
Benjamin Freoua Posted November 30, 2020 Author Share Posted November 30, 2020 Hi Ventura, Thank you for you return. And if i want override this controller i create override function viewAction in my module same that twig file and that's all ? can I use the parent function as before or do I have to copy the whole function? 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