Following methods of the Config.php(app/code/core/Mage/Tax/Model) need to be changed as follows to display the product price excluding GST
public function getPriceDisplayType($store = null)
{
$groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
if (isset($groupId) && ($groupId == 2) &&
((int)$this->_getStoreConfig(self::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE, $store)) == self::DISPLAY_TYPE_INCLUDING_TAX){
return self::DISPLAY_TYPE_EXCLUDING_TAX;
}
return (int)$this->_getStoreConfig(self::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE, $store);
}
public function displayCartPricesInclTax($store = null)
{
$groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
if (isset($groupId) && ($groupId == 2) &&
((int)$this->_getStoreConfig(self::XML_PATH_DISPLAY_CART_PRICE, $store)) == self::DISPLAY_TYPE_INCLUDING_TAX){
return false;
}
return $this->_getStoreConfig(self::XML_PATH_DISPLAY_CART_PRICE, $store) == self::DISPLAY_TYPE_INCLUDING_TAX;
}
public function displayCartPricesExclTax($store = null)
{
$groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
if (isset($groupId) && ($groupId == 2) &&
((int)$this->_getStoreConfig(self::XML_PATH_DISPLAY_CART_PRICE, $store)) == self::DISPLAY_TYPE_INCLUDING_TAX){
return true;
}
return $this->_getStoreConfig(self::XML_PATH_DISPLAY_CART_PRICE, $store) == self::DISPLAY_TYPE_EXCLUDING_TAX;
}
Posted by vasan to vasan's deck (2014-09-17 08:30)