Subversion Repositories wpShopGermany4

Compare Revisions

Ignore whitespace Rev 7812 → Rev 7811

/order/index.phtml
350,18 → 350,7
 
<?php $oOrderProducts = $oOrder->getOrderProducts(); ?>
<?php foreach ($oOrderProducts as $oOrderProduct) {
$product_id = $oOrderProduct->getProductId();
$oAbo = null;
if ($this->hasMod('wpsg_mod_abo')) {
try { $oAbo = wpsg_abo::getFromOrderAndOrderProduct($oOrder->getId(), $oOrderProduct->getId()); } catch (\Exception $e) { }
}
?>
<?php foreach ($oOrderProducts as $oOrderProduct) { $product_id = $oOrderProduct->getProductId(); ?>
<?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
$oOrderProduct->getCount(),
370,21 → 359,23
wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency'))
); ?><br />
<?php if ($oAbo !== null) { ?>
<?php
$state = $oAbo->getState();
echo __('Abo Laufzeit:', 'wpsg');
?>
<?php if ($this->hasMod('wpsg_mod_abo')) { ?>
 
<?php if ($state === wpsg_abo::STATE_INEXTENSION) { ?><span style="color:orange;"><?php echo $oAbo->getStateLabel(); ?></span>
<?php } else if ($state === wpsg_abo::STATE_RUNNING) { ?><span style="color:green;"><?php echo $oAbo->getStateLabel(); ?></span>
<?php } else if ($state === wpsg_abo::STATE_EXTEND) { ?><span style="color:red;"><?php echo $oAbo->getStateLabel(); ?></span><?php } ?>
<br />
<?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 } ?>