diff options
Diffstat (limited to 'views/order/index.phtml')
| -rw-r--r-- | views/order/index.phtml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/views/order/index.phtml b/views/order/index.phtml index cd83cfb..0cbc80b 100644 --- a/views/order/index.phtml +++ b/views/order/index.phtml @@ -248,6 +248,7 @@ <th class="col_payment wpsg_order" data-order="payment"><?php echo __('Bezahlmethode', 'wpsg'); ?></th>
<th class="col_shipping wpsg_order" data-order="shipping"><?php echo __('Versandart', 'wpsg'); ?></th>
<th class="col_products wpsg_order" data-order="products"><?php echo __('Produkte', 'wpsg'); ?></th>
+ <?php if ($this->get_option('wpsg_showvalueofgoods')) { ?><th class="col_productsum wpsg_order" data-order="productsum"><?php echo __('Warenwert', 'wpsg'); ?></th><?php } ?>
<th class="col_sum wpsg_order" data-order="amount"><?php echo __('Bestellwert', 'wpsg'); ?></th>
<th class="col_state wpsg_order" data-order="state"><?php echo __('Status', 'wpsg'); ?></th>
</tr>
@@ -408,6 +409,18 @@ <?php } ?>
</td>
+ <?php if ($this->get_option('wpsg_showvalueofgoods')) { ?>
+ <td class="col_productsum">
+
+ <?php $oOrderProducts = $oOrder->getOrderProducts(); ?>
+ <?php foreach ($oOrderProducts as $oOrderProduct) { ?>
+ <?php $product_sum += $oOrderProduct->getPriceSum($this->getBackendTaxview()); ?>
+ <?php } ?>
+ <?php echo wpsg_ff($product_sum, $this->get_option('wpsg_currency')); ?>
+ <?php $product_sum = 0; ?>
+
+ </td>
+ <?php } ?>
<td class="col_sum">
<?php echo wpsg_ff($oOrder->getAmount(), $this->get_option('wpsg_currency')); ?>
</td>
|
