Deliver superior customer experiences with an AI-driven platform for creating and deploying cognitive chatbots
Deliver Awesome UI with the most complete toolboxes for .NET, Web and Mobile development
Automate UI, load and performance testing for web, desktop and mobile
A complete cloud platform for an app or your entire digital business
Detect and predict anomalies by automating machine learning to achieve higher asset uptime and maximized yield
Automate decision processes with a no-code business rules engine
Optimize data integration with high-performance connectivity
Connect to any cloud or on-premises data source using a standard interface
Build engaging multi-channel web and digital experiences with intuitive web content management
Personalize and optimize the customer experience across digital touchpoints
Build, protect and deploy apps across any platform and mobile device
Rapidly develop, manage and deploy business apps, delivered as SaaS in the cloud
The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
We introduced a very powerful feature in Sitefinity 4.2 SP 1 that allows you to implement customized code through a post-purchase processing hook in the Ecommerce module. A software developer can create custom code and register the code to be called after two specific events. The first event that can be subscribed to occurs immediately after the payment gateway returns a response. The second event that can be subscribed to occurs after the order is placed. You can write a custom service in either event handler or you may prefer to write one service and execute your custom code just after the order is placed.
There are endless reasons for implementing a web service after these two events. Below are just a few ideas on how you may take advantage of this extendable and powerful new feature in Sitefinity Ecommerce.
To use these events developers should add Global.asax file to SitefinityWebApp project and subscribe to the Ecommerce events.
The Ecommerce specific events can only be registered after Sitefinity’s Bootstrapper has initialized. So, first subscribe to the Bootstrapper.Initialized method. In the Bootstapper_Initialized method you can subscribe to Ecommerce specific events like EcommerceEvents.OrderPlaced or EcommerceEvents.PaymentResponse.
See the code below for an example.
Global : System.Web.HttpApplication
sender, EventArgs e)
sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
//Write your own customizations
// Write your own customizations
I am sure you will find this feature very helpful allowing you to integrate customizations that you may need for your online store. All future exposed events will be in the EcommerceEvents class. Upcoming will be another pre-purchase hook that will allow you to write a web service to do anything that you want to do before going into the payment processing section.
We would love to hear about your experiences with these events. We would also like to hear any other specific scenarios that developers might need to make Sitefinity Ecommerce a more extensible product.
View all posts from The Progress Guys on the Progress blog. Connect with us about all things application development and deployment, data integration and digital business.
Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.