View Single Post
  #14  
Old 04-05-2010, 11:10 PM
 
drudden drudden is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 66
 

Default Re: Adding a second 'categories' section

Quote:
Originally Posted by bionuts
From experimenting, it appears that the search results will ignore the {if} statement added to the categories.tpl and categories_type.tpl files if you use $c.order_by to define it. The only way I can get it to work is to use $c.categoryid instead. This is the number that is assigned to the category upon creation, and which you can only see if you look at your SQL database in something like PHPMyAdmin.

Thank you for posting this. I was having the same issue and your input helped me resolve my issue.

I just wanted to add that you can get the category id without the hassle of going into the database. The id's for categories, products, manufacturers, etc. are actually used as parameters in the url's that you click to edit them. Simply login to your admin and hover over any category link and you can get your id's.
__________________
Thanks,

Dan

X-Cart Version 4.3.1
Reply With Quote