Subversion Repositories wpShopGermany4

Rev

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

Rev 7812 Rev 7836
Line 12... Line 12...
12
	
12
	
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
 
-
 
18
            <?php if ($this->callMod('wpsg_mod_abo', 'isAboOrder', [$oOrder->id]) === 1) {
-
 
19
 
-
 
20
                $arAbo = $this->callMod('wpsg_mod_abo', 'getAboProductsFromOrder', [$oOrder->id]);
-
 
21
 
-
 
22
                foreach ($arAbo as $oOrderProduct) {
-
 
23
 
-
 
24
                    $aboStatus = $this->callMod('wpsg_mod_abo', 'getAboProductStatus', [$oOrder->id, $oOrderProduct->id]); $oAbo = wpsg_abo::getInstance(intval($aboStatus['id']));
-
 
25
                    $state = $oAbo->getState();
-
 
26
 
-
 
27
                    ?>
-
 
28
 
-
 
29
                    <div class="wpsg_mod_abo_order_product">
-
 
30
 
-
 
31
                        <h1 class="entry-title title">
-
 
32
                            <?php echo wpsg_translate(__('Abo "#1#" aus Bestellung #2#', 'wpsg'), $oOrderProduct->getProduct()->getProductName(), $oOrder->getNr()); ?>
-
 
33
                        </h1>
-
 
34
 
-
 
35
                        <?php $nAttachmentID = $this->imagehandler->getAttachmentID($oOrderProduct->getProductKey()); ?>
-
 
36
 
-
 
37
                        <?php if (wpsg_isSizedInt($nAttachmentID)) { ?>
-
 
38
                            <div class="image">
-
 
39
                                <?php echo wp_get_attachment_image($nAttachmentID, array(100, 100), false, array()); ?>
-
 
40
                            </div>
-
 
41
                        <?php } ?>
-
 
42
 
-
 
43
                        <div class="content">
-
 
44
 
-
 
45
                            <div class="start">
-
 
46
                                <span class="label"><?php echo __('Erstkauf (Startzeitpunkt):', 'wpsg'); ?></span>
-
 
47
                                <span class="value">
-
 
48
 
-
 
49
                                    <?php echo wpsg_formatTimestamp(strtotime($oOrder->cdate)); ?>
-
 
50
 
-
 
51
                                </span>
-
 
52
                            </div>
-
 
53
                            <div class="price">
-
 
54
                                <span class="label"><?php echo wpsg_translate(__('Preis (#1# Tage):', 'wpsg'), $oOrderProduct->getProduct()->wpsg_mod_abo_durration); ?></span>
-
 
55
                                <span class="value"><?php echo wpsg_ff($oOrderProduct->getProduct()->wpsg_mod_abo_price, $this->get_option('wpsg_currency')); ?></span>
-
 
56
                            </div>
-
 
57
                            <div class="duration">
-
 
58
                                <span class="label"><?php echo __('Laufzeit (Endzeitpunkt):', 'wpsg'); ?></span>
-
 
59
                                <span class="value">
-
 
60
 
-
 
61
                                    <?php $exp = $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getId())); ?>
-
 
62
 
-
 
63
                                    <?php if ($oAbo->getState() === wpsg_abo::STATE_RUNNING) { ?>
-
 
64
                                        <span class="duration_running"><?php echo $exp; ?></span>
-
 
65
                                    <?php } else if ($oAbo->getState() === wpsg_abo::STATE_INEXTENSION) { ?>
-
 
66
                                        <span class="duration_inextension"><?php echo $exp; ?></span>
-
 
67
                                    <?php } else if ($oAbo->getState() === wpsg_abo::STATE_EXTEND) { ?>
-
 
68
                                        <span class="duration_expired"><?php echo $exp; ?></span>
-
 
69
                                    <?php }  ?>
-
 
70
 
-
 
71
                                </span>
-
 
72
                            </div>
-
 
73
                            <div class="status">
-
 
74
                                <span class="label"><?php echo __('automatische Verlängerung:', 'wpsg'); ?></span>
-
 
75
                                <span class="value">
-
 
76
 
-
 
77
                                    <?php if ($aboStatus['status'] === wpsg_mod_abo::STATUS_ACTIVE) { ?>
-
 
78
 
-
 
79
                                        <span class="status_activ"><?php echo __('Aktiv'); ?></span>
-
 
80
 
-
 
81
                                        <?php if (strtotime($aboStatus['mail_admin_stop']) > 0) { ?>
-
 
82
 
-
 
83
                                            <?php echo __('Kündigung ausstehend', 'wpsg'); ?>
-
 
84
 
-
 
85
                                        <?php } else { ?>
-
 
86
 
-
 
87
                                            <?php if (in_array($this->callMod('wpsg_mod_abo', 'getSetting', ['wpsg_mod_abo_autoexpire_customer', $oOrderProduct->getProductId()]), Array(wpsg_mod_abo::CUSTOMER_AUTO_MAIL, wpsg_mod_abo::CUSTOMER_AUTO_DIRECT))) { ?>
-
 
88
                                            <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>
-
 
89
                                            <?php } ?>
-
 
90
 
-
 
91
                                        <?php } ?>
-
 
92
 
-
 
93
                                    <?php } else if ($aboStatus['status'] === wpsg_mod_abo::STATUS_STOPPED) { ?>
-
 
94
                                        <span class="status_inactiv"><?php echo __('Inaktiv') ?></span>
-
 
95
                                    <?php } ?>
-
 
96
 
-
 
97
                                </span>
-
 
98
                            </div>
-
 
99
                        </div>
-
 
100
 
-
 
101
                        <div class="wpsg_clear"></div>
-
 
102
 
-
 
103
                    </div>
-
 
104
 
-
 
105
                    <?php
-
 
106
 
-
 
107
                }
-
 
108
 
-
 
109
                ?>
-
 
110
 
-
 
111
                OK
-
 
112
 
-
 
113
            <?php } ?>
17
		
114
		
18
			<?php foreach ($this->callMod('wpsg_mod_abo', 'getAboProductsFromOrder', Array($oOrder->id)) as $oOrderProduct) { 
115
			<?php /* foreach ($this->callMod('wpsg_mod_abo', 'getAboProductsFromOrder', Array($oOrder->id)) as $oOrderProduct) {
19
				
116
				
20
				$product_id = $oOrderProduct->getProductId();
117
				$product_id = $oOrderProduct->getProductId();
21
				$aboStatus = $this->callMod('wpsg_mod_abo', 'getAboProductStatus', Array($oOrder->id, $oOrderProduct->getProductKey())); 
118
				$aboStatus = $this->callMod('wpsg_mod_abo', 'getAboProductStatus', Array($oOrder->id, $oOrderProduct->getProductKey())); 
22
				 
119
				 
23
				try {
120
				try {
Line 106... Line 203...
106
					
203
					
107
					<div class="wpsg_clear"></div>
204
					<div class="wpsg_clear"></div>
108
					
205
					
109
				</div>
206
				</div>
110
				
207
				
111
			<?php } // foreach OrderProducts ?>
208
			<?php } */ ?>
112
							
209
							
113
		<?php } // foreach Order ?>
210
		<?php } // foreach Order ?>
114
		</div>
211
		</div>
115
		
212
		
116
	<?php } else { ?>
213
	<?php } else { ?>