ShoppingCartInfoProvider Class |
Namespace: CMS.Ecommerce
public class ShoppingCartInfoProvider : AbstractInfoProvider<ShoppingCartInfo, ShoppingCartInfoProvider>
The ShoppingCartInfoProvider type exposes the following members.
Name | Description | |
---|---|---|
ShoppingCartInfoProvider |
Name | Description | |
---|---|---|
infos |
Info tables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) |
Name | Description | |
---|---|---|
DataSource |
Data source for the provider
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
HashtableSettings |
Gets hashtable settings
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
InfoObject |
Info object instance the provider is working with.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
IsValid |
Indicates if the provider instance is up-to-date and can be used to manage object instances.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
TypeInfo |
Object type information.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) |
Name | Description | |
---|---|---|
AddShoppingCartItem |
Adds new initialized item to the shopping cart items collection.
| |
AddShoppingCartItemInternal(ShoppingCartInfo, ShoppingCartItemInfo) |
Adds new initialized item to the shopping cart items collection.
| |
AddShoppingCartItemInternal(ShoppingCartInfo, ShoppingCartItemParameters) |
Adds new item to the shopping cart object and returns its object.
| |
BeginTransaction |
Creates a new transaction over this provider.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
BulkDelete |
Bulk deletes info objects based on the given condition.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
BulkInsertInfos(IEnumerableBaseInfo) |
Bulk inserts the given list of info objects
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
BulkInsertInfos(IEnumerableTInfo, BulkInsertSettings) |
Bulk inserts the given list of info objects.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
CalculateTotalItemsWeight |
Calculates total weight of all shopping cart items.
| |
CalculateTotalItemsWeightInternal |
Calculates total weight of all shopping cart items.
| |
CheckShoppingCart | Obsolete.
Checks shopping cart items.
The following conditions must be met to pass the check:
1)All shopping cart items are enabled 2)Max units in one order are not exceeded
3)There is enough units in the inventory 4) Customer is registered, if there is a membership type product in the cart
5)Product validity is valid, if there is a membership or e-product type product in the cart
| |
CheckShoppingCartInternal | Obsolete.
Checks shopping cart items.
The following conditions must be met to pass the check:
1)All shopping cart items are enabled 2)Max units in one order are not exceeded
3)There is enough units in the inventory 4) Customer is registered, if there is a membership type product in the cart
5)Product validity is valid, if there is a membership or e-product type product in the cart
| |
CheckUniqueCodeName |
Checks if the object has unique code name. Returns true if the object has unique code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
CheckUniqueValues |
Checks if a record with the same column values already exists in the database. Returns true if the set of values is unique.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
ClearHashtables |
Clears the object's hashtables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
CopyShoppingCartItems |
Updates destination shopping cart with source shopping cart.
If such product configuration already exists in the shopping cart, only its quantity is updated. | |
CopyShoppingCartItemsInternal |
Updates destination shopping cart with source shopping cart.
If such product configuration already exists in the shopping cart, only its quantity is updated. | |
CreateDefaultBulkInsertSettings |
Creates bulk insert settings. By default CheckConstraints
and TableLock flags are set.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
CreateInfo |
Creates a new info object.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
CreateWebFarmTask(String, String) |
Creates web farm task specific for current object and action name
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
CreateWebFarmTask(String, String, Byte, String) |
Creates web farm task specific for current object and action name
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
DeleteInfo |
Deletes the object to the database.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
DeleteObjectFromHashtables |
Deletes the object instance from the hashtables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
DeleteShoppingCartInfo(Guid) |
Deletes shopping cart with specified GUID.
| |
DeleteShoppingCartInfo(Int32) |
Deletes shopping cart with specified ID.
| |
DeleteShoppingCartInfo(ShoppingCartInfo) |
Deletes specified shopping cart.
| |
DeleteShoppingCartInfo(Int32, String) |
Deletes shopping cart of the specified user.
| |
DeleteShoppingCartInfoInternal |
Deletes specified shopping cart.
| |
DeleteShoppingCartItems |
Deletes all items of the specified shopping cart.
| |
DeleteShoppingCartItemsInternal |
Deletes items of the specified shopping cart.
| |
EmptyShoppingCart |
Removes all items from specified shopping cart object.
| |
EmptyShoppingCartInternal |
Removes all items from specified shopping cart object and from the shopping cart in database.
| |
EvaluateContent |
Recalculates shopping cart content table.
| |
EvaluateContentInternal |
Recalculates shopping cart content table.
| |
GetDeleteQuery |
Gets the object query that deletes all items matching the query parameters
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetInfoByCodeName(String, Boolean) |
Gets an instance of info object based on the given code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetInfoByCodeName(String, Int32, Boolean) |
Gets an instance of info object based on the given code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetInfoByCodeName(String, Int32, Boolean, Boolean) |
Gets an instance of info object based on the given code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetInfoByCodeName(String, Int32, Int32, Boolean) |
Gets an instance of info object based on the given code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetInfoByFullName |
Gets an instance of info object based on the given full name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetInfoByGuid(Guid, Boolean) |
Gets an instance of info object based on the given GUID.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetInfoByGuid(Guid, Int32, Boolean) |
Gets an instance of info object based on the GUID.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetInfoById |
Gets an instance of info object based on ID.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetInfosByIds |
Gets the list of info objects by their IDs.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetObjectQuery |
Gets the object query for the provider
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
GetObjectQueryInternal |
Gets the object query for the provider
(Inherited from AbstractInfoProviderTInfo, TProvider.) | |
GetOrderInvoice |
Returns the HTML code for the order invoice.
| |
GetOrderInvoiceInternal |
Returns the HTML code for the order invoice.
| |
GetShoppingCartInfo(Guid) |
Returns shopping cart with specified GUID.
| |
GetShoppingCartInfo(Int32) |
Returns shopping cart with specified ID.
| |
GetShoppingCartInfo(Int32, String) |
Returns shopping cart of the specified user.
| |
GetShoppingCartInfoFromOrder |
Returns ShoppingCartInfo object created from the order data.
| |
GetShoppingCartInfoFromOrderInternal |
Returns ShoppingCartInfo object created from the order data.
| |
GetShoppingCartInfoInternal(Guid) |
Returns shopping cart with specified GUID.
| |
GetShoppingCartInfoInternal(Int32) |
Returns shopping cart with specified ID.
| |
GetShoppingCartInfoInternal(Int32, String) |
Returns shopping cart of the specified user.
| |
GetShoppingCartItem(ShoppingCartInfo, Guid) |
Returns shopping cart item from the specified shopping cart object.
| |
GetShoppingCartItem(ShoppingCartInfo, Int32) |
Returns shopping cart item from the specified shopping cart object.
| |
GetShoppingCartItemInternal(ShoppingCartInfo, ShoppingCartItemParameters) |
Returns specified shopping cart item from the given shopping cart object. If such item is not found, null is returned.
By default shopping cart item is searched according to the product SKUID and SKUIDs of its product options.
| |
GetShoppingCartItemInternal(ShoppingCartInfo, Guid) |
Returns shopping cart item from the specified shopping cart object.
| |
GetShoppingCartItemInternal(ShoppingCartInfo, Int32) |
Returns shopping cart item from the specified shopping cart object.
| |
GetShoppingCartResolver |
Returns initialized shopping cart resolver.
| |
GetShoppingCartResolverInternal |
Returns initialized shopping cart resolver
| |
GetShoppingCarts |
Returns the query for all shopping carts.
| |
GetShoppingCarts(Int32) |
Returns dataset of all shopping carts for specified site.
| |
GetShoppingCartsInternal |
Returns dataset of all shopping carts for specified site matching the specified parameters.
| |
GetTotalUnits |
Returns sum of all shopping cart items' units, bundle items and product options are not included.
| |
GetTotalUnitsInternal |
Returns sum of all shopping cart items' units, bundle items and product options are not included.
| |
Init |
Initializes the provider with the given type info and hashtable settings
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
InitHashtableSettings | (Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
InitTypeInfoAndRegister |
Initializes the provider variables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
Invalidate |
Sets this provider as invalid
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
LoadAllInfos |
Loads all infos to the hashtable
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
LoadInfos |
Loads all objects from the database to memory.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
ProcessWebFarmTask |
Runs the processing of specific web farm task for current provider
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
ProcessWebFarmTaskInternal |
Runs the processing of specific web farm task for current provider
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
RegisterObjectInHashtables |
Registers the object instance within the hashtables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
RemoveOriginalCodeNameFromHashtable |
Removes the original object code name from the hashtable
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
RemoveShoppingCartItem(ShoppingCartInfo, ShoppingCartItemInfo) |
Removes shopping cart item, related bundle items and its product options from the specified shopping cart object.
| |
RemoveShoppingCartItem(ShoppingCartInfo, Guid) |
Removes shopping cart item and its product options from the specified shopping cart object.
| |
RemoveShoppingCartItem(ShoppingCartInfo, Int32) |
Removes shopping cart item and its product options from the specified shopping cart object.
| |
RemoveShoppingCartItemInternal |
Removes shopping cart item, related bundle items and its product options from the specified shopping cart object.
| |
SetAsDefaultProvider |
Sets this provider instance as the default provider
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
SetInfo |
Inserts or Updates the object to the database.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
SetOrder(ShoppingCartInfo) |
Creates or updates order based on the data of the specified shopping cart.
| |
SetOrder(ShoppingCartInfo, Boolean) |
Creates or updates order based on the data of the specified shopping cart.
| |
SetOrderInternal |
Creates or updates order based on the data of the specified shopping cart.
| |
SetOrderItems |
Creates or updates order items based on the items of the specified shopping cart.
| |
SetOrderItemsInternal |
Creates or updates order items based on the items of the specified shopping cart.
| |
SetShoppingCartInfo |
Sets (updates or inserts) specified shopping cart.
| |
SetShoppingCartInfoInternal |
Sets (updates or inserts) specified shopping cart.
| |
SetShoppingCartItem |
Adds the product (and its product options) specified in the itemParams to the specified cart object.
If such product configuration already exists in the shopping cart,
only the CartItemUnits property is increased by Quantity.
The added/updated shopping cart item is returned.
| |
SetShoppingCartItemInternal |
Adds the product (and its product options) specified in the itemParams to the specified cart object.
If such product configuration already exists in the shopping cart,
only the CartItemUnits property is increased by Quantity.
The added/updated shopping cart item is returned.
| |
UpdateData(String, QueryDataParameters, String) |
Updates the data in the database based on the given where condition.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
UpdateData(IWhereCondition, IEnumerableKeyValuePairString, Object, Boolean) |
Updates the data in the database based on the given where condition.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
UpdateObjectInHashtables |
Updates the object instance in the hashtables. Update is different than RegisterObjectInHashtables(TInfo), because it logs task about changing object.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
UpdateShoppingCartFromOrder |
Updates shopping cart with shopping cart from order. If such product configuration already exists in the shopping cart, only its quantity is updated.
Returns true if all ordered items were successfully added to cart.
| |
UpdateShoppingCartFromOrderInternal |
Updates shopping cart with shopping cart from order. If such product configuration already exists in the shopping cart, only its quantity is updated.
Returns true if all ordered items were successfully added to cart.
| |
UpdateShoppingCartItemInternal |
Updates shopping cart item in the specified shopping cart object. By default only units of the specified shopping cart item and units of its product options are updated.
| |
ValidateCodeName |
Validates the object code name. Returns true if the code name is valid.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.) | |
ValidateShoppingCart |
Validates shopping cart and all its items. Returns an empty collection in case validation passes.
| |
ValidateShoppingCartInternal |
Validates shopping cart and all its items. Returns an empty collection in case validation passes.
|