<tfoot id='mwABm'></tfoot>

      <bdo id='mwABm'></bdo><ul id='mwABm'></ul>

    1. <i id='mwABm'><tr id='mwABm'><dt id='mwABm'><q id='mwABm'><span id='mwABm'><b id='mwABm'><form id='mwABm'><ins id='mwABm'></ins><ul id='mwABm'></ul><sub id='mwABm'></sub></form><legend id='mwABm'></legend><bdo id='mwABm'><pre id='mwABm'><center id='mwABm'></center></pre></bdo></b><th id='mwABm'></th></span></q></dt></tr></i><div id='mwABm'><tfoot id='mwABm'></tfoot><dl id='mwABm'><fieldset id='mwABm'></fieldset></dl></div>
      <legend id='mwABm'><style id='mwABm'><dir id='mwABm'><q id='mwABm'></q></dir></style></legend>

        <small id='mwABm'></small><noframes id='mwABm'>

        如何在 opencart 的导航菜单中添加信息链接?

        时间:2023-10-11

          <legend id='q5t53'><style id='q5t53'><dir id='q5t53'><q id='q5t53'></q></dir></style></legend>

            <tfoot id='q5t53'></tfoot>
            • <bdo id='q5t53'></bdo><ul id='q5t53'></ul>

              1. <small id='q5t53'></small><noframes id='q5t53'>

                <i id='q5t53'><tr id='q5t53'><dt id='q5t53'><q id='q5t53'><span id='q5t53'><b id='q5t53'><form id='q5t53'><ins id='q5t53'></ins><ul id='q5t53'></ul><sub id='q5t53'></sub></form><legend id='q5t53'></legend><bdo id='q5t53'><pre id='q5t53'><center id='q5t53'></center></pre></bdo></b><th id='q5t53'></th></span></q></dt></tr></i><div id='q5t53'><tfoot id='q5t53'></tfoot><dl id='q5t53'><fieldset id='q5t53'></fieldset></dl></div>

                    <tbody id='q5t53'></tbody>
                1. 本文介绍了如何在 opencart 的导航菜单中添加信息链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  尝试在打开购物车顶部导航菜单

                  Notice: 
                  Undefined variable: 
                           informations in 
                           C:Inetpubvhostsfima.net.inhttpdocscatalogview	hemefima	emplatecommonheader.tpl on line 229
                  Warning: Invalid argument supplied for foreach() in 
                           C:Inetpubvhostsfima.net.inhttpdocscatalogview	hemefima	emplatecommonheader.tpl on line 229
                  

                  代码:

                  <ul>
                       <?php foreach ($informations as $information) { ?>
                         <li>
                            <a href="<?php echo $information['href']; ?>">
                               <?php echo $information['title']; ?>
                            </a>
                        </li>
                       <?php } ?>
                  </ul>
                  

                  推荐答案

                  是的,我终于找到了解决方案

                  Yes, Finally i found the solution

                  在控制器目录下的 header.php 中包含以下几行

                  include this below lines in the header.php under controller directory

                      $this->data['text_information'] = $this->language->get('text_information');
                      $this->data['text_service'] = $this->language->get('text_service');
                      $this->data['text_extra'] = $this->language->get('text_extra');
                      $this->data['text_contact'] = $this->language->get('text_contact');
                      $this->data['text_return'] = $this->language->get('text_return');
                      $this->data['text_sitemap'] = $this->language->get('text_sitemap');
                      $this->data['text_manufacturer'] = $this->language->get('text_manufacturer');
                      $this->data['text_voucher'] = $this->language->get('text_voucher');
                      $this->data['text_affiliate'] = $this->language->get('text_affiliate');
                      $this->data['text_special'] = $this->language->get('text_special');
                      $this->data['text_account'] = $this->language->get('text_account');
                      $this->data['text_order'] = $this->language->get('text_order');
                      $this->data['text_wishlist'] = $this->language->get('text_wishlist');
                      $this->data['text_newsletter'] = $this->language->get('text_newsletter');
                  
                      $this->load->model('catalog/information');
                  
                      $this->data['informations'] = array();
                  
                      foreach ($this->model_catalog_information->getInformations() as $result) {
                          if ($result['bottom']) {
                              $this->data['informations'][] = array(
                                  'title' => $result['title'],
                                  'href'  => $this->url->link('information/information', 'information_id=' . $result['information_id'])
                              );
                          }
                      }
                  
                      $this->data['contact'] = $this->url->link('information/contact');
                      $this->data['return'] = $this->url->link('account/return/insert', '', 'SSL');
                      $this->data['sitemap'] = $this->url->link('information/sitemap');
                      $this->data['manufacturer'] = $this->url->link('product/manufacturer');
                      $this->data['voucher'] = $this->url->link('account/voucher', '', 'SSL');
                      $this->data['affiliate'] = $this->url->link('affiliate/account', '', 'SSL');
                      $this->data['special'] = $this->url->link('product/special');
                      $this->data['account'] = $this->url->link('account/account', '', 'SSL');
                      $this->data['order'] = $this->url->link('account/order', '', 'SSL');
                      $this->data['wishlist'] = $this->url->link('account/wishlist', '', 'SSL');
                      $this->data['newsletter'] = $this->url->link('account/newsletter', '', 'SSL');  
                  

                  这篇关于如何在 opencart 的导航菜单中添加信息链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 php 在菜单项上设置活动类 下一篇:在 wordpress 的子菜单中单击时子菜单消失

                  相关文章

                  <small id='Uba5N'></small><noframes id='Uba5N'>

                  <i id='Uba5N'><tr id='Uba5N'><dt id='Uba5N'><q id='Uba5N'><span id='Uba5N'><b id='Uba5N'><form id='Uba5N'><ins id='Uba5N'></ins><ul id='Uba5N'></ul><sub id='Uba5N'></sub></form><legend id='Uba5N'></legend><bdo id='Uba5N'><pre id='Uba5N'><center id='Uba5N'></center></pre></bdo></b><th id='Uba5N'></th></span></q></dt></tr></i><div id='Uba5N'><tfoot id='Uba5N'></tfoot><dl id='Uba5N'><fieldset id='Uba5N'></fieldset></dl></div>
                2. <tfoot id='Uba5N'></tfoot>

                  <legend id='Uba5N'><style id='Uba5N'><dir id='Uba5N'><q id='Uba5N'></q></dir></style></legend>
                  • <bdo id='Uba5N'></bdo><ul id='Uba5N'></ul>