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)
-   -   Getting Subcategories (https://forum.x-cart.com/showthread.php?t=50084)

mrerotic 10-07-2009 06:17 PM

Getting Subcategories
 
How can I get subcategories to show up when viewing product.php a specific product? I have setup a new menu on the left side that shows all subcategories when you visit the main category section, but as soon as I click on a product then this menu goes blank.

Thanks - Kyle

cflsystems 10-08-2009 04:59 AM

Re: Getting Subcategories
 
That's because $subcategories is empty when visiting product page. You have to change php file to have this done. Like assign new variable to subcats before the new subcats are pulled out of the db and then if new subcats is empty use the old subcats.

mrerotic 10-08-2009 06:41 AM

Re: Getting Subcategories
 
Yea I realize that, but what is the proper way to get $subcategories passed to product.php?

Thanks,
Kyle

cowsdonthack 10-08-2009 11:46 AM

Re: Getting Subcategories
 
I am also, extremely interested in figuring this out (only for v4.1)

mrerotic 10-08-2009 04:34 PM

Re: Getting Subcategories
 
Yea, if anyone could please let me know what needs to be done for this to work would be wonderful. No matter what I try I cant get to pass $subcategories over.

cowsdonthack 10-09-2009 08:48 AM

Re: Getting Subcategories
 
http://i204.photobucket.com/albums/bb159/scrintsaber/BUMP.gifBoomp

mrerotic 10-10-2009 08:10 AM

Re: Getting Subcategories
 
Anyone please just point me in the right direction. I would really really appreciate it.


All times are GMT -8. The time now is 12:29 PM.

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