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)
-   -   Not showing all categories in the categories list (https://forum.x-cart.com/showthread.php?t=8543)

techlink 07-19-2004 03:54 PM

Not showing all categories in the categories list
 
My store will have up to 50 categories. Some categories I do not want to be in the list because I have made links elsewhere. There is an option to change the availability of a category but how do I leave it enabled and not have it show in this list?

Thanks Jordan

B00MER 07-20-2004 06:56 AM

Edit the categories.tpl

Code:

{if $categories[cat_num].categoryid ne "11" or if $categories[cat_num].categoryid ne "13"} ... {/if}

techlink 07-20-2004 10:04 AM

Thanks boomer, ill give that a try

BCSE 07-20-2004 08:07 PM

You may also want to edit categories.tpl and instead of doing based on specific categoryid, do the if based on category position.

So
Code:

{if $categories[cat_num].order_by lt 100} category stuff {/if}

That would display any categories with the position (order_by) less than 100.

Good luck!

Carrie


All times are GMT -8. The time now is 10:27 AM.

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