Click or drag to resize
ShippingOptionInfoProviderGetShippingOptions Method (Int32, Boolean)

Note: This API is now obsolete.

Returns dataset of all shipping options matching the specified parameters.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use ShippingOptionInfoProviderExtensions.GetBySite(IShippingOptionInfoProvider, int, bool) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - ShippingOptionInfo.Provider.")]
public static ObjectQuery<ShippingOptionInfo> GetShippingOptions(
	int siteId,
	bool onlyEnabled = false
)

Parameters

siteId
Type: SystemInt32
ID of the site the options should be retrieved from. If set to 0, global shipping options are retrieved
onlyEnabled (Optional)
Type: SystemBoolean
True - only enabled shipping options from the specified site are returned. False - all site options are returned

Return Value

Type: ObjectQueryShippingOptionInfo
See Also