Commerce Server Blog

Build world class ecommerce applications using Microsoft Commerce Server
  •  
  • Home
  • Advertise
  • Copyright Policy
  • Disclaimer
  • About

Microsoft Commerce Server 2009 code name "R2" – January 2010 Community Technical Preview

ravikanth | January 27, 2010

Today Microsoft has released new pre-release build (January 2010 CTP) for review. This CTP is valid through December 31, 2010 and supported in following platforms.

  • Windows Server 2008 R2, with SQL Server 2008 SP1 and Microsoft Office SharePoint Server 2007 SP2
  • Windows Server 2008 SP2, with SQL Server 2008 SP1 and Windows SharePoint Services 3.0 SP2
  • Windows Server 2008 SP2, with SQL Server 2008 SP1 and Microsoft Office SharePoint Services 2007 SP2

You can download bits from Microsoft website and the url is.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=d6cb6769-6c5e-46c2-a72a-a9911823ffd9

Some of the highlights in this release are

  • New naming convention for all file handlers and other class name changes/additions.
  • Commerce Server pipelines fail if the culture ID is not added to the ChannelConfiguration.config file.
  • New public API changes.
  • RequestedPromoCode section in MetadataDefiniton.xml file must be modified.
  • The setup for Commerce Foundation Components does not include the assembly Microsoft.Commerce.dll
  • Must add /pages to your site URL when using WSS
  • Microsoft.Commerce.Application.Common.EtwTraceListener and Microsoft.Commerce.Application.Common API changes

Some of the low lights are

  • Microsoft Office SharePoint Server 2010 is not supported for this release.
  • plus –> a bunch of known issues – http://download.microsoft.com/download/8/A/7/8A774702-9ECE-4353-A2CF-03A8E31118D6/Microsoft_Commerce_Server_R2_Readme_January_2010_CTP.htm#WhatsNew
Comments
No Comments »
Categories
Commerce Server 2009, What's New
Tags
CTP
Comments rss Comments rss
Trackback Trackback

Commerce Server 2009 November VPC ready for download

ravikanth | November 15, 2009

This week Microsoft has released commerce server 2009 VPC and you can able to download it from connect website. This VPC is same as CS2009 September VPC but expiry date update and some minor changes to marketing material. To download this VPC, you have to fill a survey. Once you submit the survey (by providing all details), it will take 1-2 business days to get your copy and it can be seen from downloads folder. No e-mail notification will be sent to you confirming its availability. So, what are you waiting for – click on the link below and download your copy.

https://connect.microsoft.com/content/content.aspx?ContentID=14602&SiteID=643

Note: This VPC will expire on Feb.12th 2009.

Comments
No Comments »
Categories
What's New
Comments rss Comments rss
Trackback Trackback

Retrieve Products using Commerce Server Foundation

ravikanth | November 10, 2009

Commerce serer 2007 exposes different API for different purpose but the main disadvantage is that it doesn’t give flexibility to develop ecommerce applications for multiple devices (channels – mobiles, kiosk, etc). To overcome this problem Microsoft has wrapped a new API model (multi-channel foundation) on top on existing commerce server runtime API. It exposes a set of models, known as commerce entities (such as products and baskets – similar to .NET entities) to represent the conceptual view of e-commerce. To know more about this, you can refer to following urls.

http://microsoftblog.co.in/commerceserver/how-i-learnt-commerce-server-foundation/

http://msdn.microsoft.com/en-us/library/dd327929.aspx

In this post, I am trying to fetch products under a category using commerce server foundation. The method takes three parameters – catalog name, category name and user id and returns all products in the form of datatable.

