0

I got the shipping address from the customer IP and set it to Quote. And the total price includes the tax price. But I don't know how to get the tax price.

Please let me know.

1 Answer 1

0
\Magento\Checkout\Model\Cart $customerCart

$tax_amount = $this->customerCart->getQuote()->getShippingAddress()->getData('tax_amount');

This returns the tax amount.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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