Index: /controller/wpsg_AdminController.class.php
===================================================================
--- /controller/wpsg_AdminController.class.php	(revision 8262)
+++ /controller/wpsg_AdminController.class.php	(revision 8264)
@@ -2132,5 +2132,6 @@
 				$this->update_option('wpsg_produkte_perpage', $_REQUEST['wpsg_produkte_perpage'], false, false, WPSG_SANITIZE_INT);
 				$this->update_option('wpsg_order_perpage', $_REQUEST['wpsg_order_perpage'], false, false, WPSG_SANITIZE_INT);
-				$this->update_option('wpsg_showincompleteorder', $_REQUEST['wpsg_showincompleteorder'], false, false, WPSG_SANITIZE_CHECKBOX);				
+				$this->update_option('wpsg_showincompleteorder', $_REQUEST['wpsg_showincompleteorder'], false, false, WPSG_SANITIZE_CHECKBOX);		
+				$this->update_option('wpsg_showvalueofgoods', $_REQUEST['wpsg_showvalueofgoods'], false, false, WPSG_SANITIZE_CHECKBOX);	
 				$this->update_option('wpsg_emptyorder_clear', $_REQUEST['wpsg_emptyorder_clear'], false, false, WPSG_SANITIZE_CHECKBOX);
 				$this->update_option('wpsg_afterinsert', $_REQUEST['wpsg_afterinsert'], false, false, WPSG_SANITIZE_VALUES, ['0', '1', '2', '3']);
@@ -2617,5 +2618,5 @@
 				$strReturn = preg_replace('/\"\//', '"http://trac.wpshopgermany.de/', $strReturn);
 
-				$arLocales = $arLocales = $q_config['locale'];
+				$arLocales = $arLocales = $q_config['locale']??'';
 				if (wpsg_isSizedArray($arLocales) && wpsg_isSizedString(get_locale()))
 				{
Index: /controller/wpsg_SystemController.class.php
===================================================================
--- /controller/wpsg_SystemController.class.php	(revision 8262)
+++ /controller/wpsg_SystemController.class.php	(revision 8264)
@@ -837,5 +837,5 @@
 					"post_title" => $title,
 					"post_date_gmt" => "NOW()",
-					"post_name" => mb_strtolower($title),
+					"post_name" => strtolower($title),
 					"post_status" => "publish",
 					"comment_status" => "closed",
Index: /model/wpsg_order.class.php
===================================================================
--- /model/wpsg_order.class.php	(revision 8262)
+++ /model/wpsg_order.class.php	(revision 8264)
@@ -248,6 +248,6 @@
 			if ($brutto_netto == WPSG_BRUTTO)
 			{
-				
-				return wpsg_tf($this->data['price_gesamt_brutto']);
+
+				if (isset($this->data['price_gesamt_brutto'])) return wpsg_tf($this->data['price_gesamt_brutto']);
 				
 			}
@@ -255,5 +255,5 @@
 			{
 			
-				return wpsg_tf($this->data['price_gesamt_netto']);
+				if (isset($this->data['price_gesamt_netto'])) return wpsg_tf($this->data['price_gesamt_netto']);
 				
 			}
Index: /mods/wpsg_mod_productvariants.class.php
===================================================================
--- /mods/wpsg_mod_productvariants.class.php	(revision 8262)
+++ /mods/wpsg_mod_productvariants.class.php	(revision 8264)
@@ -2266,8 +2266,8 @@
 					'vari_id' => $var_value,
 					'ean' => $vp_data[$var_id]['arVariation'][$var_value]['ean']??'',
-					'name' 	=> $vp_data[$var_id]['name'],
-					'value' => $vp_data[$var_id]['arVariation'][$var_value]['name'],
-					'preis'	=> $vp_data[$var_id]['arVariation'][$var_value]['price'],
-					'artnr'	=> @$vp_data[$var_id]['arVariation'][$var_value]['anr'],
+					'name' 	=> $vp_data[$var_id]['name']??'',
+					'value' => $vp_data[$var_id]['arVariation'][$var_value]['name']??'',
+					'preis'	=> $vp_data[$var_id]['arVariation'][$var_value]['price']??'',
+					'artnr'	=> @$vp_data[$var_id]['arVariation'][$var_value]['anr']??'',
 					'images' => $arImagesVariation
 				);
