Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
core_totals_config.php
Go to the documentation of this file.
1 <?php
7 return [
8  // Totals declared in Magento_Sales
9  'subtotal' => ['after' => [], 'before' => ['grand_total']],
10  'shipping' => [
11  'after' => ['subtotal', 'freeshipping', 'tax_subtotal'],
12  'before' => ['grand_total'],
13  ],
14  'grand_total' => ['after' => ['subtotal'], 'before' => []],
15  'msrp' => ['after' => [], 'before' => []],
16  // Totals declared in Magento_SalesRule
17  'freeshipping' => ['after' => ['subtotal'], 'before' => ['tax_subtotal', 'shipping']],
18  'discount' => ['after' => ['subtotal', 'shipping'], 'before' => ['grand_total']],
19  // Totals declared in Magento_Tax
20  'tax_subtotal' => ['after' => ['freeshipping'], 'before' => ['tax', 'discount']],
21  'tax_shipping' => ['after' => ['shipping'], 'before' => ['tax', 'discount']],
22  'tax' => ['after' => ['subtotal', 'shipping'], 'before' => ['grand_total']],
23  // Totals declared in Magento_Weee
24  'weee' => ['after' => ['subtotal', 'tax', 'discount', 'grand_total', 'shipping'], 'before' => []]
25 ];