Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 8079)
+++ /controller/wpsg_ShopController.class.php	(revision 8080)
@@ -4761,7 +4761,7 @@
 
 			$arShippingNew = array();
-
+ 			
 			$this->callMods('checkShippingAvailable_pre', array(&$this->arShipping));
-			
+
 			// Damit es auch ohne View aus wpsg_basket.class beim prÃŒfen der Versandarten aufgerufen werden kann
 			if (!wpsg_isSizedArray($this->view['basket'])) $this->view['basket'] = $this->basket->toArray();
Index: /mods/wpsg_mod_rechnungen.class.php
===================================================================
--- /mods/wpsg_mod_rechnungen.class.php	(revision 8079)
+++ /mods/wpsg_mod_rechnungen.class.php	(revision 8080)
@@ -2186,145 +2186,135 @@
             $rechnung = $this->db->fetchRow("SELECT * FROM `".WPSG_TBL_RECHNUNGEN."` WHERE `id` = '".wpsg_q($r_id)."'");
 
-			$oInvoice = \wpsg\wpsg_invoice::getInstance(intval($r_id));
-			
-			if ($oInvoice->isMultiInvoice()) {
-				
-				return $oInvoice->getFilePath();
-				
-			} else {
-				
-	            $file_path_old = str_replace('/wpsg/', '/', $this->getFilePath('')).$rechnung['o_id'].'/';
-	
-	            if ($rechnung['gnr'] != "")
-	            {
-	
-	                /**
-	                 * Damit alte Rechnungskorrekturen noch angezeigt werden
-	                 */
-	                if (file_exists($this->getFilePath($rechnung['o_id']).$rechnung['id'].'.pdf'))
-	                {
-	
-	                    $file = $this->getFilePath($rechnung['o_id']).$rechnung['id'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($this->getFilePath($rechnung['o_id']).$rechnung['gnr'].'.pdf'))
-	                {
-	
-	                    $file = $this->getFilePath($rechnung['o_id']).$rechnung['gnr'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($this->getFilePath($rechnung['o_id']).'G'.$rechnung['id'].'.pdf'))
-	                {
-	
-	                    $file = $this->getFilePath($rechnung['o_id']).'G'.$rechnung['id'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($this->getFilePath($rechnung['o_id']).'G'.$rechnung['gnr'].'.pdf'))
-	                {
-	
-	                    $file = $this->getFilePath($rechnung['o_id']).'G'.$rechnung['gnr'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
-	
-	                } //
-	                else if (file_exists($file_path_old.'/'.$rechnung['id'].'.pdf'))
-	                {
-	
-	                    $file = $file_path_old.'/'.$rechnung['id'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($file_path_old.'/R'.$rechnung['gnr'].'.pdf'))
-	                {
-	
-	                    $file = $file_path_old.'/R'.$rechnung['gnr'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($file_path_old.'/R'.$rechnung['id'].'.pdf'))
-	                {
-	
-	                    $file = $file_path_old.'/R'.$rechnung['id'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($file_path_old.'/'.$rechnung['gnr'].'.pdf'))
-	                {
-	
-	                    $file = $file_path_old.'/'.$rechnung['gnr'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
-	
-	                }
-	
-	            }
-	            else {
-	
-	                /**
-	                 * Damit alte Rechnungen noch angezeigt werden
-	                 */
-	                if (file_exists($this->getFilePath($rechnung['o_id']).$rechnung['id'].'.pdf'))
-	                {
-	
-	                    $file = $this->getFilePath($rechnung['o_id']).$rechnung['id'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($this->getFilePath($rechnung['o_id']).$rechnung['rnr'].'.pdf'))
-	                {
-	
-	                    $file = $this->getFilePath($rechnung['o_id']).$rechnung['rnr'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($this->getFilePath($rechnung['o_id']).'R'.$rechnung['id'].'.pdf'))
-	                {
-	
-	                    $file = $this->getFilePath($rechnung['o_id']).'R'.$rechnung['id'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($this->getFilePath($rechnung['o_id']).'R'.$rechnung['rnr'].'.pdf'))
-	                {
-	
-	                    $file = $this->getFilePath($rechnung['o_id']).'R'.$rechnung['rnr'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($file_path_old.'/'.$rechnung['id'].'.pdf'))
-	                {
-	
-	                    $file = $file_path_old.'/'.$rechnung['id'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($file_path_old.'/R'.$rechnung['rnr'].'.pdf'))
-	                {
-	
-	                    $file = $file_path_old.'/R'.$rechnung['rnr'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($file_path_old.'/R'.$rechnung['id'].'.pdf'))
-	                {
-	
-	                    $file = $file_path_old.'/R'.$rechnung['id'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
-	
-	                }
-	                else if (file_exists($file_path_old.'/'.$rechnung['rnr'].'.pdf'))
-	                {
-	
-	                    $file = $file_path_old.'/'.$rechnung['rnr'].'.pdf';
-	                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
-	
-	                }
-	
-	            }
-	
-	            return $file;
-
-			}
+            $file_path_old = str_replace('/wpsg/', '/', $this->getFilePath('')).$rechnung['o_id'].'/';
+
+            if ($rechnung['gnr'] != "")
+            {
+
+                /**
+                 * Damit alte Rechnungskorrekturen noch angezeigt werden
+                 */
+                if (file_exists($this->getFilePath($rechnung['o_id']).$rechnung['id'].'.pdf'))
+                {
+
+                    $file = $this->getFilePath($rechnung['o_id']).$rechnung['id'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
+
+                }
+                else if (file_exists($this->getFilePath($rechnung['o_id']).$rechnung['gnr'].'.pdf'))
+                {
+
+                    $file = $this->getFilePath($rechnung['o_id']).$rechnung['gnr'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
+
+                }
+                else if (file_exists($this->getFilePath($rechnung['o_id']).'G'.$rechnung['id'].'.pdf'))
+                {
+
+                    $file = $this->getFilePath($rechnung['o_id']).'G'.$rechnung['id'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
+
+                }
+                else if (file_exists($this->getFilePath($rechnung['o_id']).'G'.$rechnung['gnr'].'.pdf'))
+                {
+
+                    $file = $this->getFilePath($rechnung['o_id']).'G'.$rechnung['gnr'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
+
+                } //
+                else if (file_exists($file_path_old.'/'.$rechnung['id'].'.pdf'))
+                {
+
+                    $file = $file_path_old.'/'.$rechnung['id'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
+
+                }
+                else if (file_exists($file_path_old.'/R'.$rechnung['gnr'].'.pdf'))
+                {
+
+                    $file = $file_path_old.'/R'.$rechnung['gnr'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
+
+                }
+                else if (file_exists($file_path_old.'/R'.$rechnung['id'].'.pdf'))
+                {
+
+                    $file = $file_path_old.'/R'.$rechnung['id'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
+
+                }
+                else if (file_exists($file_path_old.'/'.$rechnung['gnr'].'.pdf'))
+                {
+
+                    $file = $file_path_old.'/'.$rechnung['gnr'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['gnr'].'.pdf"');
+
+                }
+
+            }
+            else {
+
+                /**
+                 * Damit alte Rechnungen noch angezeigt werden
+                 */
+                if (file_exists($this->getFilePath($rechnung['o_id']).$rechnung['id'].'.pdf'))
+                {
+
+                    $file = $this->getFilePath($rechnung['o_id']).$rechnung['id'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
+
+                }
+                else if (file_exists($this->getFilePath($rechnung['o_id']).$rechnung['rnr'].'.pdf'))
+                {
+
+                    $file = $this->getFilePath($rechnung['o_id']).$rechnung['rnr'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
+
+                }
+                else if (file_exists($this->getFilePath($rechnung['o_id']).'R'.$rechnung['id'].'.pdf'))
+                {
+
+                    $file = $this->getFilePath($rechnung['o_id']).'R'.$rechnung['id'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
+
+                }
+                else if (file_exists($this->getFilePath($rechnung['o_id']).'R'.$rechnung['rnr'].'.pdf'))
+                {
+
+                    $file = $this->getFilePath($rechnung['o_id']).'R'.$rechnung['rnr'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
+
+                }
+                else if (file_exists($file_path_old.'/'.$rechnung['id'].'.pdf'))
+                {
+
+                    $file = $file_path_old.'/'.$rechnung['id'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
+
+                }
+                else if (file_exists($file_path_old.'/R'.$rechnung['rnr'].'.pdf'))
+                {
+
+                    $file = $file_path_old.'/R'.$rechnung['rnr'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
+
+                }
+                else if (file_exists($file_path_old.'/R'.$rechnung['id'].'.pdf'))
+                {
+
+                    $file = $file_path_old.'/R'.$rechnung['id'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
+
+                }
+                else if (file_exists($file_path_old.'/'.$rechnung['rnr'].'.pdf'))
+                {
+
+                    $file = $file_path_old.'/'.$rechnung['rnr'].'.pdf';
+                    header('Content-Disposition: attachment; filename="'.$rechnung['rnr'].'.pdf"');
+
+                }
+
+            }
+
+            return $file;
 
         }
@@ -2540,6 +2530,6 @@
  					
  				}
-
-		    } else {	
+ 				
+ 			} else {	
  			    
  			    // Rechnung aus Bestellung
@@ -2570,5 +2560,5 @@
 						
 			$this->shop->protectDirectory($path);
-			
+						
 			return $strReturn;
 			 
@@ -2646,2 +2636,3 @@
  		
 	} // class wpsg_mod_rechnungen extends wpsg_mod_basic
+
Index: /mods/wpsg_mod_versandarten.class.php
===================================================================
--- /mods/wpsg_mod_versandarten.class.php	(revision 8079)
+++ /mods/wpsg_mod_versandarten.class.php	(revision 8080)
@@ -272,5 +272,9 @@
 					if (preg_match('/'.$this->id.'_\d+/', $shipping_key)) {
 						
-						if ($shipping_data['vz'] !== $oLand->getShippingZoneId()) unset($arShipping[$shipping_key]);
+						if (intval($shipping_data['vz']) > 0 && $shipping_data['vz'] !== $oLand->getShippingZoneId()) {
+							 
+							unset($arShipping[$shipping_key]);
+							
+						}
 						
 					}
