I want to get tax rate (percentage) on product-view page. Following code only shows text of tax:
$currentProduct->getAttributeText('tax_class_id')
Thanks for help!
martn
magento2tax
I want to get tax rate (percentage) on product-view page. Following code only shows text of tax:
$currentProduct->getAttributeText('tax_class_id')
Thanks for help!
martn
Best Answer
I achieved getting tax rates by using \Magento\Tax\Api\TaxCalculationInterface: