/** * Returns the HTML string for insertion into the header. * * @param string $uid Unique identifier for the output if the content is placed more than once on the same page * @param array &$tags Result array for the list of tags that are associated to the output * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) * @return string|null String including HTML tags for the header on error */ public function getHeader($uid = '', array &$tags = array(), &$expire = null) { $view = $this->getView(); $step = $view->get('standardStepActive'); $onepage = $view->config('client/html/checkout/standard/onepage', array()); if ($step != 'address' && !(in_array('address', $onepage) && in_array($step, $onepage))) { return ''; } return parent::getHeader($uid, $tags, $expire); }
/** * Returns the HTML string for insertion into the header. * * @param string $uid Unique identifier for the output if the content is placed more than once on the same page * @param array &$tags Result array for the list of tags that are associated to the output * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) * @return string|null String including HTML tags for the header on error */ public function getHeader($uid = '', array &$tags = array(), &$expire = null) { $view = $this->getView(); if (!in_array($view->param('standardStepActive'), array('order', 'process'))) { return ''; } return parent::getHeader($uid, $tags, $expire); }
/** * Returns the HTML string for insertion into the header. * * @param string $uid Unique identifier for the output if the content is placed more than once on the same page * @param array &$tags Result array for the list of tags that are associated to the output * @param string|null &$expire Result variable for the expiration date of the output (null for no expiry) * @return string|null String including HTML tags for the header on error */ public function getHeader($uid = '', array &$tags = array(), &$expire = null) { $view = $this->getView(); if ($view->get('standardStepActive') != 'order') { return ''; } return parent::getHeader($uid, $tags, $expire); }