Table of Contents

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
public abstract class ShippingProvider : ConfigurableAddIn
Inheritance
ShippingProvider
Inherited Members

Remarks

Make use of the Dynamicweb AddIn API to add editable properties to the shipping provider.

Fields

IsServicePointSelected

protected static string IsServicePointSelected

Field Value

string
See Also

Properties

FieldPrefix

Gets the field prefix.
protected string FieldPrefix { get; }

Property Value

string
The field prefix.
See Also

ShippingID

Gets or sets the shipping identifier.
protected string ShippingID { get; set; }

Property Value

string
The shipping identifier.
See Also

Methods

CalculateShippingFee(Order)

Calculate shipping fee for the specified order
public virtual PriceRaw CalculateShippingFee(Order order)

Parameters

order Order
The order.

Returns

PriceRaw
Returns shipping fee for the specified order
See Also

GetFieldValues()

Gets the field values.
protected Dictionary<string, string> GetFieldValues()

Returns

Dictionary<string, string>
Dictionary(Of System.String, System.String).
See Also

GetShippingProviderByShipping(Shipping)

Returns the ShippingProvider from the given shipping, or null if it doesn't exist
public static ShippingProvider GetShippingProviderByShipping(Shipping shipping)

Parameters

shipping Shipping
The shipping represents information about the shipping method

Returns

ShippingProvider
ShippingProvider.

Examples

Shipping myShipping;
    ...
    ShippingProvider myShippingProvider = ShippingProvider.GetShippingProviderFromShipping(myPayment);
See Also

ProcessOrder(Order)

Processes the order.
public virtual void ProcessOrder(Order order)

Parameters

order Order
The order.
See Also

Render(Template, Order)

Makes it possible to extend the shipping method template instance.
public virtual void Render(Template template, Order order)

Parameters

template Template
The template instance rendering the shipping method.
order Order
The order currently being checked out.
See Also

RenderBackend(Order)

Renders the backend.
public virtual string RenderBackend(Order order)

Parameters

order Order
The order.

Returns

string
System.String.
See Also

RenderFrontend(Order)

Renders the frontend.
public virtual string RenderFrontend(Order order)

Parameters

order Order
The order.

Returns

string
System.String.
See Also

SaveLog(string, bool)

Saves the log.
protected void SaveLog(string message, bool isRequest)

Parameters

message string
The message.
isRequest bool
if set to true [is request].
See Also

SaveXmlLog(XmlDocument, bool)

Saves the xml log.
protected void SaveXmlLog(XmlDocument xml, bool isRequest)

Parameters

xml XmlDocument
The xml.
isRequest bool
if set to true the context is a request.
See Also

See Also

To top