0

I want to override the getShippingIncludeTax() method in the class Mage_Tax_Block_Checkout_Shipping , this block is defined as a renderer in the config;

<sales>
    <quote>
        <totals>
            <shipping>
                <renderer>tax/checkout_shipping</renderer>
            </shipping>
        </totals>
    </quote>
</sales>

I can override a block if needed, but this class doesn't have any Block definition. How do I override this?

NOTE: This is not a typical Block override.

Daniel Widdis
  • 8,424
  • 13
  • 41
  • 63
Subrata
  • 2,216
  • 3
  • 24
  • 38

1 Answers1

1

You can just create a module that overrides Mage_Tax_Block_Checkout_Shipping...

 <global>
    <blocks>
        <tax>
            <rewrite>
                <checkout_shipping>Test_TestModule_Block_Tax_Checkout_Shipping</checkout_shipping>
            </rewrite>
        </tax>
    </blocks>
</global>
Ricardo Martins
  • 5,702
  • 3
  • 40
  • 59