Documentation

Site Map Back to Home Page Contact Us About MagicScripts    Products   Services   Store   Customer Area   Resources   Affiliate Program 

How to set DHTML menu to display product categories only.


MagicScripts E-Store Kits use 2-level category structure to display products.
All products are grouped by categories and subcategories. Some stores do not need subcategories and just categories are enough.
To hide subcategories you need to edit menutemplate.htm file.
Open menutemplate.htm in any text editor and edit it as shown below (just copy/paste the code below):
<script language="javascript1.2">
<!--###Data###-->
<!--###CatData###-->
MenuVposition += MenuVstep;
MenuItem("catalog.php?cid=###CID###","###CT###",MenuWidth,"left","","",MenuVposition,0,"");
<!--###CatData###-->
<!--###SubData###-->
<!--###SubData###-->
<!--###Data###-->
</script>

Sample:

http://www.magicscripts.com/demo/ms-pe01/catalog.php - categories and subcategories.
http://www.magicscripts.com/demo/ms-pe01/catalog.php?menu=menu.htm - categories only.

Please note that you still need to create one "dummy" subcategory for each category in product manager and use it to add products to this category.


Back to Index