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