Subversion Repositories wpShopGermany4

Rev

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

Rev 7787 Rev 7812
Line 348... Line 348...
348
                        </td>
348
                        </td>
349
                        <td class="col_products">
349
                        <td class="col_products">
350
 
350
 
351
                            <?php $oOrderProducts = $oOrder->getOrderProducts(); ?>
351
                            <?php $oOrderProducts = $oOrder->getOrderProducts(); ?>
352
                            
352
                            
353
                            <?php foreach ($oOrderProducts as $oOrderProduct) { $product_id = $oOrderProduct->getProductId(); ?>
353
                            <?php foreach ($oOrderProducts as $oOrderProduct) { 
-
 
354
                            	
-
 
355
                            		$product_id = $oOrderProduct->getProductId();
-
 
356
                                	$oAbo = null;
-
 
357
                            		
-
 
358
                            		if ($this->hasMod('wpsg_mod_abo')) {
-
 
359
                            			
-
 
360
                            			try { $oAbo = wpsg_abo::getFromOrderAndOrderProduct($oOrder->getId(), $oOrderProduct->getId()); } catch (\Exception $e) {  }
-
 
361
                            			
-
 
362
                                    }
-
 
363
								
-
 
364
								?>
354
                            
365
                            
355
                                <?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
366
                                <?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
356
                                    $oOrderProduct->getCount(),
367
                                    $oOrderProduct->getCount(),
357
									wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(), 'wpsg-product-edit-'.wpsg_getInt($product_id)),
368
									wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(), 'wpsg-product-edit-'.wpsg_getInt($product_id)),
358
                                    $oOrderProduct->getProductName(),
369
                                    $oOrderProduct->getProductName(),
359
                                    wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency'))
370
                                    wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency'))
360
                                ); ?><br />
371
                                ); ?><br />
361
                                
372
                                
362
                                <?php if ($this->hasMod('wpsg_mod_abo')) { ?>
373
                                <?php if ($oAbo !== null) { ?>
363
 
374
 
364
                                    <?php if (in_array(strval($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?>
-
 
-
 
375
									<?php
365
 
376
									 
366
                                        <?php $abo_expiration = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getProductKey()))); ?>
377
										$state = $oAbo->getState();
367
 
378
									
368
                                        <?php echo __('Abo Laufzeit:', 'wpsg'); ?>
379
										echo __('Abo Laufzeit:', 'wpsg'); 
-
 
380
									
-
 
381
									?>
369
 
382
 
370
                                        <?php if ($abo_expiration > time()) { ?>
383
									<?php if ($state === wpsg_abo::STATE_INEXTENSION) { ?><span style="color:orange;"><?php echo $oAbo->getStateLabel(); ?></span>
371
                                            <span class="wpsg_mod_abo_future_expire"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
384
									<?php } else if ($state === wpsg_abo::STATE_RUNNING) { ?><span style="color:green;"><?php echo $oAbo->getStateLabel(); ?></span>
372
                                        <?php } else { ?>
-
 
373
                                            <span class="wpsg_mod_abo_expired"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
385
									<?php } else if ($state === wpsg_abo::STATE_EXTEND) { ?><span style="color:red;"><?php echo $oAbo->getStateLabel(); ?></span><?php } ?>
374
                                        <?php } ?>
-
 
375
 
386
									 
376
                                        <br />
387
									<br />  
377
                                        
-
 
378
                                    <?php } ?>
-
 
379
                                    
388
                                    
380
                                <?php } ?>
389
                                <?php } ?>
381
                            
390
                            
382
                            <?php } ?>
391
                            <?php } ?>
383
 
392