Print Page | Close Window

Different menus for Different Categories

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1319
Printed Date: 22-April-2025 at 7:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Different menus for Different Categories
Posted By: loracady
Subject: Different menus for Different Categories
Date 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 http://www.macys.com - www.macys.com .  I'd like that type of navigation.




Replies:
Posted By: netprofits
Date Posted: 21-January-2008 at 10:50am

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.



-------------
NetProfits Internet Consulting

Certified ProductCart Developer

http://www.nicwebdesign.com" rel="nofollow - Our Site


Posted By: loracady
Date Posted: 24-January-2008 at 2:45pm

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 - 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?



Posted By: netprofits
Date Posted: 24-January-2008 at 2:54pm
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?

-------------
NetProfits Internet Consulting

Certified ProductCart Developer

http://www.nicwebdesign.com" rel="nofollow - Our Site


Posted By: loracady
Date Posted: 24-January-2008 at 3:31pm
That is exactly what I mean! 


Posted By: netprofits
Date Posted: 24-January-2008 at 3:35pm

Do you know ASP to be able to program that or do you to work with a developer to have that custom coded?



-------------
NetProfits Internet Consulting

Certified ProductCart Developer

http://www.nicwebdesign.com" rel="nofollow - Our Site


Posted By: loracady
Date Posted: 24-January-2008 at 3:42pm
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. 


Posted By: whizzinpc
Date Posted: 25-January-2008 at 11:58am

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 - 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 "&nbsp;"

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 -->



Posted By: Greg Dinger
Date Posted: 26-January-2008 at 10:02am

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 - 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...



-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net