Index: /changelog
===================================================================
--- /changelog	(revision 7780)
+++ /changelog	(revision 7781)
@@ -402,2 +402,5 @@
 - Bugfix: CSS Abstand im Backend korrigiert (Bestimmte PHP Versionen)
 - Bugfix: Gewichtsmodul lÃ¶scht die anderen Module nicht aus der Produktverwaltung (Produkt bearbeiten)
+
+#4.2.8
+- Bugfix: Ermittlung des KostenschlÃŒssels anhand der PLZ korrigiert
Index: /mods/wpsg_mod_versandarten.class.php
===================================================================
--- /mods/wpsg_mod_versandarten.class.php	(revision 7780)
+++ /mods/wpsg_mod_versandarten.class.php	(revision 7781)
@@ -299,5 +299,5 @@
 				if (!is_admin() && $va['aktiv'] != '1') continue;
 
-				$va = $this->getVaKosten($arBasket, $va);
+				$va = $this->getVaKosten($va);
 				
 				$hint = $va['hint'];
@@ -323,5 +323,5 @@
 		public function checkCheckout(&$state, &$error, &$arCheckout) 
 		{ 
-			
+
 			/* PrÃŒfung, ob arShipping != leer */
 			$bOK = true;
@@ -568,10 +568,10 @@
 		 * Greift dabei auf die PLZ Unterteilung zurÃŒck
 		 */
-		private function getVaKosten(&$arBasket, $va)
-		{
-			
-			if ($va['vz'] > 0)
-			{
-				
+		private function getVaKosten($va) {
+
+		    $arBasket = $this->shop->basket->toArray();
+
+			if ($va['vz'] > 0) {
+
 				// Alle PLZ Gebiete der Zone laden
 				$arPLZ = $this->getDefinedPLZAreas($va['vz']);
@@ -582,11 +582,9 @@
 				 
 				// Unterteilungen auftrennen
-				foreach ($arPLZ as $k => $v)
-				{
+				foreach ($arPLZ as $k => $v) {
 					
 					$arPLZ[$k] = wpsg_trim(explode(',', $v));
 					
-					foreach ($arPLZ[$k] as $k2 => $v2) 
-					{
+					foreach ($arPLZ[$k] as $k2 => $v2) {
 						
 						// Nur zuordnen wenn auch Kosten angegben wurden
@@ -599,11 +597,9 @@
 				uksort($arPLZ_flatten, array($this, 'sortPLZ'));			
 				$arPLZ_flatten = array_reverse($arPLZ_flatten, TRUE);
-				
-				foreach ($arPLZ_flatten as $plz => $value)
-				{
-				
-					if (strpos($arBasket['checkout']['plz'], (string)$plz) === 0)
-					{
-						
+
+				foreach ($arPLZ_flatten as $plz => $value) {
+
+					if (strpos($arBasket['checkout']['plz'], (string)$plz) === 0) {
+
 						$va['kosten'] = $kosten_plz[$value];				
 						$va['plz'] = $plz; 
@@ -614,5 +610,5 @@
 					
 				}
-				
+
 				return $va;
 				
Index: /views/css/frontend.css
===================================================================
--- /views/css/frontend.css	(revision 7780)
+++ /views/css/frontend.css	(revision 7781)
@@ -550,2 +550,6 @@
 .wpsg_produkt_wrapper2 .bigimg img { margin:0 15px 15px 15px; width:100px; height:auto; float:left;  }
 
+/* wpsg_mod_amazon_v2 */
+#AmazonPayButton_wrap { text-align:right; margin-bottom:2rem; width:100%; justify-content:flex-end; display:flex; }
+#AmazonPayButton_wrap #AmazonPayButton { width:210px; }
+#AmazonLoginButton_wrap { text-align:right; margin-bottom:2rem; width:100%; justify-content:flex-end; display:flex; }
Index: /views/warenkorb/overview.phtml
===================================================================
--- /views/warenkorb/overview.phtml	(revision 7780)
+++ /views/warenkorb/overview.phtml	(revision 7781)
@@ -505,5 +505,8 @@
 
 		<input type="submit" class="wpsg_checkoutbutton" value="<?php echo __('zurÃŒck', 'wpsg'); ?>" name="wpsg_redirect_checkout" />
+
+        <?php if ($this->callMods('handle_order')) { ?>
 		<input type="submit" class="wpsg_orderbutton" value="<?php echo __('zahlungspflichtig bestellen', 'wpsg'); ?>" name="wpsg_order" />
+        <?php } ?>
 
 		<div class="wpsg_clear"></div>
