OSB enhancements to date
This commit is contained in:
5
modules/cart/views/cart/block_list.php
Normal file
5
modules/cart/views/cart/block_list.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<tr>
|
||||
<td class="sku"><?php echo $item->product->sku; ?></td>
|
||||
<td class="schedule"><?php echo $item->display('recurr_schedule');?></td>
|
||||
<td class="price"><?php echo Currency::display($price_firstinvoice+$price_setup); ?></td>
|
||||
</tr>
|
11
modules/cart/views/cart/checkout_list.php
Normal file
11
modules/cart/views/cart/checkout_list.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- @todo Translation required -->
|
||||
<tr>
|
||||
<td colspan="3" class="title"><b><?php echo HTML::anchor(sprintf('product/view/%s',$item->product->id),$item->product->product_translate->find()->name); ?></b></td>
|
||||
<td class="value"><?php echo Currency::display($price_firstinvoice+$price_setup); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>Current Service Period:</td>
|
||||
<td><b><?php printf('%s -> %s',$service_start,$service_end);?></b></td>
|
||||
<td> </td>
|
||||
</tr>
|
25
modules/cart/views/cart/checkout_total.php
Normal file
25
modules/cart/views/cart/checkout_total.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<table>
|
||||
<!-- @todo This rounding should be a global configuration item -->
|
||||
<tr>
|
||||
<td><?php echo Country::icon($country); ?></td>
|
||||
<td>Cart Sub-Total:</td>
|
||||
<td><?php echo Currency::display($cart->subtotal()); ?></td>
|
||||
</tr>
|
||||
<?php if ($cart->tax()) { ?>
|
||||
<?php foreach ($cart->tax() as $tax) { ?>
|
||||
<!-- @todo This rounding should be a global configuration item -->
|
||||
<!-- @todo Tax details should come from central configuration -->
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>Tax (<?php echo $tax['description']; ?>):</td>
|
||||
<td><?php echo Currency::display($tax['amount']); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<!-- @todo This rounding should be a global configuration item -->
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>Cart Total:</td>
|
||||
<td><?php echo Currency::display($cart->total()); ?></td>
|
||||
</tr>
|
||||
</table>
|
17
modules/cart/views/cart/list_item.php
Normal file
17
modules/cart/views/cart/list_item.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<!-- @todo Translation required -->
|
||||
<table class="cart_contents" border="0">
|
||||
<tr>
|
||||
<td colspan="3" class="title"><b><?php echo HTML::anchor(sprintf('product/view/%s',$item->product->id),$item->product->product_translate->find()->name); ?></b></td>
|
||||
<td class="icon"><?php echo HTML::image($mediapath->uri(array('file'=>'img/edit-delete.png')),array('alt'=>_('Remove'))); ?></td>
|
||||
<td rowspan="4" class="price_box"><?php echo $price_box; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td><td>Pricing Structure:</td><td colspan="2"><b><?php echo $item->product->display('price_type'); ?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td><td>Invoice Frequency:</td><td colspan="2"><b><?php echo $item->display('recurr_schedule'); ?> (<?php echo $price_recurring; ?>)</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td><td>Current Service Period:</td><td><b><?php printf('%s -> %s',$service_start,$service_end); ?></b></td>
|
||||
</tr>
|
||||
</table>
|
27
modules/cart/views/cart/list_pricebox.php
Normal file
27
modules/cart/views/cart/list_pricebox.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<!-- @todo translation needed -->
|
||||
<table class="cart_detail_pricebox" border="0">
|
||||
<tr>
|
||||
<td class="head">Re-Occuring Price</td>
|
||||
<td class="value"><?php echo $price_recurring; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td></tr>
|
||||
<tr>
|
||||
<td class="head">First Invoice</td>
|
||||
<td class="value"><?php echo $price_firstinvoice; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php if ($price_setup) { ?>
|
||||
<tr>
|
||||
<td class="head">Setup</td>
|
||||
<td class="value"><?php echo $price_setup; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td class="head">Quantity</td><!-- // @todo Quantity cannot be changed -->
|
||||
<td class="value"><?php echo Form::input('quantity',$item->quantity,array('size'=>2,'disabled'=>'disabled')); ?></td>
|
||||
<td class="icon"><?php echo HTML::image($mediapath->uri(array('file'=>'img/accessories-calculator-small.png')),array('alt'=>_('Re-Calc'))); ?></td>
|
||||
</tr>
|
||||
</table>
|
Reference in New Issue
Block a user