Home » Developing » Developing in Litium Studio » Litium Studio ECommerce » Delivery provider
Delivery provider is connected to a delivery method and implements how a delivery will be processed. It is straight forward to create delivery providers in the Ecommerce module. All you have to do is to create a web user control that implements the interface Ecommerce.Web.IDeliveryProviderControl and register it in the settings view of the Ecommerce module. PacSoft.ascx in Modules/ECommerce/Panels folder is an example implementation.
You are totally free in the design and the functionality of the web user control as long as it implements the interface Ecommerce.Web.IDeliveryProviderControl. Ecommerce module will load your web user control and show it in SendToDeliveryProvider.aspx (if the interface property IsInteractiveMode returns true) and will use the interface methods to process the delivery.
Configure a delivery provider and connect to a delivery method
Use the “Delivery providers” tab at the “Settings” of the Ecommerce Module to register the delivery provider web user control that you have created.
Create a new delivery provider.
- Fill in the name of the delivery provider.
- Finally type in the name of the “.ascx” file that you have created. It is assumed that the “.ascx” file is located in the folder “Modules/Ecommerce/Panels”. In order to give another location type in the complete path starting with “~/” (Ex: For “CustomDeliveryProvider.ascx” that is located in the folder “Moules/Ecommerce/WebUserControls” you have to give the complete path as “~/Modules/Ecommerce/WebUserControls/CustomDeliveryProvider.ascx").
Now you can connect the delivery provider to a delivery method in the “Delivery Methods” tab at the “Settings” of Ecommerce module. This connection is one to one for the delivery methods: you cannot connect a delivery method more than one delivery provider.
Beside the delivery provider delivery method has two properties: description and VAT percentage that can be applied to the delivery fee. There are four default delivery methods in the system, you are free to add new delivery methods.
Comments made
No comments are made
You need to be logged in to make a comment