CustomShippingOptionInfoProvider

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

This class manages the shipping option lookup table. It uses the ShippingOptionInfo class.

 

object GetShippingOptionInfo(int shippingOptionId) – returns ShippingOptionInfo object with given ID.
object GetShippingOptionInfo(string shippingOptionName, string siteName) – returns ShippingOptionInfo object with given name on the given site.
void SetShippingOptionInfo(object shippingOption) – updates/inserts the shipping option with data from given ShippingOptionInfo object.
void DeleteShippingOptionInfo(int shippingOptionId) – deletes the specified shipping option.
bool CheckDependencies(int shippingOptionID) – returns true if some objects depend on given shipping option.
DataSet GetShippingOptions() – returns the DataSet of all shipping options. See database reference for detailed column information.
DataSet GetShippingOptions(string where, string orderBy) – returns DataSet of the shipping options with specified condition and order.
DataSet GetAllShippingsForSite(int siteId, object status) – returns the DataSet of shipping options on given site with specified status.
double CalculateShipping(object cartObj, string siteName) – returns the shipping price for given ShoppingCartInfo object, in default currency.
DataSet GetShippingOptions(object cart, object status) - returns the DataSet of shipping options with specified status and depending on the shopping cart data.
double ApplyShippingFreeLimit(double shipping, double totalPrice, double siteStoreFreeLimit) - Returns shipping price or zero according to site store shipping free limit.

 

Page url: http://devnet.kentico.com/docs/5_5r2/ecommerceguide/index.html?customshippingoptioninfoprovider.htm