Subversion Repositories wpShopGermany4

Rev

Rev 6838 | Rev 7812 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6838 Rev 7811
Line 13... Line 13...
13
	<?php if (wpsg_isSizedArray($this->view['arOrder'])) { ?>
13
	<?php if (wpsg_isSizedArray($this->view['arOrder'])) { ?>
14
		
14
		
15
		<div class="wpsg_mod_abo_order_product_wrap">
15
		<div class="wpsg_mod_abo_order_product_wrap">
16
		<?php foreach ($this->view['arOrder'] as $oOrder) { ?>
16
		<?php foreach ($this->view['arOrder'] as $oOrder) { ?>
17
		
17
		
-
 
18
			<?php foreach ($this->callMod('wpsg_mod_abo', 'getAboProductsFromOrder', Array($oOrder->id)) as $oOrderProduct) { 
-
 
19
				
-
 
20
				$product_id = $oOrderProduct->getProductId();
18
			<?php foreach ($this->callMod('wpsg_mod_abo', 'getAboProductsFromOrder', Array($oOrder->id)) as $oOrderProduct) { $aboStatus = $this->callMod('wpsg_mod_abo', 'getAboProductStatus', Array($oOrder->id, $oOrderProduct->getProductKey())); ?>
21
				$aboStatus = $this->callMod('wpsg_mod_abo', 'getAboProductStatus', Array($oOrder->id, $oOrderProduct->getProductKey())); 
-
 
22
				 
-
 
23
				try {
-
 
24
				
-
 
25
					$oAbo = wpsg_abo::getFromOrderAndProduct($oOrder->getId(), $oOrderProduct->getId());
-
 
26
					
-
 
27
				} catch (\Exception $e) {
-
 
28
					
-
 
29
					continue;
-
 
30
					
-
 
31
                }
-
 
32
				
-
 
33
				?>
19
			
34
			
20
				<div class="wpsg_mod_abo_order_product">
35
				<div class="wpsg_mod_abo_order_product">
21
 
36
 
22
					<h1 class="entry-title title">
37
					<h1 class="entry-title title">
23
						<?php echo wpsg_translate(__('Abo "#1#" aus Bestellung #2#', 'wpsg'), $oOrderProduct->getProduct()->getProductName(), $oOrder->getNr()); ?>
38
						<?php echo wpsg_translate(__('Abo "#1#" aus Bestellung #2#', 'wpsg'), $oOrderProduct->getProduct()->getProductName(), $oOrder->getNr()); ?>
Line 49... Line 64...
49
							<span class="label"><?php echo __('Laufzeit (Endzeitpunkt):', 'wpsg'); ?></span>
64
							<span class="label"><?php echo __('Laufzeit (Endzeitpunkt):', 'wpsg'); ?></span>
50
							<span class="value">
65
							<span class="value">
51
								
66
								
52
								<?php $exp = $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getProductKey())); ?>
67
								<?php $exp = $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getProductKey())); ?>
53
								
68
								
54
								<?php if (strtotime($exp) > time()) { ?>
69
								<?php if ($oAbo->getState() === wpsg_abo::STATE_RUNNING) { ?>
55
									<span class="duration_running"><?php echo $exp; ?></span>
70
									<span class="duration_running"><?php echo $exp; ?></span>
-
 
71
                                <?php } else if ($oAbo->getState() === wpsg_abo::STATE_INEXTENSION) { ?>
-
 
72
									<span class="duration_inextension"><?php echo $exp; ?></span>
56
								<?php } else { ?>
73
								<?php } else if ($oAbo->getState() === wpsg_abo::STATE_EXTEND) { ?>
57
									<span class="duration_expired"><?php echo $exp; ?></span>
74
									<span class="duration_expired"><?php echo $exp; ?></span>
58
								<?php }  ?>
75
								<?php }  ?>
59
								
76
								
60
							</span>
77
							</span>
61
						</div>					
78
						</div>					
62
						<div class="status">
79
						<div class="status">
63
							<span class="label"><?php echo __('Verlängerung:', 'wpsg'); ?></span>
80
							<span class="label"><?php echo __('automatische Verlängerung:', 'wpsg'); ?></span>
64
							<span class="value">
81
							<span class="value">
65
													
82
													
66
								<?php if ($aboStatus['status'] === wpsg_mod_abo::STATUS_ACTIVE) { ?>
83
								<?php if ($aboStatus['status'] === wpsg_mod_abo::STATUS_ACTIVE) { ?>
67
									
84
									
68
									<span class="status_activ"><?php echo __('Aktiv'); ?></span>
85
									<span class="status_activ"><?php echo __('Aktiv'); ?></span>
Line 71... Line 88...
71
	
88
	
72
										<?php echo __('Kündigung ausstehend', 'wpsg'); ?>
89
										<?php echo __('Kündigung ausstehend', 'wpsg'); ?>
73
										
90
										
74
									<?php } else { ?>
91
									<?php } else { ?>
75
									
92
									
76
										<?php if (in_array($this->get_option('wpsg_mod_abo_autoexpire_customer'), Array(wpsg_mod_abo::CUSTOMER_AUTO_MAIL, wpsg_mod_abo::CUSTOMER_AUTO_DIRECT))) { ?>
93
										<?php if (in_array($this->callMod('wpsg_mod_abo', 'getSetting', ['wpsg_mod_abo_autoexpire_customer', $product_id]), Array(wpsg_mod_abo::CUSTOMER_AUTO_MAIL, wpsg_mod_abo::CUSTOMER_AUTO_DIRECT))) { ?>
77
										<span class="link_wrap"><a href="<?php echo $this->getUrl(wpsg_ShopController::URL_ABO, 'wpsg_mod_abo', 'stoprenewal', Array('order_id' => $oOrder->id, 'product_key' => $oOrderProduct->getProductKey())); ?>"><?php echo __('Deaktivieren'); ?></a></span>
94
										<span class="link_wrap"><a href="<?php echo $this->getUrl(wpsg_ShopController::URL_ABO, 'wpsg_mod_abo', 'stoprenewal', Array('order_id' => $oOrder->id, 'product_key' => $oOrderProduct->getProductKey())); ?>"><?php echo __('Deaktivieren'); ?></a></span>
78
										<?php } ?>
95
										<?php } ?>
79
							
96
							
80
									<?php } ?>
97
									<?php } ?>
81
									
98