JShop Woes

Associate
Joined
21 Sep 2007
Posts
453
Is anyone here versed in JShop?

It's a horrible shopping platform to work with, but sadly I have to deal with it.

I need to make the menu iterate through all the subsections. Now the default template only caters for 2 tiers/levels (despite you being able to set the number of tiers/levels in the backend, without a modified template this setting changes nothing!)

Now I have managed to get a 3rd level working e.g. Root > Cat1 > Sub1 > SubSub1 but I need to get SubSubSub1 to show.

The 4th section shows in the breadcrumbs, and when I click a lnk in SubSub1, i can see the page containgin links for SubSubSub1 and access the page.

Oddly, When I click on SubSub1, the menu goes back to only showing upto Sub1.

Hope this makes sense lol.

Here is the code I have currently:

Code:
<#loop:rootsection#>
                    <#if:section.rootsectionID:eq:rootsection.sectionid#>
                        <li><a href="{rootsection.link}">{rootsection.title} »</a>
                    <#else#>
                        <li><a href="{rootsection.link}">{rootsection.title}</a>
                    <#/if#>
                    <!-- first level sub-sections -->
                    <#if:rootsection.subcount:neq:0#>
                        <#if:section.rootsectionID:eq:rootsection.sectionid#>
                            <ul>
                            <#loop:rootsection.subsections#>
                                <#if:section.sectionID:eq:rootsection.subsections.sectionid#>       
                                    <li><a href="{rootsection.subsections.link}">{rootsection.subsections.title} »</a>
						<ul><!-- this is what i added to make the 3rd level -->
						<#loop:sections#>
					               <li><a href="{sections.link}">{sections.title}</a></li>
						<#/loop#>
						</ul><!-- end of my code -->
				</li>
                                <#else#>
                                    <li><a href="{rootsection.subsections.link}">{rootsection.subsections.title}</a></li>
                                <#/if#>
                            <#/loop#>
                            </ul>
                        <#/if#>
                    <#/if#>
                    </li>
                    <!-- /first level sub-sections -->
                <#/loop#>

I managed to mangle the 3rd level in, and have some small success with getting the subsubsub1 items to show, but they show under all subsub1 heading, so its wrong lol

What brightspark thought this was a good system??????
 
Back
Top Bottom