getParentBlock()->getNameInLayout()){ return true; } return false; } public function _isEcommerce() { Mage::log($this->getRequest()->getPathInfo()); if(Mage::getStoreConfigFlag('aromicon_gua/ecommerce/enable') && $this->getRequest()->getPathInfo() == '/checkout/onepage/success/'){ return true; } return false; } public function getOrder() { $orderId = Mage::getSingleton('checkout/session')->getLastOrderId(); return Mage::getModel('sales/order')->load($orderId); } public function getTransactionIdField() { return Mage::getStoreConfig('aromicon_gua/ecommerce/transaction_id') != false ? Mage::getStoreConfig('aromicon_gua/ecommerce/transaction_id') : 'entity_id'; } }