<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CartControl.ascx.cs" Inherits="Controls_CartControl" %>
<% if (ShoppingCart.Count > 0) { %> <% if (IsEditable) { %> <% } else { %> <% } %> <% if (ShoppingCart.RequiresSalesTax && ShoppingCart.SalesTax > 0) { %> <% } %> <% if (ShoppingCart.ShippingName.Length > 0 && !ShoppingCart.IsFreeShipping) { %> <% } %> <% if (IsEditable) { %> <% } else { %> <% } %> <% } else { %> <% } %>
Quantity Product Unit Price Total Price
  <% if (IsEditable) { %> <% } else { %> <%# Eval("Quantity") %> <% } %> <%# Eval("Name") %> (<%# Eval("SKU") %>)
<%# Eval("CustomizationText") %>
<%# Eval("CustomizedPrice", "{0:c}")%> <%# Eval("ItemTotal","{0:C}") %>
  <% if (IsEditable) { %> <% } %> Sub Total: <%= String.Format("{0:C}", ShoppingCart.SubTotal) %>
  <%# Eval("DiscountTitle") %> : -<%# Eval("DiscountAmount", "{0:C}") %>
  <%= ShoppingCart.TaxState %> Sales Tax (<%= String.Format("{0:f}", ShoppingCart.TaxRate*100) %>%): <%= String.Format("{0:c}", ShoppingCart.SalesTax) %>
  Shipping and Handling <% if (ShoppingCart.ShippingName != string.Empty) { %> (<%= ShoppingCart.ShippingName%>) <% } %>: <%= String.Format("{0:C}", ShoppingCart.ShippingCost) %>
  Total: Need to make a change to quantities? Click here. Total:<%= String.Format("{0:C}", ShoppingCart.GrandTotal)%>
Your cart is empty.