summaryrefslogtreecommitdiff
path: root/views/order
diff options
context:
space:
mode:
Diffstat (limited to 'views/order')
-rw-r--r--views/order/index.phtml57
1 files changed, 34 insertions, 23 deletions
diff --git a/views/order/index.phtml b/views/order/index.phtml
index 7c8f463..aca2971 100644
--- a/views/order/index.phtml
+++ b/views/order/index.phtml
@@ -171,22 +171,10 @@
<?php } ?>
<?php if ($this->hasMod('wpsg_mod_abo')) { ?>
-
- <?php if (in_array(strval($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?>
-
- <?php $abo_expiration = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id))); ?>
- <?php echo __('Abo:', 'wpsg'); ?>
-
- <?php if ($abo_expiration > time()) { ?>
- <span class="wpsg_mod_abo_future_expire"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
- <?php } else { ?>
- <span class="wpsg_mod_abo_expired"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
- <?php } ?>
-
- <?php } ?>
-
- <?php if ($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id)) === 2) { ?>
+ <?php if ($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id)) === 1) { ?>
+ <?php echo __('Abo Bestellung', 'wpsg'); ?>
+ <?php } else if ($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id)) === 2) { ?>
<?php
@@ -245,14 +233,37 @@
</td>
<td class="col_products">
- <?php $oOrderProducts = $oOrder->getOrderProducts();
- foreach ($oOrderProducts as $oOrderProduct) { ?>
- <?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
- $oOrderProduct->getCount(),
- WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(),
- $oOrderProduct->getProductName(),
- wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency'))
- ); ?><br />
+ <?php $oOrderProducts = $oOrder->getOrderProducts(); ?>
+
+ <?php foreach ($oOrderProducts as $oOrderProduct) { ?>
+
+ <?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
+ $oOrderProduct->getCount(),
+ WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(),
+ $oOrderProduct->getProductName(),
+ wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency'))
+ ); ?><br />
+
+ <?php if ($this->hasMod('wpsg_mod_abo')) { ?>
+
+ <?php if (in_array(strval($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?>
+
+ <?php $abo_expiration = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getProductKey()))); ?>
+
+ <?php echo __('Abo Laufzeit:', 'wpsg'); ?>
+
+ <?php if ($abo_expiration > time()) { ?>
+ <span class="wpsg_mod_abo_future_expire"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
+ <?php } else { ?>
+ <span class="wpsg_mod_abo_expired"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
+ <?php } ?>
+
+ <br />
+
+ <?php } ?>
+
+ <?php } ?>
+
<?php } ?>
</td>