Index: /changelog
===================================================================
--- /changelog	(revision 8100)
+++ /changelog	(revision 8101)
@@ -516,3 +516,4 @@
 - Feature: Produkte ohne Kategorie finden 
 
-
+#4.3.8
+- Bugfix: Downloadprodukte werden bei Versandkosten Staffelpreisen nicht mehr berÃŒcksichtigt
Index: /lib/wpsg_calculation.class.php
===================================================================
--- /lib/wpsg_calculation.class.php	(revision 8100)
+++ /lib/wpsg_calculation.class.php	(revision 8101)
@@ -375,5 +375,6 @@
 					'order_product_id' => $order_product_id,
 					'eu' => $eu,
-					'targetCountry' => $targetCountry
+					'targetCountry' => $targetCountry,
+					'is_downloadproduct' => $this->shop->callMod('wpsg_mod_downloadplus', 'isPDFProdukt', [$product_key]) || $this->shop->callMod('wpsg_mod_downloadprodukte', 'isDownloadProduct', [$product_key])
 				]
 			];
@@ -514,5 +515,5 @@
                 								
 						if (strpos($set, '|') !== false) {
-
+ 
 							$kosten = $this->calculateCostKey($set);
 
@@ -1462,8 +1463,25 @@
 			$arKosten = explode('|', $set);
 			$arKosten = array_reverse($arKosten);
-
+			
 			if ($typ === 'w') $value = (($this->shop->getBackendTaxview() === WPSG_NETTO)?$this->arCalculation['sum']['productsum_netto']:$this->arCalculation['sum']['productsum_brutto']);
-			else if ($typ === 's') $value = $this->arCalculation['sum']['amount']; // Menge
-			else if ($typ === 'g') $value = $this->dWeight; // Gewicht
+			else if ($typ === 's') {
+			
+				// Menge
+				// $value = $this->arCalculation['sum']['amount'];
+				// Downloadprodukte sollen sich nicht auf die Staffel auswirken
+				 
+				$value = 0;
+				
+				foreach ($this->arCalculationRow as $cr) {
+					
+					if ($cr['type'] === 'product') {
+						
+						if (($cr['data']['is_downloadproduct']??false) !== true) $value += $cr['amount'];
+						
+					}
+					
+				}
+					
+			} else if ($typ === 'g') $value = $this->dWeight; // Gewicht
 			else { 
 				
Index: /mods/wpsg_mod_downloadprodukte.class.php
===================================================================
--- /mods/wpsg_mod_downloadprodukte.class.php	(revision 8100)
+++ /mods/wpsg_mod_downloadprodukte.class.php	(revision 8101)
@@ -203,4 +203,10 @@
 			
 		} // private function fileUpload($produkt_id)
+		
+		public function isDownloadProduct($product_key) {
+			
+			return sizeof($this->getProdFiles($product_key)) > 0;
+			
+		}
 		
 		/**
