Subversion Repositories SmartDukaan

Rev

Rev 2951 | Rev 3075 | 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()
     <!-- Wrapper start -->
        <div id="main">
                #include("templates/mainmenu.vm")
                $action.getSearchBarSnippet()

                <!-- wrapper-->
                <div id="wrapper">
<!-- Product detail -->
                        <div id="productDetail">
                                <div class="top">
                                        <div class="left">
                                                <div class="right"> &nbsp; </div>
                                        </div>
                                </div>
                                <div class="middle">
                                        <div class="content">
                                                <form id="frmProductDetail" name="frmProductDetail" method="post" action="">
                                                        <div class="blockLeft">
                                                                <!-- breadcrumb -->
                                                                <div id="breadcrumb"> <a href="/home">Home</a>&nbsp;&gt; <a href="#" class="deselect">Payment Success</a></div>
                                                                <!-- /breadcrumb -->
                                                                <h1 id="productHeading">Payment Success</h1>
                                                        </div>
                                                        <div class="padding_topbottom">&nbsp;</div>
                                                </form>
                                                <div class="clearBoth"></div>
                                        </div>
                                </div>
                                <div class="bottom">
                                        <div class="left">
                                                <div class="right"> &nbsp; </div>
                                        </div>
                                </div>
                        </div>
<!-- /Product detail -->

<!-- my account -->
        <div id="myAccount">
                <div class="left-grey-top">
                        <div class="left-white-right">&nbsp;</div>
                </div>
                <div class="middle">
                        <div class="middle-white-right">
                                <!-- content -->
                                <div class="content" align="center">
                                        <p align="center"><strong>$action.getMessage()</strong></p>
                                        
                        #set($orders = $action.getOrders())
                        #if($orders && $orders.size() != 0)
                                        <div align="center" class="note">Note: For order details click on Order ID</div>
                                        <table id="paySuccess" align="center" cellpadding="0" cellspacing="0" border="0" width="100%" class="tablesorter">
                                                <thead>
                                                        <tr>
                                                                <th width="14%">Order ID</th>
                                                                <th width="40%">Item Name</th>
                                                                <th>Quantity</th>
                                                                <th width="15%"><span class="price">Price</span> <img src="/images/rupee-symbol.png" width="10" height="14" alt="INR" class="rupee" /></th>
                                                                <th width="23%" class="borderRight">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><a href="/order/$order.getId()">$order.getId()</a></td>
                                                                <td>#if($lineitem.getBrand()) $lineitem.getBrand() #end
                                                                        #if($lineitem.getModel_name()) $lineitem.getModel_name() #end
                                                                        #if($lineitem.getModel_number())  $lineitem.getModel_number() #end
                                                                        #if($lineitem.getColor()) ($lineitem.getColor()) #end
                                                                </td>
                                                                <td>$lineitem.getQuantity().intValue()</td>
                                                                <td>$action.formatPrice($total_price)</td>
                                                                <td>
                                        #if($order.getStatus().getDescription())
                                                $order.getStatus().getDescription()
                                        #end
                                                                </td>
                                                        </tr>
                                                                        #end
                                                                #end
                                                        <tr>
                                                                <td colspan="5">
                                                                        <div class="totalAmount">
                                                                                Total Amount:
                                                                                <img src="/images/rupee-symbol.png" width="10" height="14" alt="INR" class="rupee" />
                                                                                $action.formatPrice($total_amount)
                                                                        </div>
                                                                </td>
                                                        </tr>
                                                </tbody>
                                        </table>
                                                #else
                                        <div class="note">
                                                        Due to some error we are unable to display your details.
                                                        Please check your account page to see the order confirmation status.
                                        </div>
                                        #end
                                </div>
                                <!-- /content -->
                                <div class="clearBoth"></div>
                        </div>
                </div>
                
                <!--div class="bottom">
                        <div class="bottom-grey-left">&nbsp;</div>
                </div-->
        </div>
        <!-- /my account -->
                </div>
                <!-- /wrapper-->

                <!-- sidebar-->
                <div id="sidebar">
                        
            <div id="myresearch" class="lightbox">
                #include("templates/myresearch.vm")
            </div>
            <div id="browsehistory" class="lightbox">
                #include("templates/browsehistory.vm")
            </div>
                        <div style="clear:both;padding:2px;">&nbsp;</div>
                </div>
                <!-- /sidebar-->
                
                <div class="clearBoth"></div>
        </div><!-- /main -->
        #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">
        /* <![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 type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"/>
    <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>