Index: /lib/wpsg_basket.class.php
===================================================================
--- /lib/wpsg_basket.class.php	(revision 6292)
+++ /lib/wpsg_basket.class.php	(revision 6293)
@@ -402,5 +402,5 @@
 					OP.`mod_vp_varkey`,
 					OP.`id` AS `order_product_id`,					
-					P.`id`, P.`anr`, P.`name`  
+					P.`id`, P.`anr`, P.`name`, OP.`product_index`
 				FROM
 					`".WPSG_TBL_ORDERPRODUCT."` AS OP
@@ -408,9 +408,9 @@
 				WHERE
 					OP.`o_id` = '".wpsg_q($o_id)."'					
-			"); 
-			
+			", "product_index"); 
+			 
 			foreach ($arProdukte as $k => $v)
 			{
-				
+				 				
 				$arProdukte[$k]['varPriceAdded'] = 1;
 				if ($v['mod_vp_varkey'] != '') $arProdukte[$k]['id'] = $v['mod_vp_varkey'];
@@ -1614,5 +1614,5 @@
 				$arProductPrice[WPSG_NETTO][$b['mwst_key'].'_'.$country->id][] = $price_sum_netto;
 				$arProductPrice[WPSG_BRUTTO][$b['mwst_key'].'_'.$country->id][] = $price_sum_brutto;
-												
+								
 				$b['product_index'] = $product_index;
 				$arReturn['produkte'][$product_index] = $b;
Index: /lib/wpsg_cache.class.php
===================================================================
--- /lib/wpsg_cache.class.php	(revision 6292)
+++ /lib/wpsg_cache.class.php	(revision 6293)
@@ -142,4 +142,6 @@
 						`id` = '".wpsg_q($product_id)."'
 				");
+				
+				$this->_arProducts[$product_id]['product_key'] = $product_id;
 				
 			}
Index: /mods/wpsg_mod_deliverynote.class.php
===================================================================
--- /mods/wpsg_mod_deliverynote.class.php	(revision 6292)
+++ /mods/wpsg_mod_deliverynote.class.php	(revision 6293)
@@ -213,5 +213,5 @@
 			if (isset($_REQUEST['wpsg_mod_deliverynote_preview']))
 			{
-				 
+			 
 				// Vorschau eines Lieferscheines aus der Bestellverwaltung
 				$this->writeDeliverynote(
@@ -344,5 +344,5 @@
 		public function order_view_row(&$p, $i) 
 		{ 
-						
+
 			if (wpsg_deliverynote::checkProductKey($p['product_index'], $_REQUEST['edit_id']))
 			{
@@ -640,5 +640,5 @@
 						OP.`o_id` = '".wpsg_q($order_id)."'
 				");
-				
+				 
 				if ($this->shop->isOtherLang())
 				{
