View Single Post
  #12  
Old 01-25-2005, 02:02 AM
 
steveparks steveparks is offline
 

Advanced Member
  
Join Date: Jan 2003
Location: UK
Posts: 87
 

Default explanation

Just to clarify to everyone:

1. Order_by
order_by is the numeric value that you can assign to each category from the admin area in x-cart. That value determines in which order the categories appear in the category menu.

Because you don't want there to be too many tabs in the tab menu, I've set it so that only Categories with an order_by of less than 10 will show up in the tabs - that way you can have only your most important categories on this key menu...and the rest on the side menu.

To decide which tabs appear in your tab menu, simply log in to your admin area, select 'Categories' from the menu on the left, and assign values of less than 10 to the categories you want to appear in the tab menu. They will appear in order of these numbers, so give the ones you want to be further on the left the lowest number.

This provides a simple method for you or your customers to control the tab menu without delving into code all the time.

Adding more tabs
The tabs (except the 'home' tab) are added dynamically from your category structure. You do not need to add any more code to add more tabs. Just give the categories an order_by value of less than 10.
If you really want to add more tabs to static pages or similar then you can do this in the code, but i'd advise having this on the speedbar, so that you can easily change or update them from the admin area. You can change the look and feel of the speedbar easily (see other posts in these forums), see www.redleader.biz/xcart/home.php (my development site) for an example.

[/b]
__________________
--------------
RHEL3/Apache2/PHP4/MySQL4/Plesk7.5.3
X-Cart 4.0.16 - Live
X-Affiliate
X-AOM
ez-checkout
ez-upsell
--------------
Reply With Quote