Shoppica2 Deep SEO optimization, need your help.

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeShoppica2 Deep SEO optimization, need your help.

This topic has been marked as not resolved.

Hello,

I’m working on my shop seo optimization and part of the process is hiding links in header and footer from search engines(such as menu, pages, welome message etc.)

I’ve created the methos to hide links with js and need to separate parts of the shop elements with different files. For examle I’ve cutted header menu code from header.tpl and put them in the file h-mainnav.php.

Code:

  <!-- ---------------------- -->
  <!--    M A I N   N A V     -->
  <!-- ---------------------- -->

    <div class="s_wrap">
      <div class="s_col_12">

        <div id="categories" class="s_nav">
          <?php echo $tbData->menuHTML; ?>
        </div>

        <?php if ($tbData->common['cart_menu_position'] == 'right' && $tbData->common['checkout_enabled']): ?>
        <?php $cart_contents = $tbData->getCartContents(); ?>
        <div id="cart_menu" class="s_nav">
          <a href="<?php echo $shopping_cart; ?>">
            <span class="s_icon"></span>
            <?php if ($tbData->common['show_cart_label'] == '1'): ?>
            <small class="s_text"><?php echo $tbData->text_cart;?></small>
            <?php endif; ?>
            <span class="s_grand_total s_main_color"><?php echo strip_tags($cart_contents['total_sum']); ?></span>
          </a>
          <div class="s_submenu s_cart_holder">
            <?php echo $cart_contents['html']; ?>
          </div>
        </div>
        <?php endif; ?>

      </div>
    </div>

  <!-- end of main navigation -->

I need to get this element working when I trying to open url with this file: http://mobily.com.ua/h/h-mainnav.php
But I getting errors, look likes some files and functions need to be included to h-mainnav.php, but I don’t know which ones.
Please help.

August 13, 2013 at 1:12 pm #26510

any suggestions? please…

August 14, 2013 at 7:33 pm #26572

Hi,

Unfortunately, none of these functions (OpenCart or Shoppica) will work in a separate php file. There is no problem to include it in some of the existing templates though.

Why don’t you use some checks (if (condition) { MENU CODE }< ?code>) in the template directly to hide/show the main navigation?

Best,
ThemeBurn team

August 19, 2013 at 5:56 pm #26707
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.