Studio Systonic Posted September 22, 2022 Share Posted September 22, 2022 Hi, i'd like to disable the credit slip email which is sent from my Prestashop to the customer. The version of PS is : 1.7.7.5 I'm looking for the controller. Do you have any idea ? Many thanks in advance Best Regard, Nels Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 23, 2022 Share Posted September 23, 2022 In "\src\Adapter\Order\Refund\OrderSlipCreator.php", kindly comment the below code Quote Mail::Send( (int) $orderLanguage->getId(), 'credit_slip', $this->translator->trans( 'New credit slip regarding your order', [], 'Emails.Subject', $orderLanguage->locale ), $params, $customer->email, $customer->firstname . ' ' . $customer->lastname, null, null, null, null, _PS_MAIL_DIR_, true, (int) $order->id_shop ); 2 Link to comment Share on other sites More sharing options...
Studio Systonic Posted September 26, 2022 Author Share Posted September 26, 2022 On 9/23/2022 at 6:09 PM, Knowband Plugins said: In "\src\Adapter\Order\Refund\OrderSlipCreator.php", kindly comment the below code Thanks for your help. Is there any advice to override this php file in my theme ? BR Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 28, 2022 Share Posted September 28, 2022 Override is not available anymore for src folder due to architecture change. But we can use hooks or we can create your own implementation based on same class interface : http://build.prestashop.com/news/prestashop-in-2019-and-beyond-part-1-current-architecture/ 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