Specials Page Opencart

Please LogIn to Reply!

Post By: guest | 01-20-2013 07:57 Reply

Question

Hello,

I have added some products in to my specials page how can i get the "specials" to show in the main menu at the top

regards
shaun

Answers

Find header.tpl in catalog-->view-->theme--yourtheme-->template-->common
Put this code

Code: Select all
<li><a href="<?php echo $special; ?>"> Specials </a></li>

below
Code: Select all
<div id="menu">
<ul>
    <?php foreach ($categories as $category) { ?>
....

before
Code: Select all
</ul>
</div>

like this
Code: Select all
<div id="menu">
  <ul>
    <?php foreach ($categories as $category) { ?>
    <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
      <?php if ($category['children']) { ?>
      <div>
        <?php for ($i = 0; $i < count($category['children']);) { ?>
        <ul>
          <?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
          <?php for (; $i < $j; $i++) { ?>
          <?php if (isset($category['children'][$i])) { ?>
          <li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
          <?php } ?>
          <?php } ?>
        </ul>
        <?php } ?>
      </div>
      <?php } ?>
    </li>
    <?php } ?>
   <li><a href="<?php echo $special; ?>"> Specials </a></li>
  </ul>
</div>

Or if you were thinking of the Specials box, then:

Admin > Extensions > Modules > Specials (Install/Edit) > Click "Add Module" button, adjust the settings, and click the "Save" button.

thanks

Reply Or Comment!
Please LogIn to Reply!