X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Main search bar - How do you add a category choice menu? (https://forum.x-cart.com/showthread.php?t=10481)

wushuwannabe 11-20-2004 12:03 AM

Main search bar - How do you add a category choice menu?
 
This is probably very elementary, but I've been trying to figure this out for the past couple hours without much luck...

How can I add a category selection pull-down menu on the main search bar? (That is, without having to go to search.php). I'd like for visitors to have the option of selecting a category and searching right from the front page.

Thank you for any assistance you can give me!

-David
Ver. 4.0.7
Smarty PHP newbie

Yang Xu 11-25-2004 12:41 AM

In the categories.tpl file, there are codes to get all the categories. You can copy the code and put into the search.tpl files to create pull-down menu.

But frankly I don't like the idea. Because the categories are nested. If you put all the categories in pull down menu, they will be in the same level. It is not very organized.

Also if you have a lot of categories, the pull down menu will be very long and kind of mess.

shan 11-25-2004 04:46 AM

if you search custom mods forum you should find this mod or similar


All times are GMT -8. The time now is 12:14 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.