Aircod Posted September 17, 2021 Share Posted September 17, 2021 Hello. I would like to add a new variable to the return twig in /src/PrestaShopBundle/Controller/Admin/Sell/Customer How can I do this with a module? I am interested in a fragment of this code: return $this->render('@PrestaShop/Admin/Sell/Customer/view.html.twig', [ 'enableSidebar' => true, 'help_link' => $this->generateSidebarLink($request->attributes->get('_legacy_controller')), 'customerInformation' => $customerInformation, 'isMultistoreEnabled' => $this->get('prestashop.adapter.feature.multistore')->isActive(), 'transferGuestAccountForm' => $transferGuestAccountForm, 'privateNoteForm' => $privateNoteForm->createView(), ]); I don't want to overwrite the controller. Link to comment Share on other sites More sharing options...
Kogkalidis Posted December 25, 2022 Share Posted December 25, 2022 As long as I do not find any crystal clear documentation, I do it by copying the whole file plus my own code from specific location in my module in the genuine location. 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