2009 10 Sdc 2009 Iw02 Nick Boumans E Commerce

21
Session Code: IW.02 E-Commerce using Nick Boumans Giraffe IT

description

Software Development Conference (SDN) 2009 - Papendal

Transcript of 2009 10 Sdc 2009 Iw02 Nick Boumans E Commerce

Page 1: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Session Code: IW.02

E-Commerce using

Nick Boumans

Giraffe IT

Page 2: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Agenda

• Wat is Commerce Server 2009?

• Out-of-the-Box functionaliteiten

• Customizations

• Development

Page 3: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Wie ben ik?

• MCT

• Ent. Application Developer

• SharePoint Specialist

• Giraffe IT

• 25 jaar

Page 4: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Meer dan 20K NL webshops!

Bron: http://www.upc.nl/

Page 5: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Wat is MS Commerce Server?

• MS Product voor het bouwen van E-commerce systemen

• .NET Technologie

• Official launch @ the MIX09 Maart ‘09

• Integratie met SharePoint d.m.v. SharePoint Commerce Services

• BizTalk adapters

Page 6: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Voordeel t.o.v. maatwerk

• Default SharePoint Site

• +/- 30 WebParts

• Uitgebreide functionaliteit

• Commerce Server als business laag– GUI SharePoint– Business layer Commerce Server– DB SQL Server

Page 7: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Demo Default Site

Page 8: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Een eigen catalogus

• Categorie, Product en property definities in Catalog and Inventory Schema Manager

• Catalog Manager

• Wijzig Channel Conf. Lijst

Page 9: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Demo: een eigen catalogus

Page 10: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Customizations

• Masterpage / Pagelayout / CSS

• XSL (Commerce Server Templates)

• CS09 Template Pack

Page 11: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Microsoft Inline Property Editor

• Producten wijzigen binnen SharePoint

• Silverlight Control

Download

Page 12: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Template Pack voor CS09

Page 13: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Introductie Development

• Referentie naar dll’s:– Microsoft.CommerceServer.Runtime.dll– Microsoft.CommerceServer.Catalog.dll – Microsoft.Commerce.Portal.Common.dll

• CommerceSharePointExtensibilityKit – Broncode webparts

• CommerceContext hart van “CS-Dev”

Page 14: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Het ophalen van een Catalogus

Page 15: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Bewerkingen op de catalogus

// Add a categoryCategory category = baseCatalog.CreateCategory(“MyCategoryDef",

categoryName);category.Save();

// Add a productProduct item = baseCatalog.CreateProduct(“category", productName, price, productName);// Set some propertiesitem.Save();

Page 16: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Caching in Commerce Server

• Catalog System built-in cache catalog item data

• Marketing System caches hele set van actieve advertenties

• Profiles System internal cache voor profile objecten

• Orders System caching voor: shipping methods, payment methods, e.a. order configuration datasets

Page 17: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Refreshing all Caches

public static void RefreshAllCaches() { CommerceCacheCollection caches = CommerceContext.Current.Caches; foreach (CommerceCache cache in caches) { cache.Refresh(); } }

Page 18: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Refreshen Cache - 1 systeem

public static void RefreshShippingMethodCache() { if(CommerceContext.Current.Caches["ShippingManagerCache"] != null) CommerceContext.Current.Caches["ShippingManagerCache"].Refresh(); }

public static void RefreshPaymentMethodCache() { if (CommerceContext.Current.Caches["PaymentMethodCache"] != null) CommerceContext.Current.Caches["PaymentMethodCache"].Refresh(); }

Page 19: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Demo Development

• Toevoegen / verwijderen categorie

• Toevoegen product aan een categorie

Page 20: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Vragen?

• Blogwww.sharepointdevelopment.nl

www.CodePlex.com/CSExtensions

• Twitterwww.twitter.com/nickboumans

Page 21: 2009 10 Sdc 2009 Iw02 Nick Boumans   E Commerce

Evaluation form

Vul je evaluatieformulier in en maak kans op een van de prachtige prijzen!!

Fill out your eveluation form and win one of the great prizes!!

Session Code: IW.02