" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Extending Microsoft Commerce Server Web Services in C#

Posted on November 23rd, 2015 by Nirmal Hota

Microsoft Commerce Server makes use of web services to perform the e-commerce business transactions as well as other associated functionality along with the inventory and marketing. There are mainly 4 webservices as follows: 1. Catalog Webservice – Responsible for the Products and inventory management 2. Marketing Webservice-Resposible for the management of advertisements,discounts etc 3. Order […]

Searching PurchaseOrders By using SearchClause and SearchOptions in Commerce Server

Posted on November 23rd, 2015 by Smruti Sahoo

The PurchaseOrderManager is a sealed class and used to retrieve and store the PurchaseOrder object in Commerce Server. This class has a method named SearchPurchaseOrders() which takes two parameters to search the Purchase Orders existing in Commerce Server and returns it as a DataSet. Parameters taken by this method: 1. SearchClause:– Specifies the conditions that […]

How to create a CatalogProperty and add enum values to it in CommerceServer using API

Posted on November 23rd, 2015 by Smruti Sahoo

The Catalog schema consists of metadata like definitions for Products, properties and categories stored in the site’s product catalog database. Commerce Server Catalog System provides a set of APIs to manage catalog schema for your e-commerce site. By using this we can create definitions of property, category and product. We can also update the properties. […]

Calculating Cart total with discount applied at runtime in MS Commerce Server

Posted on November 23rd, 2015 by Nirmal Hota

This tip demonstrates how to format a cart at runtime and calculate the total (including discount amount) in MS Commerce Server. The steps are: Step 1: Create a new basket. For Example: Basket newBasket=OrderManager.GetBasket(Guid.NewGuid()); Step 2 : Add lineitems to the cart. For example: CommerceServerLineItem csLineItem = new CommerceServerLineItem(); csLineItem.ProductId =”1″; csLineItem.ProductCatalog = “Catalog”; csLineItem.ProductCategory […]

How to perform AdvancedFreeTextSearch with Catalog Manager using Commerce Server API

Posted on November 23rd, 2015 by v

This tip explains how to search for products in any catalog of CatalogManager by using free text as search criteria. The following method demonstrates it. Note: We can perform FreeTextSearch on those Properties only whose freeTextSearchable property is set to TRUE. This method returns a DataSet with all the informations of the Products as results […]

How to Create a BaseCatalog and Add Categories and Products to it using Commerce Server APIs.

Posted on November 23rd, 2015 by Smruti Sahoo

To place the Products in CatalogManager we need a BaseCatalog. Once we have a catalog schema defined for e-commerce site then we can add actual data in form of BaseCatalogs, VirtualCatalogs, Categories, Products etc. To Create a BaseCatalog we need to provide the values to some of the parameters by calling the CreateBaseCatalog() method using […]