<table width="700" style="margin-left:15px;"><tr><td align="left">
<link rel="stylesheet" type="text/css" href="catalog/template/default/css/account.css">
<link rel="stylesheet" type="text/css" href="https://www.beststoreitems.com/admin/template/default/css/order.css">
<div class="heading"><?php echo $heading_title; ?></div>
<div class="description"><?php echo $heading_description; ?></div>
  <div id="invoice">
    <div class="a">
      <table>
        <tr>
          <td><b><?php echo $text_order; ?></b><br />
             '***********'<br />
            <br />
            <b><?php echo $text_email; ?></b><br />
             '***********'<br />
            <br />
            <b><?php echo $text_telephone; ?></b><br />
             '***********'<br />
            <br />          
            <?php if ($shipping_method) { ?>
            <b><?php echo $text_shipping_method; ?></b><br />
            <?php echo $shipping_method; ?><br />
            <br />
            <?php } ?>
            <b><?php echo $text_payment_method; ?></b><br />
            <?php echo $payment_method; ?><br />
            <br />
          </td>
          <td><?php if ($shipping_address) { ?>
            <b><?php echo $text_shipping_address; ?></b><br />
             '***********'<br />
            <?php } ?></td>
          <td><b><?php echo $text_payment_address; ?></b><br />
             '***********'<br /></td>
        </tr>
      </table>
    </div>
    <div class="b">
      <table class="c">
        <tr>
          <th class="left"><?php echo $text_product; ?></th>
       
          <th class="right"><?php echo $text_quantity; ?></th>
          <th class="right"><?php echo $text_price; ?></th>
          <th class="right"><?php echo $text_total; ?></th>
        </tr>
        <?php foreach ($products as $product) { ?>
        <tr>
          <td class="left"><a href="https://www.beststoreitems.com/index.php?controller=product&product_id=<?php echo $product['product_id']; ?>"><?php echo $product['name']; ?></a>
            <?php foreach ($product['option'] as $option) { ?>
            <br />
            &nbsp;<small> - <?php echo $option['name']; ?> <?php echo $option['value']; ?></small>
            <?php } ?>
          </td>
       
          <td class="right"><?php echo $product['quantity']; ?></td>
          <td class="right"><?php if (!$product['discount']) { ?>
            <?php echo $product['price']; ?>
            <?php } else { ?>
            <span class="price_old"><?php echo $product['price']; ?></span><br />
            <span class="price_new"><?php echo $product['discount']; ?></span>
            <?php } ?></td>
          <td class="right"><?php echo $product['total']; ?></td>
        </tr>
        <?php } ?>
      </table>
      <br />
      <div class="f" style="margin-left:360px;">
        <table>         
          <tr>
            <td class="right" colspan="4"><?php end( array_slice( end($totals), -4, 1 ) ); ?></td>
            <td class="right"><?php end( array_slice( end($totals), -3, 1 ) ); ?></td>
          </tr>        
                    
        </table>
      </div>
    </div>
        
<br />
<center>
         <form action="https://www.beststoreitems.com" method="post" enctype="multipart/form-data">
   
          <input type="submit"  value="" style="background: url(&quot;catalog/template/beststoreitems/image/back.gif&quot;) repeat scroll 0% 0% transparent; width: 80px; height: 30px; border: 0pt none;">
        </form></center>
</td></tr></table>