X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   4 Level SEO friendly Flyout Menus - 4.1.x compatible (https://forum.x-cart.com/showthread.php?t=32668)

2coolbaby 07-25-2008 01:46 PM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
Does anyone know how I can get rid of that ugly plus sign that is before any categories that have a subcategory? Probably something simple, but I can't figure it out.

konadnailart 07-26-2008 04:54 AM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
goto menu.tpl

look for this line

{assign var=subcatSymbol value='<b id="floatingBold">+</b>'}

just remove the +

This mod works great on 4.1.9

Amost bought a the mod.

Thanks

rick2003 08-22-2008 10:33 AM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
within the product.tpl, when i review the product, the subcategory will not show any more, please help. Here is the code for menu.tpl

followed exactly the instruction in first page.

website: www.lywoo.com, please click on a product, you will see that the flyout menu is not working anymore. 4.1.9 version xcart

Quote:

{capture name=menu}
<ul id="navmenu">
{assign var=counter value=0}
{foreach from=$categories item=level_one_cat name="Root"}
{assign var=counter value=$counter+1}
{if $level_one_cat.parentid eq 0 and $level_one_cat.avail eq "Y"}
<li><a href="/home.php?cat={$level_one_cat.categoryid}" alt="{$level_one_cat.category}">{$level_one_cat.ca tegory}{if $level_one_cat.subcategory_count gt 0}{/if}</a>
{if $level_one_cat.subcategory_count gt 0}
<ul id="navmenu1">
{foreach from=$allcategories item=level_two_cat name="Level_Two"}
{assign var=counter value=$counter+1}
{if $level_two_cat.parentid eq $level_one_cat.categoryid}
<li><a href="/home.php?cat={$level_two_cat.categoryid}" alt="{$level_two_cat.category}">{$level_two_cat.ca tegory}{if $level_two_cat.subcategory_count gt 0}{/if}</a>
{if $level_two_cat.subcategory_count gt 0}
<ul>
{foreach from=$allcategories item=level_three_cat name="Level_Three"}
{assign var=counter value=$counter+1}
{if $level_three_cat.parentid eq $level_two_cat.categoryid}
<li><a href="/home.php?cat={$level_three_cat.categoryid}" alt="{$level_three_cat.category}">{$level_three_ca t.category}{if $level_three_cat.subcategory_count gt 0}{/if}</a>
{if $level_three_cat.subcategory_count gt 0}
<ul>
{foreach from=$allcategories item=level_four_cat name="Level_Four"}
{assign var=counter value=$counter+1}
{if $level_four_cat.parentid eq $level_three_cat.categoryid}
<li><a href="/home.php?cat={$level_four_cat.categoryid}" alt="{$level_four_cat.category}">{$level_four_cat. category}</a></li>
{/if}
{/foreach}
</ul>
{/if}
</li>
{/if}
{/foreach}
</ul>
{/if}
</li>
{/if}
{/foreach}
</ul>
{/if}
</li>
{/if}
{/foreach}
</ul>
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}

autobulbs 09-16-2008 03:24 AM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
I assume you've done this:

open /home.php.
Find:
Code:

define('OFFERS_DONT_SHOW_NEW',1);
require "./auth.php";


After, add:
Code:

/* Makes fly-out menus show all levels properly */
define("GET_ALL_CATEGORIES", true);


Now do the same for manufacturers.php and product.php

JWait 09-16-2008 05:05 AM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
Since there appears to several variations with this mod is there a recommendation for which to use with the latest version (4.1.11, and also 4.1.10) of X-cart? Right now I am using the 4-level vertical flyout menu from xcartmods.co.uk but it doesn't validate for XHTML 1.0 Transitional.

PhilJ 09-16-2008 05:56 AM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
@ JWait, it should validate, unless you are using an older version of the mod.

JWait 09-16-2008 07:39 AM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
The errors I get are...
Code:

#  Error  Line 201, Column 4: end tag for "ul" which is not finished.

</ul>



Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.


I think it has to do with the fact that the tags are nested (and are unclosed) which isn't allowed for XHTML 1.0 Transitional from what I understand. The instructions said something about using HTML 4.01 Transitional (with a loose.dtd) but that doesn't validate with the rest of the page.
The version I have probably is an older version as I wasn't even aware there is a newer one.

jhug 11-03-2008 06:37 AM

Having a strange issue with this mod
 
I have 3 root level categories that are not showing up when I use this modification in 4.1.9. All three categories have category ids in the 100s (179, 184, 194). This is the only commonality between the categories that I can see. I have tried switching the sort order thinking it might be limiting the number of root categories it was showing to 10, but that does not help. All of the subcategories do show up for the root categories that work (even those with category ids in the 100s (e.g. 172) ).

The only other similarity is that these 3 categories do not have any subcategories. However, I added fake subcategories and products into those subcategories, cleared the template cache, cleared the browser cache and still the root level categories did not appear.

Any thoughts?

stizz 11-14-2008 12:56 PM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
Hey dudes,
We've added the 4 level flyout menus and it works fine! Thanks. Now we would like to change the vertical flyout menu into a horizontal flyout menu... We really don't have a clue where to start :). Is there anyone who knows what we should change????

Thanks in advance!
Greetings from cold rainy Holland!

Peter & Yorick

JWait 11-15-2008 07:35 AM

Re: 4 Level SEO friendly Flyout Menus - 4.1.x compatible
 
http://www.xcartmods.co.uk/x-cart-4-level-horizontal-dropdown-category-menu-v4x-x-cart-mods-pr-6.html


All times are GMT -8. The time now is 01:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.