How to add paid and outstanding amount in order page
Sometimes you may need to know how much the current outstanding and paid amount. Especially you accept the preorder and customer only paid deposit on it.
Aslo it is easier to make mistake when you manually add the order thru the backoffice for the offline order like whatsapp, email, phone channel. For the new version of order page, you need to scroll down to the bottom for payment detail. Therefore, an outstanding and paid amount display will be very convenient.
Directly edit OrderController.php
I will not recommend this method. Directly modifing the core code will be very dangerous when you need to upgrade. During the version, all of your code will be gone. Our introduction here is only for reference because we don’t want to spend a paragraph to teach how to write a module for that.
The better way is following the below link and override it by a module.
https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/override-decorate-controller/
In order to introduce a fastest solution with few paragraphs, you can follow the below tutorial.
/src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php
// start – edited by admin @22Jul2022
Related Post
How to deploy an Email Newsletter Marketing in Prestashop 1.7.x?
Deprecated: Function create_function() is deprecated in /opt/lampp/htdocs/genkiware/wp-content/themes/optima/single.php on line 185
An email newsletter is one of the critical marketing strategies.…
How to Auto-Update the Exchange Rates with Cron Job
Deprecated: Function create_function() is deprecated in /opt/lampp/htdocs/genkiware/wp-content/themes/optima/single.php on line 185
As a professional e-Commerce solution, PrestaShop does support multi-currency on…