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
SavePickupPointAddressInDeliveryAddress
[AddInParameter("Save pick up point address in delivery address")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool SavePickupPointAddressInDeliveryAddress { get; set; }
Property Value
ShippingProviderTemplate
[AddInParameter("Shipping Provider Template")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "folder=templates/eCom7/ShippingProvider")]
public string ShippingProviderTemplate { get; set; }
Property Value
StockLocationCategory
[AddInLabel("Stock location type")]
[AddInParameter("StockLocationCategory")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "")]
public string StockLocationCategory { get; set; }
Property Value
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
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
Returns
GetParameterOptions(string)
public IEnumerable<ParameterOption> GetParameterOptions(string parameterName)
Parameters
parameterNamestring
Returns
ProcessOrder(Order)
Processes order by adding shipping provider values
public override void ProcessOrder(Order order)
Parameters
orderOrderOrder instance
RenderFrontend(Order)
Renders order data for frontend
public override string RenderFrontend(Order order)
Parameters
orderOrderOrder instance
Returns
- string
String representation of template with order data