Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Feature Request: Subcategories Displayed on Product Listing


Da'Onath

Recommended Posts

For instance, the category below (with products in it) also has sub-categories:

 

http://beddingbox.com/catalog/default.php?...?cPath=21_25_27

 

I need to be able to show the sub-categories beneath the list of products, because otherwise it's not obvious that they exist.

(a quick glance at the tree-structure box will often miss them)

 

I suppose I could always put the spare covers in with the other products, but, I don't wanna :D

 

On a related note, has anyone considered a hack which 'greys out' all parts of the tree which you are not currently browsing? This would make it slightly easier to see any listed subcategories.

Hi mom!

Link to comment
Share on other sites

  • 3 months later...
After much hair-pulling, I've just posted a contribution that addresses this:

 

http://www.oscommerce.com/community/contributions,1014

 

Preview at:

http://cyberdogg.com/gus/default.php?cPath=48_69

(LIVE shop - orders will be billed & delivered)

 

Hope it helps!

 

HURRAH!!!!!!

 

Ahem, yes it helps, thanks :D

Hi mom!

Link to comment
Share on other sites

This is a very nice mod. The only problem is, you cannot show the sub categories if you have products in one of the top level categories. I tried modifying the script somewhat.

 

changed:

if (isset($cPath) && ereg('_', $cPath))

to:

if (isset($cPath))

 

This fixed my problem, but caused another problem when displaying products by manufacturer. I got the error:

 

Warning: Argument to array_reverse() should be an array in F:FoxServwwwcatalogdefault.php on line 298

 

Any Ideas on fixing the problem.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...