Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if($this->cart->contents()):?>
- <form method="post" action="cart/process">
- <table class="table table-striped">
- <tr>
- <th>Quantity</th>
- <th>Item Price</th>
- <th style="text-align:right">Item Price</th>
- </tr>
- <?php $i = 0; ?>
- <?php foreach ($this->cart->contents() as $items):?>
- <tr>
- <td><?php echo $items['qty'];?></td>
- <td><?php echo $items['name'];?></td>
- <td style="text-align:right"><?php echo $this->cart->format_number($items['price']);?></td>
- </tr>
- <?php echo '<input type="hidden" name="item_name['.$i.']" value="'.$items['name'].'" />';?>
- <?php echo '<input type="hidden" name="item_name['.$i.']" value='.$items['id'].'" />';?>
- <?php echo '<input type="hidden" name="item_name['.$i.']" value='.$items['qty'].'" />';?>
- <?php echoforeach; ?>
- <tr>
- <td class="right"><strong>Shipping</strong></td>
- <td class="right" style="text-align:right"><?php echo $this->config->item('shipping');?></td>
- </tr>
- <tr>
- <td class="right"><strong>Tax</strong></td>
- <td class="right" style="text-align:right"><?php echo $this->config->item('tax');?></td>
- </tr>
- <tr>
- <td class="right"><strong>Total</strong></td>
- <td class="right" style="text-align:right"><?php echo $this->config->item('total');?></td>
- </tr>
- </table>
- <br>
- <h3>Shipping Info</h3>
- <div class="form-group">
- <label>Address</label>
- <input type="text" class="form-control" name="address">
- </div>
- <div class="form-group">
- <label>Address 2</label>
- <input type="text" class="form-control" name="address2">
- </div>
- <div class="form-group">
- <label>City</label>
- <input type="text" class="form-control" name="city">
- </div>
- <div class="form-group">
- <label>State</label>
- <input type="text" class="form-control" name="state">
- </div>
- <div class="form-group">
- <label>Zipcode</label>
- <input type="text" class="form-control" name="zipcode">
- </div>
- <p><button class="btn btn-primary" type="submit" name="submit">Checkout</button></p>
- </form>
- <?php else:?>
- <p>There are no items in your cart</p>;
- <?php endif;?>`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement