We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nopCommerce version: 4.70
Example You configured RequireOtherProducts - True RequiredProductIds - the list of products AutomaticallyAddRequiredProducts - True Save. After it you disabled RequireOtherProducts - False Nopcommerce will try to add the required products in the shopping cart. It doesn't check the RequireOtherProducts The fix is to add the checking RequireOtherProducts The File ShoppingCartService.cs async Task addRequiredProductsToCartAsync(int qty = 0) { if (!product.RequireOtherProducts) return; //get these required products var requiredProducts = await _productService.GetProductsByIdsAsync(_productService.ParseRequiredProductIds(product)); if (!requiredProducts.Any()) return; var finalRequiredProducts = requiredProducts.GroupBy(p => p.Id) .Select(g => new { Product = g.First(), Count = g.Count() });
Example You configured RequireOtherProducts - True RequiredProductIds - the list of products AutomaticallyAddRequiredProducts - True Save.
After it you disabled RequireOtherProducts - False
Nopcommerce will try to add the required products in the shopping cart. It doesn't check the RequireOtherProducts
The fix is to add the checking RequireOtherProducts The File ShoppingCartService.cs
async Task addRequiredProductsToCartAsync(int qty = 0) { if (!product.RequireOtherProducts) return; //get these required products var requiredProducts = await _productService.GetProductsByIdsAsync(_productService.ParseRequiredProductIds(product)); if (!requiredProducts.Any()) return; var finalRequiredProducts = requiredProducts.GroupBy(p => p.Id) .Select(g => new { Product = g.First(), Count = g.Count() });
Source: https://www.nopcommerce.com/boards/topic/99131/bug-with-adding-required-products
The text was updated successfully, but these errors were encountered:
#7206 Fixed auto adding required products when the RequireOtherProduc…
6455b0c
…ts is disabled
Closed #7206
Sorry, something went wrong.
exileDev
No branches or pull requests
nopCommerce version: 4.70
Source: https://www.nopcommerce.com/boards/topic/99131/bug-with-adding-required-products
The text was updated successfully, but these errors were encountered: