Example #1
0
 public function getTemplateVarPage()
 {
     $page = parent::getTemplateVarPage();
     $presenter = new CartPresenter();
     $presented_cart = $presenter->present($this->context->cart);
     if (count($presented_cart['products']) == 0) {
         $page['body_classes']['cart-empty'] = true;
     }
     return $page;
 }
Example #2
0
 public function getTemplateVarPage()
 {
     $page = parent::getTemplateVarPage();
     if ($this->assignCase == 2) {
         $page['body_classes']['cms-id-' . $this->cms_category->id] = true;
     } else {
         $page['body_classes']['cms-id-' . $this->cms->id] = true;
         if (!$this->cms->indexation) {
             $page['meta']['robots'] = 'noindex';
         }
     }
     return $page;
 }
 public function getTemplateVarPage()
 {
     $page = parent::getTemplateVarPage();
     $page['title'] = $this->trans('The page you are looking for was not found.', array(), 'Shop.Theme');
     return $page;
 }