@@ -2290,6 +2290,6 @@
 
 				$strEAN .= $r['ean'];
-				$arKey[] = $vp_data[$var_id]['arVariation'][$var_value]['name'];
-				$arAKey[] = @$vp_data[$var_id]['arVariation'][$var_value]['anr'];
+				$arKey[] = $vp_data[$var_id]['arVariation'][$var_value]['name']??'';
+				$arAKey[] = @$vp_data[$var_id]['arVariation'][$var_value]['anr']??'';
  
 			}
Index: /views/admin/konfiguration.phtml
===================================================================
--- /views/admin/konfiguration.phtml	(revision 8262)
+++ /views/admin/konfiguration.phtml	(revision 8264)
@@ -65,4 +65,5 @@
 				<?php echo wpsg_drawForm_Input('wpsg_order_perpage', __('Bestellungen pro Seite', 'wpsg'), $this->get_option('wpsg_order_perpage'), array('help' => 'Bestellung_pro_Seite')); ?>
 				<?php echo wpsg_drawForm_Checkbox('wpsg_showincompleteorder', __('UnvollstÃ€ndige Best. in Bestellverwaltung anzeigen', 'wpsg'), $this->get_option('wpsg_showincompleteorder'), array('help' => 'unvollstaendige_Bestellung')); ?>
