Address: http://skywalkersoftwaredevelopment.net/blog/writing-an-orchard-webshop-module-from-scratch-part-1
Introduction
In this series of blogs, we will go through the process of building an Orchard module from scratch!
Although Orchard is a great CMS (Content Management System) with powerful features and exciting architecture that can be expanded infinitely, it may take some time, to fully understand its architecture, and be able to customize all aspects of your own theme or even create an entire module to integrate all Orchard's scalability points.
I hope that you will benefit from the knowledge I have gained on the way forward, and you will see the beauty of Orchard and its architecture. It not only performs well in simple or advanced websites and blogs, but also serves as a very basic platform for creating various Web-based applications, such as the e-commerce backend, CRM voting system, project management, community websites, learning management system, etc. Basically, any application you want to create from scratch should be created using Orchard. Orchard is actually a scalable framework. It is not just a CMS. You can use plug-ins to do anything that can be done by common ASP. net mvc applications. Orchard also has a rich set of functions and compatibility concepts, allowing you to gain additional benefits.
This podcast series is intended for ASP. net mvc developers who have just been in contact with Orchard. If you have not read the following articles before, I strongly recommend that you read the following articles:
Http://docs.orchardproject.net/Documentation/How-Orchard-works
Http://msdn.microsoft.com/en-us/magazine/hh708754.aspx
Online Store Functions
Our online store module will enable the following features:
- The administrator can attach any ContentType (content type) to the ProductPart to convert it into a product.
- Website Visitors (customers) will be able to add products to the shopping basket, register through the website, and become registered users.
- Users will be able to settle and pay through the online payment service provider (PSP) (in our demo, we will use Ogone to simulate PSP) selected products.
- Before the customer is redirected to PSP, the system will create an Order record and its OrderDetail (Order details) record.
- After the customer pays the order, we need to process the product delivery. In the case of physical products, we may want to inform some shipping partners. In the case of a virtual product, we may produce products similar to a bill or other similar products. For this flexibility, we will implement some interface IShippingProvider, And we will create two simple implementations: one is to send an email to notify the shipper, and the other will generate a ticket.
- The management background allows administrators to manage customers and orders.
(Note: for embedding, some images appear too small. You only need to drag the images to the address bar of your browser to view the original size of the images .)
Okay, let's start creating the Orchard Webshop Module )!
Part 2-Introduction (this article)
Part 2-configure your Orchard Development Environment
Part 2-create an Orchard. Webshop Module Project
Part 2-create a ProductPart
Part 2-create and render the content type of ProductCatalog
Part 2-create a shopping cart service and a controller
Part 2-rendering ShoppingCart and ShoppingCartWidget
Part 2-registering a new customer and website
Part 2-create an order and communicate with PSP
Part 2-customer and Order Management backend
Part 2-custom products and categories in the content list: DisplayTypes
Part 2-integration with ERP systems
Part 2-handling freight and taxes
Part 2-payment method implementation: Google Checkout
Part 2-payment method implementation: PayPal
Click here to view the demo!