I have added tax rule in
sales -> manage tax rules
and associate with customer tax class.
Now how can I programatically get this rules or fetch all the rules defined here ?
I tried this
$tax = Mage::getModel('tax/calculation')->getCollection();
foreach($tax as $rr) {
echo $rr->getRuleName();
echo $rr->getRuleId();
echo '<br>';
}
but getting blank