Post by Lolki » Sat Nov 27, 2010 5:20 pm

Not really a big problem, but there's two lines that stop the page from being valid, according to The W3C Markup Validation Service.

It's an easy fix if you care about that, in /catalog/controller/module/headermenu.php, look at lines 62 and 107.

Line 62:
$output .= '<a class="hide" href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '">' . $result['name'] . '</a>';
Change the & (it's in red above) with &.

Similarly on line 107:
$output .= '<a href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '">' . $result['name'] . '</a>';
Change the & with &.

The page will then be valid.

DarkSoul VII - Metal Radio


User avatar
Newbie

Posts

Joined
Sat Nov 27, 2010 5:05 pm
Location - Bucharest, RO

Post by daledude » Fri Jan 14, 2011 7:03 am

Thanks for this great mod... I got it working on the frontend, but it's giving an error in the admin area... I've tried reverting to backup and starting over and it still does the same thing... Am I missing something?!

Next to "Category" in the Modules in admin, it says:

Code: Select all

<b>Notice</b>: Undefined variable: category_sort_order in <b>/..................../htdocs/test/admin/view/template/module/headermenu.tpl</b> on line <b>49</b>
But there is NOTHING in there for "category"! All instances were replaced with "headermenu". And why is it showing next to Category, and not Header Menu?

Screenshot: http://img222.imageshack.us/i/undefinedvariable.gif/

Thanks for any help... ;D

EDIT: Hrm, nevermind. Disabling, and then uninstalling, both the Category and the Header Menu modules, then only re-activating the Header Menu, seems to cleared up the backend error.

New member

Posts

Joined
Thu Dec 17, 2009 1:30 am

User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by odi2000 » Sun Apr 10, 2011 6:42 pm

Chones wrote:I've posted a much simpler solution here:
http://craigmurray.me.uk/opencart-mods/ ... -opencart/
Chone,

Where in the header.tpl do you add your script? after or before which line?

Using v1.5.4.1


New member

Posts

Joined
Sat Apr 09, 2011 2:13 pm

Post by legend717 » Thu Jun 16, 2011 6:14 pm

MOD - No Work! V.1.4.9
on page admin/index.php?route=extension/module this module is not visible.
Why not lay out a working mod? :choke:

User avatar
New member

Posts

Joined
Tue Sep 21, 2010 2:57 pm

Post by marvinmtz » Sun Jun 26, 2011 6:55 am

After having 7 categories in header the 8 one drops down to the left , is there anyway to keep them going across the page ? Thanks in advance.

Newbie

Posts

Joined
Sun Jun 26, 2011 6:46 am
Who is online

Users browsing this forum: No registered users and 3 guests