Method | Description | |
---|---|---|
AddToCart ( |
Add a product variant to shopping cart
|
|
DeleteExpiredShoppingCartItems ( System.DateTime olderThanUtc ) : int |
Deletes expired shopping cart items
|
|
DeleteShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem, bool resetCheckoutData = true, bool ensureOnlyActiveCheckoutAttributes = false ) : void |
Delete shopping cart item
|
|
FindShoppingCartItemInTheCart ( IList |
Finds a shopping cart item in the cart
|
|
GetRequiredProductVariantWarnings ( |
Validates required product variants (product variants which require other variant to be added to the cart)
|
|
GetShoppingCartItemAttributeWarnings ( ShoppingCartType shoppingCartType, Nop.Core.Domain.Catalog.ProductVariant productVariant, string selectedAttributes ) : IList |
Validates shopping cart item attributes
|
|
GetShoppingCartItemGiftCardWarnings ( ShoppingCartType shoppingCartType, Nop.Core.Domain.Catalog.ProductVariant productVariant, string selectedAttributes ) : IList |
Validates shopping cart item (gift card)
|
|
GetShoppingCartItemWarnings ( |
Validates shopping cart item
|
|
GetShoppingCartWarnings ( IList |
Validates whether this shopping cart is valid
|
|
GetStandardWarnings ( |
Validates a product variant for standard properties
|
|
MigrateShoppingCart ( |
Migrate shopping cart
|
|
ShoppingCartService ( IRepository |
Ctor
|
|
UpdateShoppingCartItem ( |
Updates the shopping cart item
|
public AddToCart ( |
||
customer | Customer | |
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
shoppingCartType | ShoppingCartType | Shopping cart type |
selectedAttributes | string | Selected attributes |
customerEnteredPrice | decimal | The price enter by a customer |
quantity | int | Quantity |
automaticallyAddRequiredProductVariantsIfEnabled | bool | Automatically add required product variants if enabled |
return | IList |
public DeleteExpiredShoppingCartItems ( System.DateTime olderThanUtc ) : int | ||
olderThanUtc | System.DateTime | Older than date and time |
return | int |
public DeleteShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem, bool resetCheckoutData = true, bool ensureOnlyActiveCheckoutAttributes = false ) : void | ||
shoppingCartItem | Nop.Core.Domain.Orders.ShoppingCartItem | Shopping cart item |
resetCheckoutData | bool | A value indicating whether to reset checkout data |
ensureOnlyActiveCheckoutAttributes | bool | A value indicating whether to ensure that only active checkout attributes are attached to the current customer |
return | void |
public FindShoppingCartItemInTheCart ( IList |
||
shoppingCart | IList |
Shopping cart |
shoppingCartType | ShoppingCartType | Shopping cart type |
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
selectedAttributes | string | Selected attributes |
customerEnteredPrice | decimal | Price entered by a customer |
return | Nop.Core.Domain.Orders.ShoppingCartItem |
public GetRequiredProductVariantWarnings ( |
||
customer | Customer | |
shoppingCartType | ShoppingCartType | Shopping cart type |
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
automaticallyAddRequiredProductVariantsIfEnabled | bool | Automatically add required product variants if enabled |
return | IList |
public GetShoppingCartItemAttributeWarnings ( ShoppingCartType shoppingCartType, Nop.Core.Domain.Catalog.ProductVariant productVariant, string selectedAttributes ) : IList |
||
shoppingCartType | ShoppingCartType | Shopping cart type |
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
selectedAttributes | string | Selected attributes |
return | IList |
public GetShoppingCartItemGiftCardWarnings ( ShoppingCartType shoppingCartType, Nop.Core.Domain.Catalog.ProductVariant productVariant, string selectedAttributes ) : IList |
||
shoppingCartType | ShoppingCartType | Shopping cart type |
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
selectedAttributes | string | Selected attributes |
return | IList |
public GetShoppingCartItemWarnings ( |
||
customer | Customer | |
shoppingCartType | ShoppingCartType | Shopping cart type |
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
selectedAttributes | string | Selected attributes |
customerEnteredPrice | decimal | Customer entered price |
quantity | int | Quantity |
automaticallyAddRequiredProductVariantsIfEnabled | bool | Automatically add required product variants if enabled |
getStandardWarnings | bool | A value indicating whether we should validate a product variant for standard properties |
getAttributesWarnings | bool | A value indicating whether we should validate product attributes |
getGiftCardWarnings | bool | A value indicating whether we should validate gift card properties |
getRequiredProductVariantWarnings | bool | A value indicating whether we should validate required product variants (product variants which require other variant to be added to the cart) |
return | IList |
public GetShoppingCartWarnings ( IList |
||
shoppingCart | IList |
Shopping cart |
checkoutAttributes | string | Checkout attributes |
validateCheckoutAttributes | bool | A value indicating whether to validate checkout attributes |
return | IList |
public GetStandardWarnings ( |
||
customer | Customer | |
shoppingCartType | ShoppingCartType | Shopping cart type |
productVariant | Nop.Core.Domain.Catalog.ProductVariant | Product variant |
selectedAttributes | string | Selected attributes |
customerEnteredPrice | decimal | Customer entered price |
quantity | int | Quantity |
return | IList |
public MigrateShoppingCart ( |
||
fromCustomer | From customer | |
toCustomer | To customer | |
return | void |
public ShoppingCartService ( IRepository |
||
sciRepository | IRepository |
Shopping cart repository |
workContext | IWorkContext | Work context |
currencyService | ICurrencyService | Currency service |
productService | IProductService | Product settings |
localizationService | ILocalizationService | Localization service |
productAttributeParser | IProductAttributeParser | Product attribute parser |
checkoutAttributeService | ICheckoutAttributeService | Checkout attribute service |
checkoutAttributeParser | ICheckoutAttributeParser | Checkout attribute parser |
priceFormatter | IPriceFormatter | Price formatter |
customerService | ICustomerService | Customer service |
shoppingCartSettings | Nop.Core.Domain.Orders.ShoppingCartSettings | Shopping cart settings |
eventPublisher | IEventPublisher | Event publisher |
permissionService | IPermissionService | Permission service |
return | System |
public UpdateShoppingCartItem ( |
||
customer | Customer | |
shoppingCartItemId | int | Shopping cart item identifier |
newQuantity | int | New shopping cart item quantity |
resetCheckoutData | bool | A value indicating whether to reset checkout data |
return | IList |