/** * Define buttons widgets * * @return array */ protected function defineButtons() { $list = parent::defineButtons(); if ($this->getAdditionalButtons()) { $list['additional'] = $this->getWidget(array('template' => 'items_list/model/additional_buttons.tpl')); } return $list; }
/** * Define buttons widgets * * @return array */ protected function defineButtons() { $list = parent::defineButtons(); if (\XLite::getController()->isOrderEditable()) { $list['sendNotification'] = $this->getSendNotificationWidget(); $list['recalculate'] = $this->getRecalculateButton(); } return $list; }
/** * Define buttons widgets * * @return array */ protected function defineButtons() { $list = parent::defineButtons() + $this->getAdditionalButtons(); return $list; }
/** * Define buttons widgets * * @return array */ protected function defineButtons() { $list = parent::defineButtons(); $list['addons-list'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_LABEL => static::t('Back to methods'), \XLite\View\Button\AButton::PARAM_STYLE => 'action addons-list-back-button', \XLite\View\Button\Link::PARAM_LOCATION => $this->buildURL('payment_settings')), '\\XLite\\View\\Button\\SimpleLink'); return $list; }