public  DataTable GetChildProducts(string CatalogName, string parentCategory, string userId)
{
CommerceRequestContext requestContext = new CommerceRequestContext();
requestContext.Channel = "Default";
requestContext.UserId = userId;
requestContext.RequestId = Guid.NewGuid().ToString();
requestContext.UserLocale = "en-US";
requestContext.UserUILocale = "en-US";

// Create a Operation Service Agent
OperationServiceAgent operationService = new OperationServiceAgent();

// Define DataTable
DataTabl productsDataTable =new DataTable();

// Query for a Product
CommerceQuery<CommerceEntity> queryBuilder = new CommerceQuery<CommerceEntity>("Category");
queryBuilder.SearchCriteria.Model.Id = parentCategory;
queryBuilder.Model.Properties.Add("Id");
queryBuilder.Model.Properties.Add("DisplayName");
queryBuilder.Model.Properties.Add("ListPrice");
queryBuilder.Model.Properties.Add("Description");

// Add more properties here….
queryBuilder.SearchCriteria.Model.Properties["CatalogId"] = CatalogName;

// Add Related Query Operation for Canonical Categories
{
CommerceQueryRelatedItem<CommerceEntity> childProduct = new CommerceQueryRelatedItem<CommerceEntity>("ChildProducts", "Product");
childProduct.Model.Properties.Add("Id");
childProduct.Model.Properties.Add("DisplayName");
childProduct.Model.Properties.Add("ListPrice");
childProduct.Model.Properties.Add("Description");
queryBuilder.RelatedOperations.Add(childProduct);
}

CommerceResponse response = operationService.ProcessRequest(requestContext , queryBuilder.ToRequest());

// Handle Responses
CommerceQueryOperationResponse queryBuilderResponse = (CommerceQueryOperationResponse)response.OperationResponses[0];
productsDataTable.Rows.Clear();
if (queryBuilderResponse.CommerceEntities.Count > 0)
{
CommerceEntity category = queryBuilderResponse.CommerceEntities[0];
//Iterate over Child products
if (category.GetPropertyValue("ChildProducts") != null)
{
foreach (CommerceRelationship childProduct in (CommerceRelationshipList)category.GetPropertyValue("ChildProducts"))
{      
            CommerceEntity product = childProduct.Target;
             DataRow newProductRow = productsDataTable.NewRow();
             newProductRow["id"] = product.Id;
             newProductRow["DisplayName"] = product.GetPropertyValue("DisplayName");
             newProductRow["Description"] = product.GetPropertyValue("Description");
             newProductRow["Price"] = product.GetPropertyValue("ListPrice");
             productsDataTable.Rows.Add(newProductRow);
}
}
}
return productsDataTable;
}

Comments
No Comments »
Categories
What's New
Comments rss Comments rss
Trackback Trackback

MVP in Commerce Server

ravikanth | October 3, 2009

I would like to share a happy news to all blog viewers. For the community contributions done for past year, Microsoft has renewed my commerce server on 1st October. This award has boost up my motivation and will help me to work more towards commerce server community contribution & evangelism. I would like to thank all blog viewers, Microsoft CS support team and friends who have inspired me to achieve this award. Hope to continue my MVP journey in future too :) .

Microsoft commerce server product team has blogged my MVP renewal in their blog. Click below link to view it.
Commerce Server MVP Renewal – Ravi Kanth

Comments
No Comments »
Categories
What's New
Comments rss Comments rss
Trackback Trackback

Steps involved in extended commerce server 2009 Systems

ravikanth | August 27, 2009

In this post, I am trying to explain what are the steps involved in extending commerce server 2009 sub-systems. The process for extension is the same as CS2007 but some additional steps are added.

1.    Adding Fields in LineItem Table ( Database )
2.    Create Extended Line Item Class
3.    Configure the assembly information in Web config.
4.    Configure the Fields information in Order Mapping.
5.    Configure the Fields information in Order Pipeline.
6.    Execute Ordermapping.exe tool and execute output sql statements in transaction database.

7.    Create new Extended Translator Class to translate entities to CS2007 objects or vise versa.
8.    Configure the assembly  information in Channel Configuration.
9.    Configure the Property Mapping in Mapping Configuration.
10.    Modifying XSLT of the web part so that the updated field is shown.

Note: Green means existing process Blue means new process.

In next posts, I will be going in details explaining the steps involved creating custom translator (in detail).

Comments
2 Comments »
Categories
What's New
Comments rss Comments rss
Trackback Trackback

« Previous Entries Next Entries »

Sign up for Newsletter


Categories

Quiz

  • Catalog Quiz for Beginners
  • Profile Quiz for Beginners
  • Quiz 1 for Advance Users
  • Quiz for Beginners

Recent Posts

  • Staging Deployment – Security Considerations
  • Pipeline Editor displays registered custom pipeline components as unknown in 64 Bit version.
  • How commerce server staging works
  • Steps to extend payments in Commerce Server 2009
  • Introduction to Commerce Server Staging
  • Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information
  • Commerce server staging throws Remote authorization failed to server. Ensure the service has access to this server.
  • Updated Commerce Server 2009 template pack for SharePoint 2007 released
  • RCXml2Resx.exe tool stops working
  • Commerce Server Profile Importer Tool

Archives

  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008

Tags

add discounts add images to profile Advantages of commerce server approve discounts authentication auto login process automatic user creation basket Brand Management business tools campaign management Catalog catalog import Category commerce server commerce server 2007 commerce server manager Commerce Server SP2 commerce server staging discounts ecommerce Estimation Installation inventory Kanth Koppala marketing system migration error Mojave operation components operation sequence Order subsystem Product profile profile subsystem property metadata purchase order quick checkout Ravi Ravi Kanth site cache refresh starter site tools transactions error Variant
(c) 2009 Commerce Server Blog. All rights Reserved. Articles cannot be reproduced without permission from the author.Write to me at kanth@ravikanth.net if you have any comments, questions, suggestions about this site or would like to send us a tip
About Us | Terms of Use | Disclaimer | Advertise .