Generate a collection of all eligible shipping methods and charges based on a country when Freight-By-Weight is selected.

Namespace:  Asi.iBO.Commerce
Assembly:  Asi.iBO (in Asi.iBO.dll) Version: 15.1.2.0

Syntax

C#
public Dictionary<string, CFreightInfo> GetShippingCostsForEligibleShipMethods(
	string country
)
Visual Basic (Declaration)
Public Function GetShippingCostsForEligibleShipMethods ( _
	country As String _
) As Dictionary(Of String, CFreightInfo)
Visual C++
public:
Dictionary<String^, CFreightInfo^>^ GetShippingCostsForEligibleShipMethods(
	String^ country
)

Parameters

country
Type: System..::.String
The country for which the shipping methods should be retrieved.

Return Value

A Dictionary<(Of <(TKey, TValue>)>) consisting of
  • Key: A String identifying the name of the shipping method.
  • Value: A CFreightInfo object with information relating to the shipping charge for the associated shipping method.

If there was an error in determining a particular shipping charge, then the CFreightInfo item will have the error message.

Remarks

This method requires Freight By Weight setup. The method includes in a returned CFreightInfo object any error message that results from a problem in processing a given shipping method. AutoCalculateFreightFlag may be turned off if an error is encountered during calculation.

See Also