How to get grand total without tax in Magento2 shopping cart page?
-
31-12-2020 - |
Question
Hi please help me on this it's little urgent thanks in advance,
How to get grand total without tax in Magento2 shopping cart page
let me explain it, i have added product in backend with price : 10 rs ( inclusive of tax 10 % manually calculated from my side ) , tax class : 10% tax so tax is 1rs for that product, now i need in checkout page & in cart page should look like ;
Subtotal : 10 rs
tax ( 10% ) : 1rs
Grand total : 10 Rs
pls help me in th
Solution
If you don't want to show the tax at your frontend just go to your admin & traverse to the below location
admin > Stores > Configurations > Sates > Tax > Shopping Cart Display Settings
Set Display Prices
to Including Tax & Display Subtotal
to Including Tax like the given Image
& save it Then see the frontend changes it will not show the tax there
Here in the image the actual product price is $18.86 but it is showing it as $19.99 including tax on the shopping cart page.
Note: Make sure when you do this changes
- don't enter the price into the product listing including tax just put the price there excluding tax it will show the tax as per your requirement.
your cache is set to disabled or run the below command from your magento root
php bin/magento cache:flush