Subversion Repositories wpShopGermany4

Rev

Rev 8420 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8420 Rev 8444
Line 57... Line 57...
57
 
57
 
58
<br />
58
<br />
59
 
59
 
60
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_aktiv', __('PayPal für neue Bestellungen erlauben', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_aktiv'), array('help' => 'wpsg_shippay_activ')); ?>
60
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_aktiv', __('PayPal für neue Bestellungen erlauben', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_aktiv'), array('help' => 'wpsg_shippay_activ')); ?>
61
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_plus_aktiv', __('PayPal Plus aktivieren', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_plus_aktiv'), array('help' => 'wpsg_mod_paypalapi_plus_aktiv')); ?>
61
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_plus_aktiv', __('PayPal Plus aktivieren', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_plus_aktiv'), array('help' => 'wpsg_mod_paypalapi_plus_aktiv')); ?>
-
 
62
<?php /*
62
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_giropay_aktiv', __('GiroPay aktivieren', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_giropay_aktiv'), array('help' => 'wpsg_mod_paypalapi_giropay_aktiv ')); ?>
63
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_giropay_aktiv', __('GiroPay aktivieren', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_giropay_aktiv'), array('help' => 'wpsg_mod_paypalapi_giropay_aktiv ')); ?>
63
 
64
 
64
<div id="wpsg_mod_paypalapi_giropay_aktiv_layer">
65
<div id="wpsg_mod_paypalapi_giropay_aktiv_layer">
65
	<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_giropay_name', __('Bezeichnung (GiroPay)', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_giropay_name'), array('help' => 'wpsg_shippay_name')); ?>
66
	<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_giropay_name', __('Bezeichnung (GiroPay)', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_giropay_name'), array('help' => 'wpsg_shippay_name')); ?>
66
	<?php echo wpsg_drawForm_Textarea('wpsg_mod_paypalapi_giropay_hint', __('Hinweistext (GiroPay)', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_giropay_hint'), array('help' => 'wpsg_shippay_hint')); ?>
67
	<?php echo wpsg_drawForm_Textarea('wpsg_mod_paypalapi_giropay_hint', __('Hinweistext (GiroPay)', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_giropay_hint'), array('help' => 'wpsg_shippay_hint')); ?>
67
</div>
68
</div>
-
 
69
*/ ?>
68
 
70
 
69
<div class="wpsg_mod_paypalapi_plus_aktiv_layer wpsg_mod_paypalapi_plus_aktiv_layer_1">
71
<div class="wpsg_mod_paypalapi_plus_aktiv_layer wpsg_mod_paypalapi_plus_aktiv_layer_1">
70
	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_plus_basket', __('Zahlungsauswahl im Warenkorb', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_plus_basket'), array('help' => 'wpsg_mod_paypalapi_plus_basket')); ?>
72
	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_plus_basket', __('Zahlungsauswahl im Warenkorb', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_plus_basket'), array('help' => 'wpsg_mod_paypalapi_plus_basket')); ?>
71
</div>
73
</div>
72
 
74
 
Line 82... Line 84...
82
	), array('readonly' => true, 'help' => 'wpsg_mod_paypalapi_paypalexpress_returnurl')); ?>
84
	), array('readonly' => true, 'help' => 'wpsg_mod_paypalapi_paypalexpress_returnurl')); ?>
83
	<br />
85
	<br />
84
</div>
86
</div>
85
 
87
 
86
<div class="wpsg_mod_paypalapi_plus_inaktiv">
88
<div class="wpsg_mod_paypalapi_plus_inaktiv">
87
-    <?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_autostart', __('Zahlung sofort starten', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_autostart'), array('help' => 'wpsg_shippay_paystart')); ?>
89
    <?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_autostart', __('Zahlung sofort starten', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_autostart'), array('help' => 'wpsg_shippay_paystart')); ?>
88
-    
-
 
89
-</div>
90
</div>
90
 
91
 
