2

For what there is the sales.xml file? In the documentation, I can not find anything about this file.

3

sales.xml contains all kind of total objects like discount, subtotal, grandtotal, tax which display on cart page or order details page in admin and many more places. I can say everthing that is related to total in quote or order defines in this file.

You can add your custom total object as well using this file. Check below link for more details

How to add fee to order totals in Magento 2

Let me know in case you need more explanation on this :)

| improve this answer | |
  • If I'd like to do something like "TOTAL WEIGHT" it should be done also this way? – Wojciech Ka Apr 25 '19 at 11:26
  • Yes it can be done from this – Ramkishan Suthar Apr 25 '19 at 11:32
0

Sales module is responsible for order processing and appearance in system.

Magento 2 have contain module-sale for all the files related to sales.

This is a core magento sales module path:

magento\vendor\magento\module-sales


You can check below link for further understand sale module:

https://devdocs.magento.com/guides/v2.0/mrg/ce/Sales.html

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.