diff --git a/src/Modules/OrchardCore.Commerce.ContentFields/OrchardCore.Commerce.ContentFields.csproj b/src/Modules/OrchardCore.Commerce.ContentFields/OrchardCore.Commerce.ContentFields.csproj index 6425607b1..dc1ce5ef9 100644 --- a/src/Modules/OrchardCore.Commerce.ContentFields/OrchardCore.Commerce.ContentFields.csproj +++ b/src/Modules/OrchardCore.Commerce.ContentFields/OrchardCore.Commerce.ContentFields.csproj @@ -44,7 +44,7 @@ - + diff --git a/src/Modules/OrchardCore.Commerce.Inventory/OrchardCore.Commerce.Inventory.csproj b/src/Modules/OrchardCore.Commerce.Inventory/OrchardCore.Commerce.Inventory.csproj index 33eb4fddb..27098a2e3 100644 --- a/src/Modules/OrchardCore.Commerce.Inventory/OrchardCore.Commerce.Inventory.csproj +++ b/src/Modules/OrchardCore.Commerce.Inventory/OrchardCore.Commerce.Inventory.csproj @@ -41,7 +41,7 @@ - + diff --git a/src/Modules/OrchardCore.Commerce/Services/OrderLineItemService.cs b/src/Modules/OrchardCore.Commerce/Services/OrderLineItemService.cs index e0e7d365d..07c8979c7 100644 --- a/src/Modules/OrchardCore.Commerce/Services/OrderLineItemService.cs +++ b/src/Modules/OrchardCore.Commerce/Services/OrderLineItemService.cs @@ -81,9 +81,9 @@ public OrderLineItemService( shipping, billing, orderPart?.ContentItem?.PublishedUtc ?? _clock.UtcNow, - VatNumber: orderPart.VatNumber.Text, + VatNumber: orderPart?.VatNumber.Text, Stored: true, - IsCorporation: orderPart.IsCorporation.Value); + IsCorporation: orderPart?.IsCorporation.Value ?? false); var changed = false; if (_taxProviders.Any() && diff --git a/src/Modules/OrchardCore.Commerce/Views/ShoppingCartCell_Product.cshtml b/src/Modules/OrchardCore.Commerce/Views/ShoppingCartCell_Product.cshtml index bde473bd1..09d7c7f67 100644 --- a/src/Modules/OrchardCore.Commerce/Views/ShoppingCartCell_Product.cshtml +++ b/src/Modules/OrchardCore.Commerce/Views/ShoppingCartCell_Product.cshtml @@ -7,7 +7,7 @@ var attributes = (IList<(IProductAttributeValue Value, string Type, int Index)>)Model.ProductAttributes; } -@line.ProductName +@line.ProductName @if (line.Attributes?.Any() == true) {