Cart work for payments and Paypal work to test
This commit is contained in:
32
modules/checkout/views/checkout/plugin/paypal/before.php
Normal file
32
modules/checkout/views/checkout/plugin/paypal/before.php
Normal 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>
|
Reference in New Issue
Block a user