try here:
http://forum.opencart.com/viewtopic.php?f=190&t=147086
http://www.opencart.com/index.php?route ... top%20menu
Ernie
openshop.li/cart/
http://forum.opencart.com/viewtopic.php?f=190&t=147086
http://www.opencart.com/index.php?route ... top%20menu
Ernie
openshop.li/cart/
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
If you want to add specific information page you can use my extension
Selected information pages, links in top menu-Many combinations
To add all information pages or pages not in footer use this
Information pages and/or footer links in the top menu - vQmod
If you want to add static link(not multi language, not multi store) you can add it directly in the menu in the header.tpl file, or better with ocmod or vqmod.
Selected information pages, links in top menu-Many combinations
To add all information pages or pages not in footer use this
Information pages and/or footer links in the top menu - vQmod
If you want to add static link(not multi language, not multi store) you can add it directly in the menu in the header.tpl file, or better with ocmod or vqmod.
Suppliers Module - XML, CSV, XLS Product Feed Import and Update
Rich Snippets | Facebook Open Graph Meta Tags | WebP Images
Thanks Ernie,
For the sake of not making too many modifications to code I just added info page as a product category and change layout as Information. Only drawback is that the link is showing in the list of directories on the left and the page showing copy "there are no products in this category"
Agatha,
What is the difference between
v2-OCMOD and v2-vQmod I might try those.
Thx
For the sake of not making too many modifications to code I just added info page as a product category and change layout as Information. Only drawback is that the link is showing in the list of directories on the left and the page showing copy "there are no products in this category"
Agatha,
What is the difference between
v2-OCMOD and v2-vQmod I might try those.
Thx
This is how I do it, in such cases:
OpenCart v.1.5.6.x
c:\JTI_Servers\openshop.li\cart\catalog\view\theme\default\template\common\header.tpl
so, in OC2, adding this:
<li><a href="http://www.whatever.com/testfile.html" title="Blog Articles" target="_blank">Blog Articles</a></li>
would look like this:
Good Luck
Ernie
openshop.li/cart/
OpenCart v.1.5.6.x
c:\JTI_Servers\openshop.li\cart\catalog\view\theme\default\template\common\header.tpl
Code: Select all
<?php if ($categories) { ?>
<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 style="text-align:left;" />
<?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="http://www.whatever.com/testfile.html" title="Blog Articles" target="_blank">Blog Articles</a></li>
</ul>
</div>
<?php } ?>
<li><a href="http://www.whatever.com/testfile.html" title="Blog Articles" target="_blank">Blog Articles</a></li>
would look like this:
Code: Select all
<?php if ($categories) { ?>
<div class="container">
<nav id="menu" class="navbar">
<div class="navbar-header"><span id="category" class="visible-xs"><?php echo $text_category; ?></span>
<button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<?php foreach ($categories as $category) { ?>
<?php if ($category['children']) { ?>
<li class="dropdown"><a href="<?php echo $category['href']; ?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo $category['name']; ?></a>
<div class="dropdown-menu">
<div class="dropdown-inner">
<?php foreach (array_chunk($category['children'], ceil(count($category['children']) / $category['column'])) as $children) { ?>
<ul class="list-unstyled">
<?php foreach ($children as $child) { ?>
<li><a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a></li>
<?php } ?>
</ul>
<?php } ?>
</div>
<a href="<?php echo $category['href']; ?>" class="see-all"><?php echo $text_all; ?> <?php echo $category['name']; ?></a> </div>
</li>
<?php } else { ?>
<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
<?php } ?>
<?php } ?>
<li><a href="http://www.whatever.com/testfile.html" title="Blog Articles" target="_blank">Blog Articles</a></li>
</ul>
</div>
</nav>
</div>
<?php } ?>
Ernie
openshop.li/cart/
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Basically, NONE. They do the same, namely, using some MARKERS/TAGS, in the Source, to add/replace/remove something, by adding ADDITIONS, to existing Source Code, and create a 'workable' Template-Temp File WITH the 'Result' of such Doings.avorob wrote:What is the difference between v2-OCMOD and v2-vQmod I might try those.
But, if you use 'em both, they both sometimes try to do the SAME, using a COMMON MARKERS/TAG, to achieve something. And this is, in most cases, not so good, because, ONE is NOT prepared, possibly, to FIND/HANDLE such already modified Code, instead of the expected one, very well...
Very generally spoken...
Ernie
openshop.li/cart/
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: No registered users and 88 guests