I still need help with this though
I was wondering if anyone knew how to change toe colour of the menu item if it is selected, It works okay for the default items like home login etc etc but I cant get it to work for Events and Work shops. Can anyone help. Code from header.tpl below
<div class="div5">
<div class="left"></div>
<div class="div4"><a href="<?php echo str_replace('&', '&', $home); ?>" id="tab_home"><?php echo $text_home; ?></a>
<?php if (!$logged) { ?>
<a href="<?php echo str_replace('&', '&', $login); ?>" id="tab_login"><?php echo $text_login; ?></a>
<?php } else { ?>
<a href="<?php echo str_replace('&', '&', $logout); ?>" id="tab_logout"><?php echo $text_logout; ?></a>
<?php } ?>
<a href="<?php echo str_replace('&', '&', $account); ?>" id="tab_account"><?php echo $text_account; ?></a><a href="<?php echo str_replace('&', '&', $cart); ?>" id="tab_cart"><?php echo $text_cart; ?></a><a href="<?php echo str_replace('&', '&', $checkout); ?>" id="tab_checkout"><?php echo $text_checkout; ?></a>
<a href="http://MYSTORE/store/index.php?route=in ... >Events</a>
<a href="http://MYSTORE/store/index.php?route=in ... id=7">Work Shops</a></div>
Darren
Code: Select all
<script type="text/javascript"><!--
$(document).ready(function() {
route = getURLVar('route');
if (!route) {
$('#tab_home').addClass('selected');
} else {
part = route.split('/');
if (route == 'common/home') {
$('#tab_home').addClass('selected');
} else if (route == 'account/login') {
$('#tab_login').addClass('selected');
} else if (part[0] == 'account') {
$('#tab_account').addClass('selected');
} else if (route == 'checkout/cart') {
$('#tab_cart').addClass('selected');
} else if (part[0] == 'checkout') {
$('#tab_checkout').addClass('selected');
} else {
$('#tab_home').addClass('selected');
}
}
});
//--></script>
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
One issue that is obvious with this approach is that you need to be able to tolerate having these categories appear in the sidebar menu with (0) product counts. Hmm, guess it's not perfect. I need to find a twig to edit or does anyone know of a plug-in that might provide better top menu control?
StormDesigns, Inc. Website Design and Web Application Development - plus graphic design and print media.
www.StormDesigns.com
StormDesigns, Inc. Website Design and Web Application Development - plus graphic design and print media.
www.StormDesigns.com
https://www.opencart.com/index.php?rout ... load_id=36
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
I have been on this opencart idea since 2 days' ago, which does not sound like a lot, but I've already been through the months of thinking about all of the options and finally decided on opencart, so these 2 full days were simply to start developing a website by downloading the latest version on the downloads page and getting on with it... Then I miraculously found a downloadable theme with my exacting requirement {which I thought may take days to find} , so I installed that to a load of error messages, thinking back I realized it's because that theme does not support latest version, so now I am trying to decide whether I should go the 2 or 3 route, oh but then there is 3.1 probably going to come the day after I have bit the bullet and wasted x time
{will it matter? will both 2 or 3 migrate into 3.1 the same? will 3.1 be a buggy mess for 2 years so I don't need to care?
I wish I didn't have to care, but I need to know!! }
https://github.com/IP-CAM?utf8=%E2%9C%9 ... &language=
Maybe this one:
https://github.com/IP-CAM/Opencart-Super-Mega-Menu
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
You seem to expect more, than you probably will get, I fear. And it all depends on your Codewill 3.1 be a buggy mess for 2 years so I don't need to care? I wish I didn't have to care, but I need to know!!
Knowledge as well, because Opencart is a continuing Development, and it's NOT consisting
out of so-called 'final' Releases. It only changes Version Numbers, after a range of 'important'
changes have been made, and so basically starts from Scratch again, with every 'latest' Version
released. It's one good reason, why it comes for free, because otherways, they would be fools,
to share their knowledge and hard work, just to one day get a better place in heaven ...
And since OC only consists out of a few People, they have just not the capabilities, to test everything
from a to z.
And since OC is Open Source, every Mod + Theme Creator is free, to do his/her own things with OC.
And as a consequence of that, some OC Extensions might not function, in combination with other
Extensions or Themes, as they come by defaut. It therefore all depends on how much 'basic'
knowledge one has, to make OC work as planned, if one uses anything, not part of a Default OC
Installation. And it's also advised, to first check, which OC Version is already known, to belong
to the most solid Releases, and/or then, if possibly some 'private' Editions exist, already equipped
with a range of important fixes, in order to avoid possible problems, where Solutions already exist,
like those:
https://github.com/IP-CAM/Opencart-1.5.6.5-Edge
https://github.com/IP-CAM/Opencart_2302
https://github.com/IP-CAM/Opencart_3020
And better don't argue about it, but take it, as it comes, as long as it comes for free!
Nobody else would care about anyway.
Good Luck, no offense, nothing personal, just plain information.
Ernie
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.
Users browsing this forum: No registered users and 16 guests