Index: /changelog
===================================================================
--- /changelog	(revision 7937)
+++ /changelog	(revision 7938)
@@ -470,4 +470,5 @@
 - Feature: Suche nach Zahlungsart in Bestellverwaltung mÃ¶glich
 - Feature: Bei Statuswechsel ÃŒber die BestellÃŒbersicht kÃ¶nnen die Kunden jetzt optional darÃŒber informiert werden
+- Feature: Adminmail in Kundenverwaltung ohne DEBUG Modus auslÃ¶sbar (Reiter Bestelldaten)
 - Bugfix: PasswortzurÃŒcksetzen funktioniert jetzt auch, wenn paralell ein gelÃ¶schter Kunde mit gleicher E-Mail existiert
 - Bugfix: Produktartikel Neu Aufbauen beachtet den "Entwurfs - Status"
Index: /classes/Action.class.php
===================================================================
--- /classes/Action.class.php	(revision 7937)
+++ /classes/Action.class.php	(revision 7938)
@@ -14,5 +14,5 @@
 
         public static function enqueue_block_editor_assets() {
-
+ 
             \wp_enqueue_style('wpsg-block', \wpsg_ShopController::getShop()->getRessourceURL('css/gutenberg.css'));
 
@@ -22,4 +22,11 @@
                 ['wp-blocks', 'wp-editor', 'wp-element', 'wp-components'],
                 filemtime(\wpsg_ShopController::getShop()->getRessourcePath('js/wpsg-block-product.js'))
+            );
+            
+            \wp_register_script(
+                'wpsg-block-login',
+                \wpsg_ShopController::getShop()->getRessourceURL('js/wpsg-block-login.js'),
+                ['wp-blocks', 'wp-editor', 'wp-element', 'wp-components'],
+                filemtime(\wpsg_ShopController::getShop()->getRessourcePath('js/wpsg-block-login.js'))
             );
 
Index: /controller/wpsg_OrderController.class.php
===================================================================
--- /controller/wpsg_OrderController.class.php	(revision 7937)
+++ /controller/wpsg_OrderController.class.php	(revision 7938)
@@ -1076,4 +1076,15 @@
                 ]);
 
+			} else if (wpsg_isSizedString($_REQUEST['subaction'], 'sendAdminMail')) {
+                
+				wpsg_checkNounce('Order', 'view', ['subaction' => 'sendAdminMail', 'do' => 'customer', 'edit_id' => $_REQUEST['edit_id']]);
+				
+		    	$oBasket = new wpsg_basket();
+		    	$oBasket->initFromDB($_REQUEST['edit_id']);
+				
+		    	$oBasket->sendOrderSaveMails($_REQUEST['edit_id'], $oBasket->toArray(), false, true, false);
+		    						
+		    	die(__('BestellbestÃ€tigung (Admin) wurde erfolgreich versendet.', 'wpsg'));
+		    	
 			} else if (wpsg_isSizedString($_REQUEST['subaction'], 'sendMail')) {
 				
@@ -1087,5 +1098,5 @@
 		    	$oBasket->sendOrderSaveMails($_REQUEST['edit_id'], $oBasket->toArray(), true, false, false);
 		    						
-		    	die(__('Mail wurde erfolgreich versendet.', 'wpsg'));
+		    	die(__('BestellbestÃ€tigung (Kunde) wurde erfolgreich versendet.', 'wpsg'));
                 
 			} else if (wpsg_isSizedString($_REQUEST['subaction'], 'editVoucher')) {
Index: /mods/wpsg_mod_paypal.class.php
===================================================================
--- /mods/wpsg_mod_paypal.class.php	(revision 7937)
+++ /mods/wpsg_mod_paypal.class.php	(revision 7938)
@@ -47,16 +47,16 @@
 		} // public function install()
 		
-		public function init() 
-		{
+		public function init() {
 			
 			spl_autoload_register(array($this, 'spl_autoload'));
 			
-			if ($this->shop->get_option('wpsg_mod_paypal_sandbox') == 1)
-			{
+			if ($this->shop->get_option('wpsg_mod_paypal_sandbox') == 1) {
+				
 				$this->url = "https://www.sandbox.paypal.com/cgi-bin/webscr";
-			}
-			else		
-			{		
+				
+			} else {
+				
 				$this->url = "https://www.paypal.com/cgi-bin/webscr";
+				
 			}
 			
Index: /views/mods/mod_kundenverwaltung/order.phtml
===================================================================
--- /views/mods/mod_kundenverwaltung/order.phtml	(revision 7937)
+++ /views/mods/mod_kundenverwaltung/order.phtml	(revision 7938)
@@ -88,5 +88,5 @@
 				
 		<?php } ?>
-	<?php } else {Â ?>
+	<?php } else { ?>
 	<p><?php echo __('Bisher keine Bestellungen durchgefÃŒhrt.', 'wpsg'); ?></p>
 	<?php } ?>
Index: /views/order/view.phtml
===================================================================
--- /views/order/view.phtml	(revision 7937)
+++ /views/order/view.phtml	(revision 7938)
@@ -91,5 +91,11 @@
         	<a href="" id="LinkSendMail" onclick="return WPSG_BE_Mail.sendCustomerMail(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-envelope"></span>
         	
-	 			<?php echo __("BestellbestÃ€tigung", "wpsg"); ?><br /><?php echo __("erneut versenden", "wpsg"); ?>
+	 			<?php echo __("BestellbestÃ€tigung (Kunde) versenden", "wpsg"); ?>
+	 			
+	 		</a><br />
+            
+            <a href="" id="LinkSendMail" onclick="return WPSG_BE_Mail.sendAdminMail(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-envelope"></span>
+        	
+	 			<?php echo __("BestellbestÃ€tigung (Admin) versenden", "wpsg"); ?>
 	 			
 	 		</a><br />
Index: /views/order/view_orderdata.phtml
===================================================================
--- /views/order/view_orderdata.phtml	(revision 7937)
+++ /views/order/view_orderdata.phtml	(revision 7938)
@@ -318,4 +318,20 @@
 
 		var WPSG_BE_Mail = {
+			
+			sendAdminMail: function(order_id) {
+
+				jQuery.ajax( {
+					url: '<?php 
+						
+						echo wpsg_admin_url('Order', 'view', ['subaction' => 'sendAdminMail', 'do' => 'customer', 'edit_id' => $_REQUEST['edit_id']], ['noheader' => '1'], true);				
+						
+					?>',
+					data: jQuery('#wpsg_be_discount_form').serialize(),
+					success: function(data) { alert(data); }
+				} );
+
+				return false;
+				
+			},
 			
 			sendCustomerMail: function(order_id) {
