Table of Contents

Class StockLocationShippingProvider

Namespace
Dynamicweb.Ecommerce.Cart.ShippingProviders
Assembly
Dynamicweb.Ecommerce.dll

'Collection points - Stock Locations' shipping provider

[AddInName("Click & Collect - Stock Locations")]
public class StockLocationShippingProvider : ShippingProvider, IParameterOptions
Inheritance
StockLocationShippingProvider
Implements
Inherited Members

Constructors

StockLocationShippingProvider()

Default constructor

public StockLocationShippingProvider()

Properties

DropPointMax

[AddInLabel("Max number of drop points")]
[AddInParameter("DropPointMax")]
[AddInParameterEditor(typeof(IntegerNumberParameterEditor), "")]
public int DropPointMax { get; set; }

Property Value

int

SavePickupPointAddressInDeliveryAddress

[AddInParameter("Save pick up point address in delivery address")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool SavePickupPointAddressInDeliveryAddress { get; set; }

Property Value

bool

ShippingProviderTemplate

[AddInParameter("Shipping Provider Template")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "folder=templates/eCom7/ShippingProvider")]
public string ShippingProviderTemplate { get; set; }

Property Value

string

StockLocationCategory

[AddInLabel("Stock location type")]
[AddInParameter("StockLocationCategory")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "")]
public string StockLocationCategory { get; set; }

Property Value

string

UseDeliveryAddressIfPresent

[AddInParameter("Use delivery address if specified")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
[AddInDescription("Use delivery address if specified otherwise use billing address")]
public bool UseDeliveryAddressIfPresent { get; set; }

Property Value

bool

Methods

FindNearestServicePoints(string, string, string, string, string, string)

public IEnumerable<StockLocation> FindNearestServicePoints(string country, string city, string address, string address2, string zip, string languageId)

Parameters

country string
city string
address string
address2 string
zip string
languageId string

Returns

IEnumerable<StockLocation>

GetParameterOptions(string)

public IEnumerable<ParameterOption> GetParameterOptions(string parameterName)

Parameters

parameterName string

Returns

IEnumerable<ParameterOption>

ProcessOrder(Order)

Processes order by adding shipping provider values

public override void ProcessOrder(Order order)

Parameters

order Order

Order instance

RenderFrontend(Order)

Renders order data for frontend

public override string RenderFrontend(Order order)

Parameters

order Order

Order instance

Returns

string

String representation of template with order data

To top