![]() |
Different menus for Different Categories |
Post Reply ![]() |
Author | |
loracady ![]() Newbie ![]() ![]() Joined: 28-December-2007 Location: United States Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 19-January-2008 at 12:56pm |
I want the left navigation to change with each category, so that each subcategory is shown in the left navigation, instead of all the main categories. Does anyone know how to do this? Take a look at macy's website www.macys.com. I'd like that type of navigation. Edited by loracady - 19-January-2008 at 12:57pm |
|
![]() |
|
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
Macy's shows the subcategories below the selected main category but still keeps the other main categories visible on the nav bar. This is how the Product Cart 3.x navigation works. Any main categories that have subcategories, show a "+". When the category is selected, the subcategories are displayed below it. |
|
![]() |
|
loracady ![]() Newbie ![]() ![]() Joined: 28-December-2007 Location: United States Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Thanks for your reply. Here is an even better example. Take a look at Company C's Product Cart website: The following link takes you to the "Rugs" category page. After you land on this page, click to select "Pillows" http://www.companyc.com/html/rugs.htm. The left navigation menu is completely different depending on what category you are in. How can this be done? Edited by loracady - 24-January-2008 at 2:46pm |
|
![]() |
|
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
I think this sample site is more complex than what you would need but basically, your request requires custom programming on the header.asp file. Based on the currently selected main category, the header.asp code would load and display the subcategories for that main category. If no main category is selected, all the main categories would be displayed. Is that what you mean and does that make sense?
|
|
![]() |
|
loracady ![]() Newbie ![]() ![]() Joined: 28-December-2007 Location: United States Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
That is exactly what I mean!
|
|
![]() |
|
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
Do you know ASP to be able to program that or do you to work with a developer to have that custom coded? |
|
![]() |
|
loracady ![]() Newbie ![]() ![]() Joined: 28-December-2007 Location: United States Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Well, I try to be a do-it-myselfer, but I admit I know very little about ASP. If it is fairly complicated, I'd need a developer. I don't currently have one, though.
|
|
![]() |
|
whizzinpc ![]() Newbie ![]() ![]() Joined: 17-January-2006 Location: California Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
Here is what we did for displaying the subcategories on our template.... i just added the code to the header file where I want it to display. I'm not sure if its done right... I just copied it from a different area and changed the way its displayed. You can see an example here...http://www.memorablegifts.com/gifts_for_him.html <!-- Begin Category List --> <div style="background-color:#FFFFCC; width:auto;"> <% if intSubCatExist=<1 then %> <h3 style="color:#800000; text-transform:capitalize; margin-top:6px; margin-left:8px; font-size:16px;"><%=pCategoryName%></h3> <% end if %> <% mySQL="SELECT idCategory,categoryDesc FROM categories WHERE idParentCategory = " & pIdCategory & " AND idCategory<>1 AND iBTOhide=0 ORDER BY priority, categoryDesc ASC;" set rsCategory=conlayout.execute(mySQL) if err.number <> 0 then response.write " " else if rsCategory.eof then else Do until rsCategory.eof pidCategoryNew = rsCategory("idCategory") pCategoryDescNew = rsCategory("categoryDesc") %> <div class="buttonscontainer"> <div class="buttons"> <a href='http://www.memorablegifts.com/productcart/pc/viewCat_& lt;%=bType%>.asp?idCategory=<%=pidCategoryNew%>' title="<%=pCategoryDescNew%>"><%=pCategoryDescNe w%></a> </div></div> <% rsCategory.movenext loop set rsCategory=nothing end if end if %> </div> <!-- End Category List --> Edited by whizzinpc - 25-January-2008 at 11:59am |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
As a point of interest, somewhat related to this topic, I regularly alter the automatic category navigation generation script to address the needs of the sites I create. For example: http://www.wranglersroost.com/store/pc/home.asp (That store is not live - migrating from another cart.) An examination of the underlying code for the category navigation will reveal that the generator now assigns multiple CSS classes as well as altering the table structure in order to present a custom look for the categories and subcategories. It is far from a simple mod, but it can be done... |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |