Is there a helper function to create the NavigateUrl for a Product without the Product object?
brad
Create NavigateUrl Function
Re: Create NavigateUrl Function
You can make use of GetBrowseUrl method of CommerceBuilder.Catalog.UrlGenerator class. For example here is sample code
Code: Select all
int productId = 33;
string productName = "All-in-One Printer";
string relativeURL = UrlGenerator.GetBrowseUrl(productId, CatalogNodeType.Product, productName);
Re: Create NavigateUrl Function
Perfect. Thanks!