After July 2021, the 2.3.x release line will no longer receive quality fixes, or user guide updates. PHP 7.3 reaches end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in April 2022. We strongly recommend planning your upgrade now to Adobe Commerce 2.4.x and PHP 7.4.x to help maintain PCI compliance.

Checkout Totals Sort Order

During Order Review, the total appears at the bottom of the order, with any adjustments for discounts, shipping charges, store credit, and tax. The order of each item determines the sequence of the calculations, and is set in the configuration by a number that is assigned to each item. For example, the Subtotal is the first item in the section, and is assigned a value of 10. The Grand Total appears last, and is assigned a value of 100. All of the other items in the totals section are assigned a value between those values.

The Order Summary displays the checkout total Checkout totals on the storefront

Configure the checkout totals sort order

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In left panel, expand the Sales section and choose Sales underneath.

  3. Expand Expansion selector the Checkout Totals Sort Order section.

    The checkout totals options ae numbered to determine the sort order Configuring the checkout totals sort order

  4. If the setting is for a specific store view, choose the store view where the configuration applies.

    When prompted, click OK to continue.

  5. Change the number assigned to each item to determine its order in the Totals section.

    The lower the value, the earlier its placement in the list. In the default configuration, the Subtotal (10) will be the first and Grand total (100) will be the last.

    If necessary, clear the Use system value checkbox to complete these changes.

  6. Click Save Config.