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.
This example is part of several series that I will be releasing in the near future showing how to use the Sitefinity Ecommerce API. This example shows you how to work within the checkout API to create a custom checkout widget. Please note that these are just examples of which certain features may not exist or function properly. It is not my intention to create sample widgets to use in a production environment, but instead provide you with examples (source code) giving you a better understanding of our API.
The one page checkout is a custom checkout widget that can be used in combination with the donation and buy now widgets from my previous posts. Like donations, customizing a checkout process is something many ecommerce applications struggle with. Allowing the visitor to checkout as quickly as possible is ideal. However, if the visitor wants to give a donation or purchase an online gift certificate, you may want the customer to bypass any tax or shipping calculations which are usually found on standard checkout pages. With Sitefinity Ecommerce, you can create many custom checkout pages allowing for specific products (EX: ticket) to use a particular checkout page. This one page checkout consists of the billing/shipping addresses, real-time shipping rates, payment information and cart preview.
To begin, download the project source code from GitHub.com (https://github.com/esitefinity/Sitefinity-Custom-Checkout) and add the project to your existing Visual Studio Sitefinity project. Once the project has been added to Sitefinity, you will need to log into the backend of Sitefinity and create a custom checkout page, dragging-dropping the custom checkout widget onto this page. Edit the properties of the widget, selecting a “receipt page” to link the checkout process then publish this page. This is all you need to do to use this custom checkout widget.
This example is a work in progress and I want to make sure people understand this I have placed this project on GitHub.com so that other developers can contribute to it. Below are some of the current limitations of this widget
Much of the code for this project exists in the folder called “Helpers”. This includes the file OrderHelper.cs which contains many of methods and calls for this project. The OrderHelper.cs file is a good example showing you some of the calls to the API.
Again, look for updates on GitHub.com for this project as I know others will likely contribute to it.
Much appreciation goes to Venkata Koppaka who helped in creating this example.
View all posts from The Progress Team on the Progress blog. Connect with us about all things application development and deployment, data integration and digital business.
Let our experts teach you how to use Sitefinity's best-in-class features to deliver compelling digital experiences.Learn More
Subscribe to get all the news, info and tutorials you need to build better business apps and sites
You have the right to request deletion of your Personal Information at any time.
You can also ask us not to pass your Personal Information to third parties here: Do Not Sell My Info
We see that you have already chosen to receive marketing materials from us. If you wish to change this at any time you may do so by clicking here.
Thank you for your continued interest in Progress. Based on either your previous activity on our websites or our ongoing relationship, we will keep you updated on our products, solutions, services, company news and events. If you decide that you want to be removed from our mailing lists at any time, you can change your contact preferences by clicking here.