E-commerce customization

Download E-commerce customization

Post on 13-Jan-2015

3.178 views

Category:

Technology

1 download

Embed Size (px)

DESCRIPTION

KENTICO CONNECTION SESSIONIn this session, we will show you the basics of the E-commerce customization. You will see E-commerce customization model and you will learn how to use custom e-commerce providers, how to customize ordering steps, how to create new payment gateway, whats new in E-commerce 6.0 and more.

TRANSCRIPT

<ul><li> 1. E-commerce customization<br />Petr Vozak, Technical Leader<br /></li></ul> <p> 2. E-commerce customization<br />Agenda<br />Using custom e-commerce providers<br />Developing custom dialog for the checkout process<br />Developing custom payment gateway<br /> 3. E-commercecustomization<br />1) Using custom e-commerce providers<br /> 4. Using custom e-commerce providers<br />How doest it work?<br /> 5. Using custom e-commerce providers<br />Assembly: CMS.Ecommerce<br />Namespace: CMS.Ecommerce<br />Provider: ShippingOptionInfoProvider<br />Method: CalculateShipping()<br />public static doubleCalculateShipping(ShoppingCartInfocartObj, stringsiteName)<br />{<br />if (ECommerceHelper.UseCustomHandlers())<br />{<br />returnECommerceHelper.GetShippingOptionInfoProvider().CalculateShipping(cartObj, siteName);<br />}<br />else<br />{<br />returnCMS.CMSEcommerce.ShippingOptionInfoProvider.CalculateShipping(cartObj, siteName);<br />}<br /> }<br />Wrapper<br />Are custome-commerce providers enabled?<br />YES -&gt; Run custom code<br />NO-&gt; Run Kentico code<br /> 6. Using custom e-commerce providers<br />Assembly: CMS.Ecommerce<br />Namespace: CMS.CMSEcommerce<br />Provider: ShippingOptionInfoProvider<br />Method: CalculateShipping()<br />public static doubleCalculateShipping(ShoppingCartInfocartObj, stringsiteName)<br />{<br />//if shipping free limit is reached -&gt; return zero (shipping is free)<br />//else -&gt; return shipping option value<br /> }<br />Kentico code<br />Here is Kentico logic for shipping calculation, something like:<br /> 7. Using custom e-commerce providers<br />Assembly: CMS.CustomECommerceProvider<br />Namespace: CMS.CustomECommerceProvider<br />Provider: CustomShippingOptionInfoProvider<br />Method: CalculateShipping()<br />public doubleCalculateShipping(objectcartObj, stringsiteName)<br />{<br />returnCMS.CMSEcommerce.ShippingOptionInfoProvider.CalculateShipping(<br />(CMS.Ecommerce.ShoppingCartInfo)cartObj, siteName);<br /> }<br />Custom code<br />Kentico methodis called by default<br /> 8. Using custom e-commerce providers<br />Open Visual Studio and add CustomECommerceProviderproject from code samples to your CMS solution<br />Modify code of the custom e-commerce providers to reach your requirements<br />Add the following key to your web.config file to enable custom e-commerce providers:<br /><br /> 9. Using custom e-commerce providers<br />DEMO<br />How to customize shipping calculation<br />customize CalculateShipping()<br />How to automatically set some credit to a new customer<br />Customize SetCustomerInfo()<br /> 10. E-commerce customization<br />2) Developing custom dialog for the checkout process<br /> 11. Developing custom dialog for the checkout process<br /> 12. Developing custom dialog for the checkout process<br />DEMO<br />Create checkout process step user control (*.ascx)<br />inherit from ShoppingCartStep<br />override boolIsValid()<br />override boolProcessStep()<br />Register checkout process step<br /> 13. E-commerce customization<br />3) Developing custom payment gateway<br /> 14. Developing custom payment gateway<br /> 15. Developing custom payment gateway<br />DEMO<br />Create payment gateway form<br />inherit from CMSPaymentGatewayForm<br />override boolValidateData()<br />override boolProcessData()<br />Create payment gateway provider<br />inherit from CMSPaymentGatewayProvider<br />overridevoid GetPaymentDataForm()<br />override boolProcessPayment()<br />Register payment gateway<br /> 16. E-commerce customization<br />Summary<br />Using custom e-commerce providers<br />Developing custom dialog for the checkout process<br />Developing custom payment gateway<br /></p>

Recommended

View more >