We have created tax rates in sales->Taxes->Zone&Rates
with Rate Percent of xx.xx, Can we fetch this fetch this details programmatically before placing order for using it API.
Asked
Active
Viewed 484 times
0

double-beep
- 5,031
- 17
- 33
- 41

SagarPPanchal
- 9,839
- 6
- 34
- 62
1 Answers
0
I found an answer for this question,
$customer_tax_class = '5';
$rates = $tax->load($customer_tax_class, 'customer_tax_class_id');
$request = Mage::getSingleton('tax/calculation')->getRateRequest()->setProductClassId(2)->setCustomerClassId(5);
echo $percent = Mage::getSingleton('tax/calculation')->getRate($request);

SagarPPanchal
- 9,839
- 6
- 34
- 62