Subversion Repositories SmartDukaan

Rev

Rev 3149 | Rev 3840 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <!-- Prevent MS Office toolbar from changing layout -->
        <meta http-equiv="imagetoolbar" content="false" />
        <meta name="MSSmartTagsPreventParsing" content="true" />
        <title>Saholic</title>
#include ( "templates/commoncssfiles.vm" )
#set($total_amount = 0.0)
</head>

<body>
        <noscript>
                <p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
        </noscript>

        $action.getHeaderSnippet()
        
<div id="main">
        <div class="main-content">
                <div id="cartFlowHeader">
                        <div class="left cartflow-header-tab lefttab-inactive inactive-tab-font">
                                <span class="counter-inactive">1</span>
                                <span class="label">Cart Details</span>
                        </div>
                        <div class="left cartflow-header-tab midtab-inactive left-overlap inactive-tab-font">
                                <span class="counter-inactive">2</span>
                                <span class="label">Shipping Info.</span>
                        </div>
                        <div class="left cartflow-header-tab midtab-inactive left-overlap inactive-tab-font">
                                <span class="counter-inactive">3</span>
                                <span class="label">Make Payment</span>
                        </div>
                        <div class="left cartflow-header-tab righttab-active left-overlap active-tab-font">
                                <span class="counter-active">4</span>
                                <span class="label">Order Status</span>
                        </div>
                </div>
                
                <!-- Cart Details -->
        #set($orders = $action.getOrders())
        #set($cod = false)
                
                #if($orders && $orders.size() != 0)
                <div id="cart" class="blue-border">
                        <div id="shippingEstimateCalculator" class="left">
                                <span class="label left orange congrats">Congratulations! &nbsp;</span><span class="label left" style="font-size:13px; font-weight:bold; color:#333333">$action.getMessage()</span>
            </div>
                        <div id="checkout" class="cartflow-main-action-button right"><a href="/myaccount">VIEW ALL ORDERS <img src="/images/Arrow_OrangeButton_AllScreens.png"/></a></div>
                        <table id="cartDetail" cellpadding="0" cellspacing="0" class="left">
                                <thead>
                                        <tr>
                                                <th width="100" class="first" style="text-align: center;"><b>ORDER ID</b></th>
                                                <th width="242">Item &amp; Color</th>
                                                <th width="140">Unit Price</th>
                                                <th width="110">Quantity</th>
                                                <th width="140">Total Price</th>
                                                <th width="200">Order Status</th>
                    </tr>
                </thead>
                                <tbody>
                                
                                #foreach($order in $orders)
                                        #set($lineitems = $order.getLineitems())
                                        #foreach($lineitem in $lineitems)
                                                #set($total_price = $lineitem.getTotal_price())
                                                #set($total_amount = $total_amount + $total_price)
                                                        <tr>
                                                                <td class="ordercolumn">
                                                                        <a href="/order/$order.getId()">$order.getId()</a>
                                                                        #if($order.isCod())
                                                                #set($cod=true)
                                                                <sup>*</sup>
                                                                        #end
                                                                </td>
                                                                <td>
                                                                        
                                                                <div class="cart-item-name-div">
                                        <span class="cart-item-name">
                                                                                        #if($lineitem.getBrand()) $lineitem.getBrand() #end
                                                                                        #if($lineitem.getModel_name()) $lineitem.getModel_name() #end
                                                                                        #if($lineitem.getModel_number())  $lineitem.getModel_number() #end
                                                                                </span>
                                        <br/>
                                                                        <span class="cart-item-color">
                                                                                        #if($lineitem.getColor())
                                                                                        Color - $lineitem.getColor()
                                                                                        #end
                                                                                </span>
                                    </div>
                                                                </td>
                                                                <td><img src="/images/rupee-symbol.png" alt="Rs." /> $action.formatPrice($lineitem.getUnit_price())</td>
                                                                <td>$lineitem.getQuantity().intValue()</td>
                                                                <td><img src="/images/rupee-symbol.png" alt="Rs." /> $action.formatPrice($total_price)</td>
                                                                <td>
                                                #if($order.getStatus().getDescription())
                                                        $order.getStatus().getDescription()
                                                #end
                                                                </td>
                                                        </tr>
                                                                        #end
                                                                #end
                </tbody>
            </table>
                        <table class="net-amount right" style="margin-bottom: 30px" cellspacing="0">
                                <tr class="total-amount payable">
                                        <td class="label">Total Amount:</td>
                                        <td><img src="/images/rupee-symbol.png" alt="Rs." /> $action.formatPrice($total_amount)</td>
                </tr>
            </table>
                        #if($cod)
                <div id="shippingEstimateCalculator" class="left" style="padding: 15px 10px 15px 10px">
                        <span class="label left" style="font-size:13px; font-weight:bold; color:#333333"><sup>*</sup>Our Executive will give you a call to confirm your order.</span>
                </div>
                #end
                </div>
                #else
        <div id="registration" class="blue-border">
                <div class="middle">
                        <div class="mid-inner">
                                <div id="emptyCart">
                                        <!-- empty cart -->
                                        <div id="emptyCart">
                                                <p>
                                                        <strong>
                                                                        Due to some error we are unable to display your details.
                                                                        Please check <a href="/myaccount">My Account</a> page to see the order confirmation status.
                                                                </strong>
                                                </p>
                                        </div>
                                        <!-- /empty cart -->
                                </div>
                        </div>
                </div>
        </div>
                #end    
        



                <!-- /Cart Details -->
        </div>
</div>

#include("templates/footer.vm")

#include ( "templates/commonjsfiles.vm" )
</body>
</html>