Commerce Server General - how to put catalog in the starter site in webpart

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > October 2006 > how to put catalog in the starter site in webpart





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to put catalog in the starter site in webpart
mailfront

2006-10-25, 1:24 am

I like to put catalog of the starter site in webpart. Anyone have any idea
how to do it? or Any one can point me to some documentation how to do it.



Joseph Johnson

2006-10-25, 1:24 am

mailfront,

I don't have any specific tutorial for you to move the components from the
Starter Site to a webpart, but I'd point out that the actual catalog,
product and category objects in the code behind are independent from the
actual presentation of said objects.

As such, you typically retrieve catalogs from the HttpContext using
CommerceContext.Current.GetCatalogsForUser, which requires the current user
to be specified, or you can use CatalogContext.GetCatalog() or
CatalogContext.GetCatalogs(). When you have a catalog specified, you can
traverse the categories and products within the catalog (You have the abilty
to enumerate Products and Categories within a Catalog or a Category). When
you have this object built up, you can bind this to whatever presentation
format you see fit. A TreeView is probably the most simple, but you can
decide what's appropriate for you.

Joe


"mailfront" <mailfront@discussions.microsoft.com> wrote in message
news:CCE0DBD9-CF56-418F-BF8F-13BD7126404E@microsoft.com...
>I like to put catalog of the starter site in webpart. Anyone have any idea
> how to do it? or Any one can point me to some documentation how to do it.
>
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com