91
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_paypalexpress_details', __('Warenkorbdetails übertragen', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_paypalexpress_details'), array('help' => 'wpsg_mod_paypalapi_paypalexpress_details')); ?>
92
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_paypalapi_paypalexpress_details', __('Warenkorbdetails übertragen', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_paypalexpress_details'), array('help' => 'wpsg_mod_paypalapi_paypalexpress_details')); ?>
92
 
93
 
93
<br />
94
<br />
94
 
95
 
Line 181... Line 182...
181
		} );
182
		} );
182
		
183
		
183
	} );
184
	} );
184
 
185
 
185
	const el_wpsg_mod_paypalapi_plus_aktiv = document.getElementById('wpsg_mod_paypalapi_plus_aktiv');
186
	const el_wpsg_mod_paypalapi_plus_aktiv = document.getElementById('wpsg_mod_paypalapi_plus_aktiv');
186
	const el_wpsg_mod_paypalapi_giropay_aktiv = document.getElementById('wpsg_mod_paypalapi_giropay_aktiv');
187
	//const el_wpsg_mod_paypalapi_giropay_aktiv = document.getElementById('wpsg_mod_paypalapi_giropay_aktiv');
187
	const el_wpsg_mod_paypalapi_giropay_aktiv_layer = document.getElementById('wpsg_mod_paypalapi_giropay_aktiv_layer');
188
	//const el_wpsg_mod_paypalapi_giropay_aktiv_layer = document.getElementById('wpsg_mod_paypalapi_giropay_aktiv_layer');
188
	
189
	
189
	el_wpsg_mod_paypalapi_plus_aktiv.addEventListener('change', event => {
190
	el_wpsg_mod_paypalapi_plus_aktiv.addEventListener('change', event => {
190
		
191
		
191
		if (el_wpsg_mod_paypalapi_plus_aktiv.checked) {
192
		if (el_wpsg_mod_paypalapi_plus_aktiv.checked) {
192
		
193
		
193
			el_wpsg_mod_paypalapi_giropay_aktiv.disabled = true;
194
			//el_wpsg_mod_paypalapi_giropay_aktiv.disabled = true;
194
			el_wpsg_mod_paypalapi_giropay_aktiv.checked = false;
195
			//el_wpsg_mod_paypalapi_giropay_aktiv.checked = false;
195
		
196
		
196
		} else {
197
		} else {
197
		
198
		
198
			el_wpsg_mod_paypalapi_giropay_aktiv.disabled = false;
199
			//el_wpsg_mod_paypalapi_giropay_aktiv.disabled = false;
199
		
200
		
200
		}
201
		}
201
		
202
		
202
	});
203
	});
203
	
204
 
-
 
205
	/*
204
	el_wpsg_mod_paypalapi_giropay_aktiv.addEventListener('change', event => {
206
	el_wpsg_mod_paypalapi_giropay_aktiv.addEventListener('change', event => {
205
	 
207
	 
206
		if (el_wpsg_mod_paypalapi_giropay_aktiv.checked) {
208
		if (el_wpsg_mod_paypalapi_giropay_aktiv.checked) {
207
		
209
		
208
			el_wpsg_mod_paypalapi_giropay_aktiv_layer.style.display = 'block';
210
			el_wpsg_mod_paypalapi_giropay_aktiv_layer.style.display = 'block';
Line 211... Line 213...
211
		
213
		
212
			el_wpsg_mod_paypalapi_giropay_aktiv_layer.style.display = 'none';
214
			el_wpsg_mod_paypalapi_giropay_aktiv_layer.style.display = 'none';
213
			
215
			
214
		}
216
		}
215
		
217
		
216
	});
218
	});*/
217
	
219
	
218
	el_wpsg_mod_paypalapi_plus_aktiv.dispatchEvent(new Event('change'));
220
	el_wpsg_mod_paypalapi_plus_aktiv.dispatchEvent(new Event('change'));
219
	el_wpsg_mod_paypalapi_giropay_aktiv.dispatchEvent(new Event('change'));
221
	//el_wpsg_mod_paypalapi_giropay_aktiv.dispatchEvent(new Event('change'));
220
	
222
	
221
</script>
223
</script>
222
224