BuyItSellIt Community
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


12345»»»

Code for showing expanded categories Expand / Collapse
Author
Message
Posted 1/8/2009 11:02:44 AM


BISI Admin

BISI Admin

Group: Administrators
Last Login: Today @ 7:44:37 PM
Posts: 2,976, Visits: 8,609
I've received several requests or how to questions about showing all categories and subcategories on a page at once. I've created a method for doing this. This is useful if you want to build dynamic category menus with out hard-coding.

<ul>
   <li><a href="/products/all-categories_0/?page1">Browse All</a></li>
   #foreach ( $Category in $Methods.GetCategoriesByParentID(0))
   <li>
   <a href="$Category.CategoryLink">$Category.Name</a> ($Category.ProductCount)
      #if($Category.SubCategoryCount > 0)
      <ul>
      #foreach ( $SubCategory in $Methods.GetCategoriesByParentID($Category.ID))
         <li><a href="$SubCategory.CategoryLink">$SubCategory.Name</a> ($SubCategory.ProductCount)</li>
      #end
      </ul>
      #end
   </li>
   #end
</ul>



---------------------
Tomas

Follow BISI on twitter!
Post #24935
Posted 1/8/2009 11:37:25 AM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: Today @ 3:37:33 PM
Posts: 2,782, Visits: 6,858
THANKS! I just added it to my homespun store product details page and it works great! I had originally had some hard coded categories in there because I felt it was important for customers surfing in to see all my categories. THis is MUCH better!

Tomas, you ROCK!

~ Gayla







Post #24946
Posted 1/8/2009 12:44:11 PM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: Today @ 9:20:57 PM
Posts: 2,499, Visits: 3,538
Thank you for offering that help, Tomas! Above and beyond the call of duty, which is much appreciated.



Cindy
-----------------
Search & Win
Post #24955
Posted 1/8/2009 2:02:36 PM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: 10/10/2009 1:22:23 AM
Posts: 1,318, Visits: 3,484
Thanks Tomas!!!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jennifer



An independent BISI solutions provider



Filling Out SEO Tabs | Putting Images In Your Store | Understanding the XML File Transfer | So You Want To Get Googled...



Post #24964
Posted 1/8/2009 3:00:19 PM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: Today @ 2:55:31 PM
Posts: 456, Visits: 2,353
YAY!!!

Now how about those previous/next links on the details page?



Specializing in BuyItSellIt templates, Zen-Cart templates, eBay Templates & More. Need help installing or customizing a Zen Cart? We can help!

We now offer advertising signs for your business! Magnetic Signs, Banners, Vinyl lettering for your vehicle windows/doors, yard signs... www.designmycart.com Check back often as we add new products!


Check out the Original 3 Column BISI Store Template Designs!

Check out the Original 1 Column BISI Store Template Designs with horizontal dropdown navigation!

Post #24965
Posted 1/8/2009 3:37:39 PM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: 10/10/2009 1:22:23 AM
Posts: 1,318, Visits: 3,484
I am thinking this had a higher demand.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jennifer



An independent BISI solutions provider



Filling Out SEO Tabs | Putting Images In Your Store | Understanding the XML File Transfer | So You Want To Get Googled...



Post #24971
Posted 1/8/2009 4:11:07 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 7/10/2009 11:25:18 PM
Posts: 58, Visits: 107
Can I see a sample of how this looks? Also where to I add it to?

Esther
Post #24983
Posted 1/8/2009 5:04:26 PM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: Today @ 6:39:12 PM
Posts: 121, Visits: 1,763
You can see it in action here.

Notice that the left navigation now has the sub categories showing? It didn't work that way until now so this is great!





Handcrafted candles, tarts, lotions, soaps, lip balms, bath bombs, milk bath and more.
Visit Fragrance Fantasy today and smell the difference.




Specializing in BuyItSellIt templates and services. Need help installing or customizing a Zen Cart? Let us help you create an original web presence that represents what your online business is all about.
We at Design My Cart strive to make your vision a reality.
Post #24988
Posted 1/8/2009 5:51:36 PM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: 2 days ago @ 12:24:58 PM
Posts: 871, Visits: 1,475
I just added my categories to my detail page. Oh how fun. I must admit I kind of like it though. I don't feel so lost when I look at an item.

I can't expand my categories as I have too many, but I just used the category code from home page.

Yeah, a bit off topic, but oh well.

UPGRADE NOTES


BuyItSellIt Networking Groups
Twitter: http://www.twittgroups.com/group/buyitsellit
Squidoo: http://www.squidoo.com/groups/buyitsellit
MySpace: http://groups.myspace.com/bisiowners
Facebook: http://www.facebook.com/group.php?gid=128200151582
Post #24990
Posted 1/9/2009 7:03:54 PM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: 1/12/2009 2:10:06 PM
Posts: 192, Visits: 176
Where do we add this?

Jacki

http://duebeibambini.mybisi.com

banner.jpg picture by duebeibambini

Post #25075
« Prev Topic | Next Topic »

12345»»»

All times are GMT -8:00, Time now is 9:48pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 9 queries. Compression Disabled.