Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Minor changes (update summary)
KrzysztofPajake89ea0a982e4
diff --git a/src/Business/Grand.Business.Checkout/Interfaces/Orders/IShoppingCartService.cs b/src/Business/Grand.Business.Checkout/Interfaces/Orders/IShoppingCartService.csindex 9b2067afa..71a2f95e3 100644--- a/src/Business/Grand.Business.Checkout/Interfaces/Orders/IShoppingCartService.cs+++ b/src/Business/Grand.Business.Checkout/Interfaces/Orders/IShoppingCartService.cs@@ -46,15 +46,20 @@ namespace Grand.Business.Checkout.Interfaces.Orders/// Add a product to shopping cart/// </summary>/// <param name="customer">Customer</param>- /// <param name="product">Product</param>- /// <param name="shoppingCartType">Shopping cart type</param>- /// <param name="storeId">Store identifier</param>+ /// <param name="productId">Product id</param>+ /// <param name="shoppingCartType">ShoppingCartType</param>+ /// <param name="storeId">Store id</param>+ /// <param name="warehouseId">Warehouse id</param>/// <param name="attributes">Attributes</param>- /// <param name="customerEnteredPrice">The price enter by a customer</param>- /// <param name="rentalStartDate">Rental start date</param>- /// <param name="rentalEndDate">Rental end date</param>+ /// <param name="customerEnteredPrice">EnteredPrice</param>+ /// <param name="rentalStartDate">RentalStartDate</param>+ /// <param name="rentalEndDate">RentalEndDate</param>/// <param name="quantity">Quantity</param>- /// <param name="automaticallyAddRequiredProductsIfEnabled">Automatically add required products if enabled</param>+ /// <param name="automaticallyAddRequiredProductsIfEnabled">AutomaticallyAddRequiredProductsIfEnabled</param>+ /// <param name="reservationId">ReservationId</param>+ /// <param name="parameter">Parameter for reservation</param>+ /// <param name="duration">Duration for reservation</param>+ /// <param name="getRequiredProductWarnings">GetRequiredProductWarnings</param>/// <returns>Warnings</returns>Task<IList<string>> AddToCart(Customer customer, string productId,ShoppingCartType shoppingCartType, string storeId, string warehouseId = null, IList<CustomAttribute> attributes = null,diff --git a/src/Business/Grand.Business.Checkout/Services/Orders/ShoppingCartService.cs b/src/Business/Grand.Business.Checkout/Services/Orders/ShoppingCartService.csindex 6122fb6eb..5241e134d 100644--- a/src/Business/Grand.Business.Checkout/Services/Orders/ShoppingCartService.cs+++ b/src/Business/Grand.Business.Checkout/Services/Orders/ShoppingCartService.cs@@ -173,20 +173,24 @@ namespace Grand.Business.Checkout.Services.Ordersreturn null;}-/// <summary>/// Add a product to shopping cart/// </summary>/// <param name="customer">Customer</param>- /// <param name="product">Product</param>- /// <param name="shoppingCartType">Shopping cart type</param>- /// <param name="storeId">Store identifier</param>+ /// <param name="productId">Product id</param>+ /// <param name="shoppingCartType">ShoppingCartType</param>+ /// <param name="storeId">Store id</param>+ /// <param name="warehouseId">Warehouse id</param>/// <param name="attributes">Attributes</param>- /// <param name="customerEnteredPrice">The price enter by a customer</param>- /// <param name="rentalStartDate">Rental start date</param>- /// <param name="rentalEndDate">Rental end date</param>+ /// <param name="customerEnteredPrice">EnteredPrice</param>+ /// <param name="rentalStartDate">RentalStartDate</param>+ /// <param name="rentalEndDate">RentalEndDate</param>/// <param name="quantity">Quantity</param>- /// <param name="automaticallyAddRequiredProductsIfEnabled">Automatically add required products if enabled</param>+ /// <param name="automaticallyAddRequiredProductsIfEnabled">AutomaticallyAddRequiredProductsIfEnabled</param>+ /// <param name="reservationId">ReservationId</param>+ /// <param name="parameter">Parameter for reservation</param>+ /// <param name="duration">Duration for reservation</param>+ /// <param name="getRequiredProductWarnings">GetRequiredProductWarnings</param>/// <returns>Warnings</returns>public virtual async Task<IList<string>> AddToCart(Customer customer, string productId,ShoppingCartType shoppingCartType, string storeId,@@ -264,7 +268,7 @@ namespace Grand.Business.Checkout.Services.Ordersif (update){//update existing shopping cart item- await UpdateExistingShoppingCartItem(shoppingCartItem, quantity, customer, product, attributes, getRequiredProductWarnings);+ await UpdateExistingShoppingCartItem(shoppingCartItem, customer, attributes);}else{@@ -280,8 +284,8 @@ namespace Grand.Business.Checkout.Services.Ordersreturn warnings;}- private async Task UpdateExistingShoppingCartItem(ShoppingCartItem shoppingCartItem, int quantity, Customer customer,- Product product, IList<CustomAttribute> attributes, bool getRequiredProductWarnings)+ private async Task UpdateExistingShoppingCartItem(ShoppingCartItem shoppingCartItem, Customer customer,+ IList<CustomAttribute> attributes){shoppingCartItem.Attributes = attributes;shoppingCartItem.UpdatedOnUtc = DateTime.UtcNow;