Index: /changelog
===================================================================
--- /changelog	(revision 7895)
+++ /changelog	(revision 7896)
@@ -454,4 +454,5 @@
 #4.3.3
 - Bugfix: Gutscheine mit Betrag > Bestellwert
+- Bugfix: Gutscheinprodukt mit variablen Preis repariert
 - Change: Im Produkt im Backend werden jetzt alle Produktvariablen angezeigt nicht nur die beim bestellen gesetzen
 - Change: Staffelpreise bei StÃŒck nicht mehr mit Kommastelle
Index: /mods/wpsg_mod_voucherproduct.class.php
===================================================================
--- /mods/wpsg_mod_voucherproduct.class.php	(revision 7895)
+++ /mods/wpsg_mod_voucherproduct.class.php	(revision 7896)
@@ -17,8 +17,5 @@
 			
 			parent::__construct();
-			
-			if (!isset($_SESSION['wpsg']['wpsg_mod_voucherproduct_iv'])) $_SESSION['wpsg']['wpsg_mod_voucherproduct_iv'] = openssl_random_pseudo_bytes(openssl_cipher_iv_length('AES128'));  
-			$this->iv = $_SESSION['wpsg']['wpsg_mod_voucherproduct_iv'];
-			
+
 			$this->name = __('GutscheinProdukt', 'wpsg');
 			$this->group = __('Produkte', 'wpsg');
@@ -26,5 +23,12 @@
 			
 		} // public function __construct()
-		
+
+		public function init() {
+
+			if (!isset($_SESSION['wpsg']['wpsg_mod_voucherproduct_iv'])) $_SESSION['wpsg']['wpsg_mod_voucherproduct_iv'] = openssl_random_pseudo_bytes(openssl_cipher_iv_length('AES128'));
+			$this->iv = $_SESSION['wpsg']['wpsg_mod_voucherproduct_iv'];
+
+		}
+
 		public function install()
 		{
@@ -442,5 +446,5 @@
 						'price' => wpsg_tf($value),					
 					]),'AES128', $this->shop->get_option('wpsg_salt'), 0, $this->iv);
-					
+
 					$ses_data['price_code'] = $code;
 					
@@ -458,5 +462,8 @@
 				
 				$data = \json_decode(\openssl_decrypt($ses_data['price_code'],'AES128', $this->shop->get_option('wpsg_salt'), 0, $this->iv), true);
-				
+
+				//echo "=".$ses_data['price_code']."  ".$this->shop->get_option('wpsg_salt'). "  ".$this->iv;
+				//die(\openssl_decrypt($ses_data['price_code'],'AES128', $this->shop->get_option('wpsg_salt'), 0, $this->iv));
+
 				$product_data['set'] = $data['price'];
 				$product_data['bruttonetto'] = $this->shop->getFrontendTaxview();
