Class ShippingProvider
- Namespace
- Dynamicweb.Ecommerce.Cart
- Assembly
- Dynamicweb.Ecommerce.dll
A ShippingProvider calculates rate of goods delivery. Inherit from this base class to extend shipping services in DynamicWeb eCommerce
- Inheritance
-
Shipping
Provider
- Derived
- Inherited Members
Remarks
Make use of the Dynamicweb AddIn API to add editable properties to the shipping provider.
Fields
IsServicePointSelected
Field Value
Properties
FieldPrefix
Gets the field prefix.
Property Value
- string
The field prefix.
ShippingID
Gets or sets the shipping identifier.
Property Value
- string
The shipping identifier.
Methods
CalculateShippingFee(Order)
Calculate shipping fee for the specified order
Parameters
order
OrderThe order.
Returns
- Price
Raw Returns shipping fee for the specified order
GetFieldValues()
Gets the field values.
Returns
- Dictionary<string, string>
Dictionary(Of System.String, System.String).
GetShippingProviderByShipping(Shipping)
Returns the ShippingProvider from the given shipping, or null if it doesn't exist
Parameters
shipping
ShippingThe shipping represents information about the shipping method
Returns
- Shipping
Provider ShippingProvider.
ProcessOrder(Order)
Processes the order.
Parameters
order
OrderThe order.
Render(Template, Order)
Makes it possible to extend the shipping method template instance.
Parameters
renderingTemplate
TemplateThe template instance rendering the shipping method.
order
OrderThe order currently being checked out.
RenderBackend(Order)
Renders the backend.
Parameters
order
OrderThe order.
Returns
- string
System.String.
RenderFrontend(Order)
Renders the frontend.
Parameters
order
OrderThe order.
Returns
- string
System.String.
SaveLog(string, bool)
Saves the log.
Parameters
SaveXmlLog(XmlDocument, bool)
Saves the xml log.
Parameters
xml
XmlDocument The xml.
isRequest
boolif set to
true
the context is a request.