download ShoppingBasket.ascx
Language: NonCode
LOC: 0
Project Info
commercefinity - An open source eCommerce ...odule(commercefinity)
Server: Google
Type: svn
...runk\Commerce\PageControls\
   AddItemResult.ascx
   AddItemResult.ascx.cs
   Catalog.ascx
   Catalog.ascx.cs
   Checkout.ascx
   Checkout.ascx.cs
   MyOrders.ascx
   MyOrders.ascx.cs
   PPCheckout.ascx
   PPCheckout.ascx.cs
   Product.ascx
   Product.ascx.cs
   Receipt.ascx
   Receipt.ascx.cs
   ShoppingBasket.ascx
   ShoppingBasket.ascx.cs

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShoppingBasket.ascx.cs"
    Inherits="Commerce_PageControls_ShoppingBasket" %>
<%@ Register Src="~/Commerce/Products/ProductSummaryDisplay.ascx" TagName="ProductSummaryDisplay"
    TagPrefix="uc1" %>
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
<h1>
    Your Shopping Basket:
    <span class="smalltext">AUD</span><asp:Label ID="lblSubtotal" runat="server"></asp:Label></h1>
<asp:Panel ID="pnlCheckout" runat="server">
    <p>
        All prices are in Australian dollars. Below is the items currently in your Shopping
        Basket. If required, change item quanties and press "Update". When you are ready
        to purchase click the "Checkout" button.</p>
    <asp:Button ID="btnAdjust" runat="server" Text="Update" OnClick="AdjustBasket" />
    <asp:HyperLink ID="lnkCheckout" runat="server" NavigateUrl="~/Checkout.aspx" CssClass="hlButton">Checkout</asp:HyperLink>
</asp:Panel>
<asp:Repeater ID="rptBasket" runat="server" OnItemCommand="DeleteItem">
    <ItemTemplate>
        <div id="productSummary">
            <a href="<%=Utility.GetAppPath()%>product/<%#Eval("SKU").ToString()%>.aspx">
                <img src='<%#Eval("imageFile")%>' alt="<%#Eval("productName")%>" class="thumbnail" />
            </a>
            <div class="productText">
                <h4>
                    <a href="<%=Utility.GetAppPath()%>product/<%#Eval("SKU").ToString()%>.aspx">
                        <%#Eval("productName")%>
                    </a>
                </h4>
                <p>
                    Added on
                    <%#DateTime.Parse(Eval("createdOn").ToString()).ToShortDateString() %>
                    <br />
                    <ew:NumericBox ID="txtQuantity" runat="server" Width="20px" Text='<%#Eval("quantity") %>'></ew:NumericBox>
                    @
                    <span class="smalltext">AUD</span><%#decimal.Parse(Eval("pricePaid").ToString()).ToString("C") %>
                    =
                    <span class="smalltext">AUD</span><%#decimal.Parse(Eval("lineTotal").ToString()).ToString("C") %>
                    <br />
                    <asp:Label ID="lblProductID" runat="server" Text='<%#Eval("productID") %>' Visible="false"></asp:Label>
                    <asp:Label ID="lblSelectedAtts" runat="server" Text='<%#Eval("attributes") %>' />
                    <span class="smalltext">Usually ships in
                        <%#Eval("shippingEstimate") %>
                    </span>
                </p>
            </div>
            <asp:LinkButton ID="lnkRemove" runat="server" CssClass="imageRight"><img src="images/icons/delete.gif" alt="Delete item from Shopping Basket." /></asp:LinkButton>
        </div>
    </ItemTemplate>
</asp:Repeater>
<asp:Panel ID="pnlNada" runat="server">
    <h2>
        There's nothing in your shopping basket!</h2>
    <p>
        We have lots of cool things you might be interested in checking out though...</p>
    <asp:DataList ID="dtProducts" runat="server" RepeatLayout="Flow">
        <ItemTemplate>
            <uc1:ProductSummaryDisplay ID="ProductSummaryDisplay1" runat="server" ProductName='<%#Eval("ProductName") %>'
                ImageFile='<%#Eval("ImageFile") %>' ProductID='<%#Eval("ProductID") %>' OurPrice='<%#Eval("OurPrice") %>'
                RetailPrice='<%#Eval("RetailPrice") %>' ShippingEstimate='<%#Eval("ShippingEstimate") %>'
                Rating='<%#Eval("Rating") %>' SKU='<%#Eval("SKU") %>' ProductGUID='<%#Eval("ProductGUID")%>' />
        </ItemTemplate>
    </asp:DataList></asp:Panel>

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us