Magento 1.7 – Show Prices Including and Excluding Tax on Product View Page

magento-1.7price

I know that it can be set easily under System->Configuration->Sales->Tax to change how tax is displayed for 'Price Display Setting' and 'Display Product Prices In Catalog'.

The problem being that this changes the display for both Category view and Product view.

How can I get the price to display as just the Excluding Tax on the category view and show both Including and Excluding tax for Product view page?

Best Answer

Set the config value to Both including and excluding tax and then ...

You can try to manipulate the config for the category page.
Use the event controller_action_predispatch_catalog_category_view - the event dispatched before the executing of the catalog category view page. and add this in the observer.

$config = Mage::getConfig();
$code = Mage::app()->getStore()->getCode();
$config->setNode("stores/$code/tax/display/type", 1);