Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

E-commerce customization

on

  • 3,673 views

KENTICO CONNECTION SESSION...

KENTICO CONNECTION SESSION
In 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, what’s new in E-commerce 6.0 and more.

Statistics

Views

Total Views
3,673
Views on SlideShare
3,673
Embed Views
0

Actions

Likes
0
Downloads
23
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

E-commerce customization E-commerce customization Presentation Transcript

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