1. Bertrand Le Roy
  2. Nwazet.Commerce

Commits

Bertrand Le Roy  committed ebb9563

An empty shopping cart does not show the checkout buttons

  • Participants
  • Parent commits b0a4382
  • Branches default

Comments (0)

Files changed (1)

File Views/ShoppingCart.cshtml

View file
             </div>
         }
     }
-    @if (Model.CheckoutButtons != null && (
+    @if (items.Any() && Model.CheckoutButtons != null && (
             Model.ShippingOption != null || (
                 Model.ShopItemsAllDigital && !String.IsNullOrWhiteSpace(Model.Country) && !String.IsNullOrWhiteSpace(Model.ZipCode)))) {
         <ul class="checkout">