title: Magento: showing prices ex/inc TAX/VAT depending on customer group
body: <p>Previously I have implemented a 'trade only' store front that shows both in and ex-VAT prices for trade customers. They still get billed the VAT, it is just the catalog shows ex-VAT prices as well as the regular inc VAT prices.</p>
  <p>I would like to be able to implement the same functionality without creating a new store front, i.e. if someone is in the 'trade' customer group, they get prices shown inc and ex vat. They are still on the same tax rate as everyone else, so I am not looking to have a 0% tax group, what I want is just to be able to switch the prices based on their group. This also includes the labels, so there isn't just a price but a clear indication of inc/ex VAT/TAX.</p>
  <p>It took me a while to Google this with 'tax' instead of 'VAT', however, to date I haven't found many clues as to where to start. If there is a reason why this cannot be done easily then I would like to know. Failing that, if there is a frontend hack to try, e.g. some conditional prototype to un-css-hide the prices/labels then that will have to be the route to go.</p>
  <h3>EDIT</h3>
  <p>Inspired by Clockworkgeek I did this, not yet the perfect module solution, but something that works for me for now:</p>
  <p>Cloned core file to app/code/local/Mage/Tax/Model/Config.php and updated the getPriceDisplayType function:</p>
  <pre><code>public function getPriceDisplayType($store = null)
  {   $customer = Mage::helper('customer')-&gt;getCustomer();
      if ($customer-&gt;getGroupId() &gt; 1) {
          return self::DISPLAY_TYPE_BOTH;
      } else {
      return (int)Mage::getStoreConfig(self::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE, $store);
      }
  }
  </code></pre>
  <p>This relies on 0 being not logged in, 1 being normal customers and any 'special' group higher than that. I did not think it was working at first, but then I logged in...</p>