How do I obtain the value of an order (cart) without taxes, shipping order and voucher discounts?

by Mihai I   Last Updated August 14, 2019 14:09 PM

I am trying to develop a module that calculates the value of a parameter and shows it in a page. (I am 95% sure that I need the value that is shown by default in cart subtotal at the cart checkout) How can I obtain that value and calculate it in a controller? (How do I obtain the value of the tax, shipping order and the voucher discount, cart subtotal). Are there differences between where the parameters are saved in the database based on the extensions that the user had installed?

Related Questions

How to Add Custom Column in Cart Page- Magento2

Updated June 02, 2017 11:09 AM