| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Declaring a Category for Subcategories | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Simply put. In the front page of the site I have a "Foreach" pulling from the Categories Array.
Each Category is coming out just fine, with descriptions and pictures and everything. But I'm trying to get the Subcategories to show up for EACH category. Unfortunately, whenever I try to use the syntax for Subcategories [$subcategories] it just pulls up the categories all over again. Image Included. http://frozeninksecret.com/tmp/cat.jpg Code:
This is the section of the code it involves. In skin1/customer/homelist.tpl Is there anyway you can load the subcategories within a category for a FOREACH array?
__________________
Moo? Quality Door & Hardware Version X-Cart 4.1.108 Add-ons X-AOM (Advanced Order Management) Ad / Banner X-cart Mod (BCSE) DSEFU Dynamic Image Mod Pre-login Shipping Calculator Power Filter Contact Us Form Shipping Carrier Mod Submit Button Send me a message, I can talk about anything. |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() A bump
__________________
Moo? Quality Door & Hardware Version X-Cart 4.1.108 Add-ons X-AOM (Advanced Order Management) Ad / Banner X-cart Mod (BCSE) DSEFU Dynamic Image Mod Pre-login Shipping Calculator Power Filter Contact Us Form Shipping Carrier Mod Submit Button Send me a message, I can talk about anything. |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() I've narrowed down another example of what I could use. This modification that's used on our site takes seven categories and lists their subcategories as well.
I want to modify it so that it can be used to display the subcategories in the new modification. I've narrowed the code down to this in Include/Categories.php Code:
I'm wondering. Is there a way to use func_query to get all the categories from the SQL database? Is there any reference on how to use func_query, because I went to Smarty's website and looked at the website and didn't find a way to use the function. -_- please help?
__________________
Moo? Quality Door & Hardware Version X-Cart 4.1.108 Add-ons X-AOM (Advanced Order Management) Ad / Banner X-cart Mod (BCSE) DSEFU Dynamic Image Mod Pre-login Shipping Calculator Power Filter Contact Us Form Shipping Carrier Mod Submit Button Send me a message, I can talk about anything. |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Bump
__________________
Moo? Quality Door & Hardware Version X-Cart 4.1.108 Add-ons X-AOM (Advanced Order Management) Ad / Banner X-cart Mod (BCSE) DSEFU Dynamic Image Mod Pre-login Shipping Calculator Power Filter Contact Us Form Shipping Carrier Mod Submit Button Send me a message, I can talk about anything. |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|