Hi I need some help with a HTMl menu in my opencart website I built for a client, I am stuck with why the menu does not work when in product page but works in every other page? I can't see or work out why the link to the page where it does not work is below http://trunkmemory.com/index.php?route=product/product&path=59&product_id=58 the same site but different page where it does work is below http://trunkmemory.com/index.php?route=common/home Below is the header.tpl pastebin link with the menu code in http://pastebin.com/J6ZKWddH Below is the product.tpl pastebin link http://pastebin.com/8CgnBJ5W I have asked in the opencart forum but no one in there can work it out either Hope someone can help me please Thank you in advance Ian
Since disabling javascript fixes the issue, I'd start looking at those scripts for some sort of onclick handler that returns 'false'. cheers, gary
Hard do say now, it appears the domain has been suspended by ICANN... But the stuff you shared in pastebin raises some concerns -- like that IE conditional; you have to resort to that you've probably done something horribly and terribly wrong.... like resorting to a pngfix instead of using a png format or file format that actually works. (NOT a fan of alpha transparency, usually close enough AA with palette works just fine!). I suspect you have many DIV for nothing, you seem to have DIV+IMG doing a H1 and gilder levin's job, the code drops in and out of PHP willy nilly for no good reason other than code bloat, assuming your hosting on a MODERN PHP you should probably be using the <?= shorttag more (if at all, much of that would be far cleaner as a single echo), you're in 5 so you don't need the xml closures... laundry list of how not to build the page... though ENTIRELY what I've come to expect from sleazy nube predating "off the shelf" solutions that border upon being scams since the people who make these programs -- to be brutally frank -- have no business writing code for other people. Of course with all that scripttard code bloat in there, I'm not at all surprised it has "problems" since, well... jQuery is the highway to hell. "We're going dowwwwn". Just simple crap like this: <div id="container"> <div id="header"> <div class="header-banner"> <img src="catalog/view/theme/default/image/trunk-elephants-banner.jpg" alt="" title=""> </div> <?php if ($logo) { ?> <div id="logo"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a></div> <?php } ?> <?php echo $language; ?> <?php echo $currency; ?> Code (markup): Throws up endless warning signs for me.... like DIV doing h1's job, PHP and some 'logo' nonsense doing CSS' job, endlessly pointlessly dropping in and out of PHP for no reason, multiple echo doing one echo's job...