2009 10 Sdc 2009 Iw02 Nick Boumans E Commerce
-
Upload
nick-boumans -
Category
Technology
-
view
416 -
download
0
description
Transcript of 2009 10 Sdc 2009 Iw02 Nick Boumans E Commerce
Session Code: IW.02
E-Commerce using
Nick Boumans
Giraffe IT
Agenda
• Wat is Commerce Server 2009?
• Out-of-the-Box functionaliteiten
• Customizations
• Development
Wie ben ik?
• MCT
• Ent. Application Developer
• SharePoint Specialist
• Giraffe IT
• 25 jaar
Meer dan 20K NL webshops!
Bron: http://www.upc.nl/
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
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
Demo Default Site
Een eigen catalogus
• Categorie, Product en property definities in Catalog and Inventory Schema Manager
• Catalog Manager
• Wijzig Channel Conf. Lijst
Demo: een eigen catalogus
Customizations
• Masterpage / Pagelayout / CSS
• XSL (Commerce Server Templates)
• CS09 Template Pack
Microsoft Inline Property Editor
• Producten wijzigen binnen SharePoint
• Silverlight Control
Download
Template Pack voor CS09
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”
Het ophalen van een Catalogus
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();
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
Refreshing all Caches
public static void RefreshAllCaches() { CommerceCacheCollection caches = CommerceContext.Current.Caches; foreach (CommerceCache cache in caches) { cache.Refresh(); } }
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(); }
Demo Development
• Toevoegen / verwijderen categorie
• Toevoegen product aan een categorie
Vragen?
• Blogwww.sharepointdevelopment.nl
www.CodePlex.com/CSExtensions
• Twitterwww.twitter.com/nickboumans
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