Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
usermail_template.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  */
11 ?>
12 
13 
14 <h2><?php echo ShoppingcartModule::t('You ordered items')?></h2>
15 
16 <table width="100%" cellspacing="0" cellpadding="0" class="items">
17  <colgroup>
18  <col width="10%">
19  <col width="65%">
20  <col width="10%">
21  <col width="10%">
22  </colgroup>
23  <tr>
24  <th class="item_quantity"><?php echo Item::model()->getAttributeLabel('quantity'); ?></th>
25  <th class="item_title"><?php echo Item::model()->getAttributeLabel('title'); ?></th>
26  <th class="item_price"><?php echo Item::model()->getAttributeLabel('price'); ?></th>
27  <th class="item_sum"><?php echo ShoppingcartModule::t('Total'); ?></th>
28  </tr>
29  <?php
30  $sum = 0;
31  foreach($items as $i=>$item):
32  $sum += $item->price * $item->quantity;
33  ?>
34  <tr>
35  <td class="item_quantity"><?php echo $item->quantity ?></td>
36  <td class="item_title"><?php echo $item->title; ?></td>
37  <td class="item_price"><?php echo ($item->price != 0)?Item::addCurrency($item->price):ShoppingcartModule::t('free'); ?></td>
38  <td class="item_sum"><?php echo ($item->price != 0)?Item::addCurrency(($item->price * $item->quantity)):ShoppingcartModule::t('free'); ?></td>
39  </tr>
40  <?php endforeach; ?>
41  <tfoot>
42  <td colspan="3" class="total_title"><?php echo ShoppingcartModule::t('Total'); ?></td>
43  <td class="item_sum"><?php echo Item::addCurrency($sum + Yii::app()->getModule('shoppingcart')->shipping_costs); ?></td>
44 
45  </tfoot>
46 </table>