Ejemplo n.º 1
0
 public function getCacheKey()
 {
     if (!$this->_isCacheActive()) {
         return parent::getCacheKey();
     }
     $_taxCalculator = Mage::getModel('tax/calculation');
     $_customer = Mage::getSingleton('customer/session')->getCustomer();
     $_product = $this->getProduct();
     return 'ProductView' . $_product->getId() . '_' . Mage::App()->getStore()->getCode() . '_' . Mage::App()->getStore()->getCurrentCurrencyCode() . '_' . $this->helper('customer')->isLoggedIn() . '_' . $_customer->getGroupId() . '_' . $_taxCalculator->getRate($_taxCalculator->getRateRequest()->setProductClassId($_product->getTaxClassId())) . '_';
 }