From 323cbf822e04920f58ce6d81101dbaf4355efe49 Mon Sep 17 00:00:00 2001 From: support Date: Wed, 25 Nov 2026 19:31:23 +0100 Subject: [PATCH] Give the associated product's cart item the store of the item, not its id The attribute validator checks an associated product (AssociatedToProduct attribute value) through a cart item it builds for it, and set that item's StoreId to the parent item's Id. Nothing on that path reads the store today, so no warning changes; the item now carries the right store for any check that does. --- .../Validators/ShoppingCartItemAttributeValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Business/Grand.Business.Checkout/Validators/ShoppingCartItemAttributeValidator.cs b/src/Business/Grand.Business.Checkout/Validators/ShoppingCartItemAttributeValidator.cs index bbf8cff53..b0f3b5f9a 100644 --- a/src/Business/Grand.Business.Checkout/Validators/ShoppingCartItemAttributeValidator.cs +++ b/src/Business/Grand.Business.Checkout/Validators/ShoppingCartItemAttributeValidator.cs @@ -61,7 +61,7 @@ public ShoppingCartItemAttributeValidator(ITranslationService translationService value with { Product = associatedProduct, ShoppingCartItem = new ShoppingCartItem { ShoppingCartTypeId = value.ShoppingCartItem.ShoppingCartTypeId, - StoreId = value.ShoppingCartItem.Id, + StoreId = value.ShoppingCartItem.StoreId, Quantity = totalQty, WarehouseId = value.ShoppingCartItem.WarehouseId, Attributes = value.ShoppingCartItem.Attributes