Subversion Repositories SmartDukaan

Rev

Rev 4226 | Rev 4791 | 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 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">
                                        <div 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
                                                                                </div>
                                                                                        #if($lineitem.getColor())
                                                                        <div class="cart-item-color">Color - $lineitem.getColor()</div>
                                                                                        #end
                                                                                        #if($lineitem.getDealText())
                                                                                <div class="cart-item-best-deal-text">$lineitem.getDealText()</div>
                                                                                        #end
                                    </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>
                <div id="shippingEstimateCalculator" class="left" style="padding: 15px 10px 15px 10px">
                        #if($cod)
                        <div class="label left pay-success-note">* Our Executive will give you a call to confirm your order.</div>
                #end
                        <div class="label left pay-success-note">
                                        * With the onset of dense fog in North India, it severely hits the operations of our courier partners.
                                        We would like to mention that our deliveries might be slightly delayed.
                                        We look forward to your support and understanding with regards to anticipated delays.
                                </div>
                </div>
                </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" )

    <script type="text/javascript" charset="utf-8">
        #set($orders = $action.getOrders())
        #if($orders && $orders.size() != 0)
            #foreach($order in $orders)
                if(typeof _gaq != "undefined" && _gaq != null)  {
                    _gaq.push(['_addTrans',
                       '$order.getId()',                // order ID - required
                       'Saholic',                       // affiliation or store name
                       '$order.getTotal_amount()',      // total - required
                       '0',                             // tax
                       '0',                             // shipping
                       '$order.getCustomer_city()',     // city
                       '$order.getCustomer_state()',    // state or province
                       'INDIA'                          // country
                    ]);
                #set($lineitems = $order.getLineitems())
                #foreach($lineitem in $lineitems)
                    var prod_name = '';
                    #if($lineitem.getBrand()) 
                        prod_name += '$lineitem.getBrand()'; 
                    #end
                    #if($lineitem.getModel_name()) 
                        prod_name += ' $lineitem.getModel_name()'; 
                    #end
                    #if($lineitem.getModel_number()) 
                        prod_name += ' $lineitem.getModel_number()'; 
                    #end
                    _gaq.push(['_addItem',
                        '$order.getId()',            // order ID - required
                        '$lineitem.getItem_id()',    // SKU/code - required
                        prod_name,                   // product name
                        '$lineitem.getColor()',      // category or variation
                        '$lineitem.getUnit_price()', // unit price - required
                        '$lineitem.getQuantity()'    // quantity - required
                    ]);
                #end
                    _gaq.push(['_trackTrans']);
                }
            #end
        #end
    </script>
    
    
    <!-- Google Code for AdwordsPurchase Conversion Page -->
    <script type="text/javascript" charset="utf-8">
        /* <![CDATA[ */
        var google_conversion_id = 979811816;
        var google_conversion_language = "en";
        var google_conversion_format = "3";
        var google_conversion_color = "ffffff";
        var google_conversion_label = "t9j-CID2lQMQ6Pua0wM";
        if ($total_amount) {
            var google_conversion_value = $total_amount;
        }
        /* ]]> */
    </script>
    <script language="javascript" type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"></script>
    
    <!-- Ohana Conversion Code -->
    <!-- DO NOT MODIFY THIS TAG IN ANY WAY -->
    <!-- Place your logic to get the revenue from the page & pass as an argument to the conversion script -->
    <script language="javascript" type="text/javascript" src='http://bsrv.adohana.com/ohana/conversion.js?id=112&r=0'></script>
    <!-- Fill info array as "Product ID,,Product Name,,Quantity,,Product Price" --> 
    <script type="text/javascript" language='javascript'>
        var info = [];
        #set($orders = $action.getOrders())
        #if($orders && $orders.size() != 0)
            #foreach($order in $orders)
                #set($lineitems = $order.getLineitems())
                #foreach($lineitem in $lineitems)
                    var prod_name = '';
                    #if($lineitem.getBrand()) 
                        prod_name += '$lineitem.getBrand()'; 
                    #end
                    #if($lineitem.getModel_name()) 
                        prod_name += ' $lineitem.getModel_name()'; 
                    #end
                    #if($lineitem.getModel_number()) 
                        prod_name += ' $lineitem.getModel_number()'; 
                    #end
                    info.push('$lineitem.getItem_id(),,' + prod_name + ',,$lineitem.getQuantity(),,0') 
                #end
            #end
        #end
        trackProductInfo('6e1310f31fc4c8aaf869c94be5d61d03',info); 
    </script>
    <!-- End of Conversion tag -->

    #if($action.getIsShooglooAff())
        <script src="http://shoogloonetwork.directtrack.com/i_track_sale/65/0.00/$action.getMerchantPaymentId()/OPTIONAL_INFORMATION"></script>
    #end
    <noscript>
        <div style="display:inline;">
            <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/979811816/?label=t9j-CID2lQMQ6Pua0wM&amp;guid=ON&amp;script=0"/>
        </div>
    </noscript>
</body>
</html>