7 YEARS AGO

Running the custom E-commerce provider from App_Code

In this post I will show you the needed steps to easily provide your own custom E-commerce provider from App_Code. This applies to Kentico CMS version 5.5 or newer.

In this post I will show you the needed steps to easily provide your own custom E-commerce provider from App_Code. This applies to Kentico CMS version 5.5 or newer.

Step 1: Copy the files from the Kentico CMS install folder (e.g. C:\Program Files (x86)\KenticoCMS\5.5R2\CodeSamples\CustomECommerceProvider) to App_Code (e.g. App_Code/CustomECommerceProvider)

Step 2: Add the following application settings to the web.config


Step 3: Add the classes to the GetCustomClass method in CMSCustom.cs
case "App_Code.CustomAddressInfoProvider":
	return new CMS.CustomECommerceProvider.CustomAddressInfoProvider();
case "App_Code.CustomCreditEventInfoProvider":
	return new CMS.CustomECommerceProvider.CustomCreditEventInfoProvider();
case "App_Code.CustomCurrencyInfoProvider":
	return new CMS.CustomECommerceProvider.CustomCurrencyInfoProvider();
case "App_Code.CustomCustomerInfoProvider":
	return new CMS.CustomECommerceProvider.CustomCustomerInfoProvider();
case "App_Code.CustomDepartmentInfoProvider":
	return new CMS.CustomECommerceProvider.CustomDepartmentInfoProvider();
case "App_Code.CustomDiscountCouponInfoProvider":
	return new CMS.CustomECommerceProvider.CustomDiscountCouponInfoProvider();
case "App_Code.CustomDiscountLevelInfoProvider":
	return new CMS.CustomECommerceProvider.CustomDiscountLevelInfoProvider();
case "App_Code.CustomExchangeRateInfoProvider":
	return new CMS.CustomECommerceProvider.CustomExchangeRateInfoProvider();
case "App_Code.CustomExchangeTableInfoProvider":
	return new CMS.CustomECommerceProvider.CustomExchangeTableInfoProvider();
case "App_Code.CustomInternalStatusInfoProvider":
	return new CMS.CustomECommerceProvider.CustomInternalStatusInfoProvider();
case "App_Code.CustomManufacturerInfoProvider":
	return new CMS.CustomECommerceProvider.CustomManufacturerInfoProvider();
case "App_Code.CustomOptionCategoryInfoProvider":
	return new CMS.CustomECommerceProvider.CustomOptionCategoryInfoProvider();
case "App_Code.CustomOrderInfoProvider":
	return new CMS.CustomECommerceProvider.CustomOrderInfoProvider();
case "App_Code.CustomOrderItemInfoProvider":
	return new CMS.CustomECommerceProvider.CustomOrderItemInfoProvider();
case "App_Code.CustomOrderStatusInfoProvider":
	return new CMS.CustomECommerceProvider.CustomOrderStatusInfoProvider();
case "App_Code.CustomOrderStatusUserInfoProvider":
	return new CMS.CustomECommerceProvider.CustomOrderStatusUserInfoProvider();
case "App_Code.CustomPaymentOptionInfoProvider":
	return new CMS.CustomECommerceProvider.CustomPaymentOptionInfoProvider();
case "App_Code.CustomPublicStatusInfoProvider":
	return new CMS.CustomECommerceProvider.CustomPublicStatusInfoProvider();
case "App_Code.CustomShippingOptionInfoProvider":
	return new CMS.CustomECommerceProvider.CustomShippingOptionInfoProvider();
case "App_Code.CustomShoppingCartInfoProvider":
	return new CMS.CustomECommerceProvider.CustomShoppingCartInfoProvider();
case "App_Code.CustomShoppingCartItemInfoProvider":
	return new CMS.CustomECommerceProvider.CustomShoppingCartItemInfoProvider();
case "App_Code.CustomSKUInfoProvider":
	return new CMS.CustomECommerceProvider.CustomSKUInfoProvider();
case "App_Code.CustomSupplierInfoProvider":
	return new CMS.CustomECommerceProvider.CustomSupplierInfoProvider();
case "App_Code.CustomTaxClassInfoProvider":
	return new CMS.CustomECommerceProvider.CustomTaxClassInfoProvider();
case "App_Code.CustomVolumeDiscountInfoProvider":
	return new CMS.CustomECommerceProvider.CustomVolumeDiscountInfoProvider();