Calculate the freight charge with the current set of properties, but with a particular shipping method.

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

Syntax

C#
protected CFreightInfo GetFreightCharge(
	string shipMethod,
	bool createCError
)
Visual Basic (Declaration)
Protected Function GetFreightCharge ( _
	shipMethod As String, _
	createCError As Boolean _
) As CFreightInfo
Visual C++
protected:
CFreightInfo^ GetFreightCharge(
	String^ shipMethod, 
	bool createCError
)

Parameters

shipMethod
Type: System..::.String
The desired ship method for which the calculation should occur.
createCError
Type: System..::.Boolean
True if a CError item should be created if an error is detected during calculation. This is for compatability purposes (see CalcFreightTotal()()()). Otherwise, false will set the ErrorMessage property of the returned object.

Return Value

An object which contains the automatically or manually set shipping charge, depending upon whether AutoCalculateFreightFlag was set or not, respectively.

Remarks

This method is intended to be used where a set of charges per shipping method is desired. The presence of the createCError flag is intended to support both the "older" GetShippingCosts()()() and CalcFreightTotal()()() methods, which assume a CError object is created when an error is encountered, as well as the newer GetShippingCostsForAllShippingMethods()()() routine.

See Also