SHARE
TWEET

Untitled

a guest Mar 20th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if($this->cart->contents()):?>
  2.    <form method="post" action="cart/process">
  3.       <table class="table table-striped">
  4.          <tr>
  5.             <th>Quantity</th>
  6.             <th>Item Price</th>
  7.             <th style="text-align:right">Item Price</th>
  8.         </tr>
  9.         <?php $i = 0; ?>
  10.         <?php foreach ($this->cart->contents() as $items):?>
  11.         <tr>
  12.             <td><?php echo $items['qty'];?></td>
  13.             <td><?php echo $items['name'];?></td>
  14.             <td style="text-align:right"><?php echo $this->cart->format_number($items['price']);?></td>
  15.         </tr>
  16.         <?php echo '<input type="hidden" name="item_name['.$i.']" value="'.$items['name'].'" />';?>
  17.         <?php echo '<input type="hidden" name="item_name['.$i.']" value='.$items['id'].'" />';?>
  18.         <?php echo '<input type="hidden" name="item_name['.$i.']" value='.$items['qty'].'" />';?>
  19.         <?php echoforeach; ?>
  20.         <tr>
  21.          <td class="right"><strong>Shipping</strong></td>
  22.          <td class="right" style="text-align:right"><?php echo $this->config->item('shipping');?></td>
  23.      </tr>
  24.      <tr>
  25.          <td class="right"><strong>Tax</strong></td>
  26.          <td class="right" style="text-align:right"><?php echo $this->config->item('tax');?></td>
  27.      </tr>
  28.      <tr>
  29.          <td class="right"><strong>Total</strong></td>
  30.          <td class="right" style="text-align:right"><?php echo $this->config->item('total');?></td>
  31.      </tr>
  32.  </table>
  33.  <br>
  34.  <h3>Shipping Info</h3>
  35.  <div class="form-group">
  36.     <label>Address</label>
  37.     <input type="text" class="form-control" name="address">
  38. </div>
  39. <div class="form-group">
  40.     <label>Address 2</label>
  41.     <input type="text" class="form-control" name="address2">
  42. </div>
  43. <div class="form-group">
  44.     <label>City</label>
  45.     <input type="text" class="form-control" name="city">
  46. </div>
  47. <div class="form-group">
  48.     <label>State</label>
  49.     <input type="text" class="form-control" name="state">
  50. </div>
  51. <div class="form-group">
  52.     <label>Zipcode</label>
  53.     <input type="text" class="form-control" name="zipcode">
  54. </div>
  55. <p><button class="btn btn-primary" type="submit" name="submit">Checkout</button></p>
  56. </form>
  57. <?php else:?>
  58.     <p>There are no items in your cart</p>;
  59. <?php endif;?>`
RAW Paste Data
Top