Contributions
Show Subcategories when Category has Products
When a category has both products and subcategories, this mod will display the subcategory links at the top of the product listing. See it in action at http://cyberdogg.com/gus/default.php?cPath=48_69 (LIVE shop - orders placed will be billed & delivered!)
Expand All / Collapse All
This mod addresses the inherent behavior of OSC to exclude your sub-category links
if individual products are assigned at the same upper category level.
All credit goes to those prior to this re-submit.
FULL
If you have product categories that have both products and subcategories, by default, OSC only displays the product listing
in the main panel. The original mod fixes that little problem.
For my needs however I did not like the fact that if you selected the other products link in the manufacturers infobox that it would show all the top level category thumbnail links.
All this change does is wrap the original mod with:
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
}else{
at the head followed with the additional } at the end of the php codeblock.
This version fixes a problem with displaying subcategories in top-level (e.g. "cPath=48" vs. "cPath=48_69") categories. Enjoy!
When a category has both products and subcategories, this mod will display the subcategory links at the top of the product listing. See it in action at http://cyberdogg.com/gus/default.php?cPath=48_69 (LIVE shop - orders placed will be billed & delivered!)
When a category has both products and subcategories, this mod will display the subcategory links at the top of the product listing. See it in action at http://cyberdogg.com/gus/default.php?cPath=48_69 (LIVE shop - orders placed will be billed & delivered!)
Note: Contributions are used at own risk.