예제 #1
0
 public function getReportClaimsPage()
 {
     if (!Configuration::get('YRS_API_KEY') || !$this->yapi->checkIsProperlyInstalled()) {
         return;
     }
     if ($this->context->customer->id !== null) {
         $redirect_url = $this->getOrderHistoryUrl();
         if (Tools::getIsset('ordersPage')) {
             $redirect_url .= (parse_url($redirect_url, PHP_URL_QUERY) ? '&' : '?') . 'ordersPage';
         }
         Tools::redirect($redirect_url);
     }
     $this->setTemplate('reportClaims.tpl');
     parent::init();
     parent::setMedia();
     $base_url = Tools::getCurrentUrlProtocolPrefix() . Tools::getShopDomainSsl() . __PS_BASE_URI__;
     $this->addJS($base_url . 'modules/yousticeresolutionsystem/views/js/yrs_report_claims.js');
     parent::initHeader();
     parent::initContent();
     parent::initFooter();
     $this->display();
     exit;
 }