Cart work for payments and Paypal work to test

This commit is contained in:
Deon George
2013-01-15 17:07:54 +11:00
parent 133ae4d5c6
commit 69645c4eea
42 changed files with 968 additions and 801 deletions

View File

@@ -0,0 +1,32 @@
<p>Paypal will be used to pay for the following items:</p>
</br>
<?php
echo Table::display(
$cart->contents(),
NULL,
array(
'item()->q'=>array('label'=>'Quantity'),
'item()->i'=>array('label'=>'Item'),
'item()->t'=>array('label'=>'Total','class'=>'right'),
),
array(
'type'=>'list',
)
);
?>
</br>
<p>Please Note: Paypal charges a fee to receive payments, and that fee will be added to your payment.</p>
<table class="list-box-left">
<tr class="list-data">
<th>Cart Total</th>
<td class="right"><?php echo $t=$cart->total(TRUE); ?></td>
</tr>
<tr class="list-data">
<th>Payment Fee</th>
<td class="right"><?php echo Currency::display($f=$checkout->fee($t)); ?></td>
</tr>
<tr class="list-data">
<th>Total</th>
<td class="right"><?php echo Currency::display($t+$f); ?></td>
</tr>
</table>