/** * Provides url for Back button * * @return string */ public function getBackUrl() { if ($this->getRequest()->getParam('custom')) { return $this->getUrl('*/*/select'); } else { return parent::getBackUrl(); } }
public function getBackUrl() { if ($this->getRequest()->getParam('return_customer_id')) { return $this->getUrl('adminhtml/customer/edit/', array('id' => $this->getRequest()->getParam('return_customer_id'), 'tab' => 'Tickets')); } if ($this->getRequest()->getParam('return_order_id')) { return $this->getUrl('adminhtml/sales_order/view/', array('order_id' => $this->getRequest()->getParam('return_order_id'), 'tab' => 'Tickets')); } return parent::getBackUrl(); }
/** * Get URL for back (reset) button * * @return string */ public function getBackUrl() { $referer = $this->getRequest()->getServer('HTTP_REFERER'); if (strpos($referer, 'sales_order') !== false) { return $this->getUrl('*/sales_order/view/', array('order_id' => $this->getRma()->getOrderId(), 'active_tab' => 'order_rma')); } elseif (strpos($referer, 'customer') !== false) { return $this->getUrl('*/customer/edit/', array('id' => $this->getRma()->getCustomerId(), 'active_tab' => 'customer_edit_tab_rma')); } else { return parent::getBackUrl(); } }
/** * Retrieves url for Back button * * @return string */ public function getBackUrl() { if ($this->_getCategoryId() && $this->_getProductId()) { return $this->getUrl('*/*/select', array('type' => 'category', 'product' => $this->_getProductId())); } elseif ($this->_getProductId()) { return $this->getUrl('*/*/select', array('type' => 'product')); } elseif ($this->_getCategoryId()) { return $this->getUrl('*/*/select', array('type' => 'category')); } return parent::getBackUrl(); }
/** * Retrieve form back url * * @return string */ public function getBackUrl() { if ($this->getRequest()->getParam('category')) { return $this->getUrl('*/catalog_category/edit', array('clear' => 1, 'id' => $this->getEvent()->getCategoryId())); } elseif (!$this->getEvent()->getId() && $this->getEvent()->getCategoryId()) { return $this->getUrl('*/*/new', array('_current' => true, 'category_id' => null)); } return parent::getBackUrl(); }