Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Setting Up Categories, Products, Attributes / New Category doing strange things!

New Category doing strange things!

Started by paul_griffin on 11 May 2012, 2:22 PM · Views: 776

Results 1 to 6 of 6
11 May 2012, 2:22 PM
#1
paul_griffin avatar

paul_griffin

New Zenner

Join Date:
Apr 2012
Location:
Iver, Bucks, UK
Posts:
16
Plugin Contributions:
0

New Category doing strange things!

website: https://www.tomopartstest.co.uk

If you take a look at the site you will see two category boxes, one is Genuine Ford & Motorcraft which works fine. The other is MASSIVE Transit Parts Sale which does not! When I view Code Source from Google Chrome I can see the difference in the code between lines 116 & 124 where the sf-menu is doing two different things. I have no idea whether I should be able to reset something in the Admin panel or whether I should be editing the PHP. Can soomeone with knowledge please take a look and let me know...I'm betting it's something simple but I've been wandering in a wilderness for a couple of hours now...if you need more detail please shout. Thanks for reading...

15 May 2012, 10:53 AM
#2
paul_griffin avatar

paul_griffin

New Zenner

Join Date:
Apr 2012
Location:
Iver, Bucks, UK
Posts:
16
Plugin Contributions:
0

Re: New Category doing strange things!

Ok, so I'm no further forward! I still have what appears to be 3 iterations of the dropdown menus showing on the MASSIVE Transit Sale page, none of the other pages are doing this, I can't see why...is it possible to edit a single page's layout?

15 May 2012, 2:57 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: New Category doing strange things!

Your dropdowns are configured to show the right set when a particular top category (Ford, Citroen, Peugeot) is selected, but there is apparently no provision for limiting the display when the Sale category (which is the only top cat with products instead of subcats) is active. All three sets of dropdowns are showing at once.

Some kind of style rule may be able to fix this; you might also need something in the javascript, but I couldn't help with that.

16 May 2012, 3:25 PM
#4
paul_griffin avatar

paul_griffin

New Zenner

Join Date:
Apr 2012
Location:
Iver, Bucks, UK
Posts:
16
Plugin Contributions:
0

Re: New Category doing strange things!

Thanks for looking! When I "view source" in a browser I can see that the error between a page that works fine and the Sale page that obv doesn't. The difference appears to be one small line of code...the one that works says (before the list of menu items) "<div id="tab1" Style= "display: none:"> and the ones that fail say (before)<div id="tab1"

If I knew where to find that code I think I might be able to edit the code, save and 'Put' and job done but I can't find where the code lives...if anyone has THAT answer I'd be very grateful indeed!

16 May 2012, 5:37 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: New Category doing strange things!

I expect that code is built dynamically based on criteria like what the current page or cPath is. You won't find code that straight out says <div id="tab1" Style= "display: none:">, but some PHP that creates the (usually) correct set of HTML tags for the category being processed. Obviously there is some oversight in the code that doesn't account for some aspect of your Sale category. The code to edit would be in one of the files for your dropdown mod (which might be embedded in template files if it came with your template).

17 May 2012, 6:02 AM
#6
paul_griffin avatar

paul_griffin

New Zenner

Join Date:
Apr 2012
Location:
Iver, Bucks, UK
Posts:
16
Plugin Contributions:
0

Re: New Category doing strange things!

That's a help, thanks, I shall take a look and see what I can find out. Again, I appreciate your guidance.