+				<?php echo wpsg_drawForm_Checkbox('wpsg_showvalueofgoods', __('Warenwert in Bestellverwaltung anzeigen', 'wpsg'), $this->get_option('wpsg_showvalueofgoods'), array('help' => 'Warenwert_Bestellung')); ?>
 				<?php echo wpsg_drawForm_Checkbox('wpsg_emptyorder_clear', wpsg_translate(__('Bestellungen fÃŒr 0 #1# direkt abschlieÃen', 'wpsg'), $this->get_option('wpsg_currency')), $this->get_option('wpsg_emptyorder_clear'), array('help' => 'Bestellung_0')); ?>
 				<?php echo wpsg_drawForm_Select('wpsg_afterinsert', __('Nach neuem Produkt im Warenkorb', 'wpsg'), array(
Index: /views/admin/versandzonen_list.phtml
===================================================================
--- /views/admin/versandzonen_list.phtml	(revision 8262)
+++ /views/admin/versandzonen_list.phtml	(revision 8264)
@@ -14,5 +14,5 @@
     foreach ($arShipping as $s_key => $s) {
         
-        if (intval($s['deleted']) !== 1 && intval($s['active']) === 1) {
+        if (intval($s['deleted']??'') !== 1 && intval($s['active']??'') === 1) {
         
             $arShippingPreset[$s_key] = $s['name'];
Index: /views/mods/mod_abo/index.phtml
===================================================================
--- /views/mods/mod_abo/index.phtml	(revision 8262)
+++ /views/mods/mod_abo/index.phtml	(revision 8264)
@@ -80,7 +80,9 @@
                                 <select name="filter[enddate_y]" class="form-control input-sm">
                                     <option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
-                                    <?php foreach ($this->view['enddate_years'] as $y) { ?>
-                                    <option <?php echo ((wpsg_getStr($this->view['arFilter']['enddate_y']) == $y)?'selected="selected"':''); ?> value="<?php echo $y; ?>"><?php echo $y; ?></option>
-                                    <?php } ?>
+                                    <?php if(isset($this->view['enddate_years']) && !empty($this->view['enddate_years'])) {
+                                        foreach ($this->view['enddate_years'] as $y) { ?>
+                                        <option <?php echo ((wpsg_getStr($this->view['arFilter']['enddate_y']) == $y)?'selected="selected"':''); ?> value="<?php echo $y; ?>"><?php echo $y; ?></option>
+                                        <?php } 
+                                    } ?>
                                 </select>
                             </div>
@@ -128,5 +130,5 @@
                         <th class="col_payment wpsg_order" data-order="payment"><?php echo __('Bezahlmethode', 'wpsg'); ?></th>
                         <th class="col_shipping wpsg_order" data-order="shipping"><?php echo __('Versandart', 'wpsg'); ?></th>
-                        <th class="col_products wpsg_order" data-order="products"><?php echo __('Abonnement', 'wpsg'); ?></th>                       
+                        <th class="col_products wpsg_order" data-order="products"><?php echo __('Abonnement', 'wpsg'); ?></th>  
                         <th class="col_sum wpsg_order" data-order="amount"><?php echo __('Bestellwert', 'wpsg'); ?></th>
                         <th class="col_time wpsg_order" data-order="expiration"><?php echo __('Laufzeit', 'wpsg'); ?></th>
Index: /views/mods/mod_export/profil.phtml
===================================================================
--- /views/mods/mod_export/profil.phtml	(revision 8262)
+++ /views/mods/mod_export/profil.phtml	(revision 8264)
@@ -223,5 +223,7 @@
                         <?php if ($this->hasMod('wpsg_mod_produktartikel')) { $temp = $this->callMod('wpsg_mod_produktartikel', 'getProductcategorySelect', array()); ?>
                         <?php $arProductCategorySelect = array(); foreach ($temp as $k => $v) $arProductCategorySelect[$v['term_id']] = $v['label']; ?>
-                        <?php echo wpsg_drawForm_Text(__('Produktkategorie', 'wpsg'), $arProductCategorySelect[wpsg_getStr($this->view['profil']['orderfilter']['productcategory_ids'], '-1')], 'orderfilter_productcategory_ids', array('inlineEdit' => true, 'inlineEdit_type' => 'select', 'inlineEdit_url' => $inlineEdit_url, 'inlineEdit_source' => $arProductCategorySelect)); ?>
+                        <?php $productCategoryIds = wpsg_getStr($this->view['profil']['orderfilter']['productcategory_ids'], '-1'); ?>
+                        <?php $selectedCategory = $arProductCategorySelect['-1'] ?? ''; ?>
+                        <?php echo wpsg_drawForm_Text(__('Produktkategorie', 'wpsg'), $arProductCategorySelect[$productCategoryIds], 'orderfilter_productcategory_ids', array('inlineEdit' => true, 'inlineEdit_type' => 'select', 'inlineEdit_url' => $inlineEdit_url, 'inlineEdit_source' => $arProductCategorySelect)); ?>
                         <?php } ?>
                                                 
Index: /views/mods/mod_shippingadress/wpsg_order_view_customerdata.phtml
===================================================================
--- /views/mods/mod_shippingadress/wpsg_order_view_customerdata.phtml	(revision 8262)
+++ /views/mods/mod_shippingadress/wpsg_order_view_customerdata.phtml	(revision 8264)
@@ -45,19 +45,19 @@
 
                 <div id="shipping_dialog_content">
-                    <?php echo wpsg_drawForm_Input('dialog_shipping_firma', __('Firma', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_firma']); ?>
-                    <?php echo wpsg_drawForm_Select('dialog_shipping_title', __('Anrede', 'wpsg'), $this->view['arTitles'], $this->view['wpsg_mod_shippingadress']['shipping_title'], array('noIndex' => true)); ?>
-                    <?php echo wpsg_drawForm_Input('dialog_shipping_vname', __('Vorname', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_vname']); ?>
-                    <?php echo wpsg_drawForm_Input('dialog_shipping_name', __('Name', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_name']); ?>
-                    <?php echo wpsg_drawForm_Input('dialog_shipping_strasse', __('StraÃe', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_strasse']); ?>
+                    <?php echo wpsg_drawForm_Input('dialog_shipping_firma', __('Firma', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_firma']??''); ?>
+                    <?php echo wpsg_drawForm_Select('dialog_shipping_title', __('Anrede', 'wpsg'), $this->view['arTitles'], $this->view['wpsg_mod_shippingadress']['shipping_title']??'', array('noIndex' => true)); ?>
+                    <?php echo wpsg_drawForm_Input('dialog_shipping_vname', __('Vorname', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_vname']??''); ?>
+                    <?php echo wpsg_drawForm_Input('dialog_shipping_name', __('Name', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_name']??''); ?>
+                    <?php echo wpsg_drawForm_Input('dialog_shipping_strasse', __('StraÃe', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_strasse']??''); ?>
 						
 					<?php if (wpsg_getStr($this->view['pflicht']['wpsg_showNr']) === '1') { ?>
 	
-						<?php echo wpsg_drawForm_Input('dialog_shipping_nr', __('Hausnummer', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_nr']); ?>
+						<?php echo wpsg_drawForm_Input('dialog_shipping_nr', __('Hausnummer', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_nr']??''); ?>
 						
 					<?php } ?>
 						
-                    <?php echo wpsg_drawForm_Input('dialog_shipping_plz', __('Postleitzahl', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_plz']); ?>
-                    <?php echo wpsg_drawForm_Input('dialog_shipping_ort', __('Ort', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_ort']); ?>
-                    <?php echo wpsg_drawForm_Select('dialog_shipping_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['wpsg_mod_shippingadress']['shipping_land']); ?>
+                    <?php echo wpsg_drawForm_Input('dialog_shipping_plz', __('Postleitzahl', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_plz']??''); ?>
+                    <?php echo wpsg_drawForm_Input('dialog_shipping_ort', __('Ort', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_ort']??''); ?>
+                    <?php echo wpsg_drawForm_Select('dialog_shipping_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['wpsg_mod_shippingadress']['shipping_land']??''); ?>
 					
 					<br />
Index: /views/order/index.phtml
===================================================================
--- /views/order/index.phtml	(revision 8262)
+++ /views/order/index.phtml	(revision 8264)
@@ -249,4 +249,5 @@
                         <th class="col_shipping wpsg_order" data-order="shipping"><?php echo __('Versandart', 'wpsg'); ?></th>
                         <th class="col_products wpsg_order" data-order="products"><?php echo __('Produkte', 'wpsg'); ?></th>
+                        <?php if ($this->get_option('wpsg_showvalueofgoods')) { ?><th class="col_productsum wpsg_order" data-order="productsum"><?php echo __('Warenwert', 'wpsg'); ?></th><?php } ?>
                         <th class="col_sum wpsg_order" data-order="amount"><?php echo __('Bestellwert', 'wpsg'); ?></th>
                         <th class="col_state wpsg_order" data-order="state"><?php echo __('Status', 'wpsg'); ?></th>
@@ -409,4 +410,16 @@
 
                         </td>
+                        <?php if ($this->get_option('wpsg_showvalueofgoods')) { ?>
+                            <td class="col_productsum">
+
+                                <?php $oOrderProducts = $oOrder->getOrderProducts(); ?>
+                                <?php foreach ($oOrderProducts as $oOrderProduct) { ?>
+                                    <?php $product_sum += $oOrderProduct->getPriceSum($this->getBackendTaxview()); ?>
+                                <?php } ?>
+                                <?php echo wpsg_ff($product_sum, $this->get_option('wpsg_currency')); ?>
+                                <?php $product_sum = 0; ?>
+
+                            </td>
+                        <?php } ?>
                         <td class="col_sum">
                             <?php echo wpsg_ff($oOrder->getAmount(), $this->get_option('wpsg_currency')); ?>
