Product navigation Next/Prev for products in same category
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Product navigation Next/Prev for products in same category
I'm working on some code someone else had written to put Next/Prev links on top of a product page for navigation to other products in that category. He has used a for each(CommerceBuilder.Catalog.CatalogNode ) in the code and that puts the Cxx Category number in the URL and I am trying to remove that. How do I turn that node.NavigateUrl into a product NavigateUrl?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Product navigation Next/Prev for products in same category
Try following
Or
Code: Select all
node.ChildObject.NavigateUrl
Code: Select all
switch (node.CatalogNodeType)
{
case CatalogNodeType.Product:
Product product = ProductDataSource.Load(node.CatalogNodeId);
Response.Redirect(product.NavigateUrl);
break;
}