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 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 |
<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_Textarea('wpsg_mod_paypalapi_giropay_hint', __('Hinweistext (GiroPay)', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_giropay_hint'), array('help' => 'wpsg_shippay_hint')); ?>
|
- |
|
67 |
</div>
|
62 |
|
68 |
|
63 |
<div class="wpsg_mod_paypalapi_plus_aktiv_layer wpsg_mod_paypalapi_plus_aktiv_layer_1">
|
69 |
<div class="wpsg_mod_paypalapi_plus_aktiv_layer wpsg_mod_paypalapi_plus_aktiv_layer_1">
|
64 |
<?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')); ?>
|
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')); ?>
|
65 |
</div>
|
71 |
</div>
|
66 |
|
72 |
|
Line 83... |
Line 89... |
83 |
-</div>
|
89 |
-</div>
|
84 |
|
90 |
|
85 |
<?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')); ?>
|
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')); ?>
|
86 |
|
92 |
|
87 |
<br />
|
93 |
<br />
|
- |
|
94 |
|
88 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_experience_label', __('Bezeichnung im PayPal Zahlungsinterface', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_experience_label'), array('help' => 'wpsg_mod_paypalapi_experience_label', 'hint' => __('Max. 127 Zeichen', 'wpsg'))); ?>
|
95 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_experience_label', __('Bezeichnung im PayPal Zahlungsinterface', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_experience_label'), array('help' => 'wpsg_mod_paypalapi_experience_label', 'hint' => __('Max. 127 Zeichen', 'wpsg'))); ?>
|
- |
|
96 |
|
89 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_experience_logo', __('URL für ein Logo im PayPal Zahlungsinterface', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_experience_logo'), array('help' => 'wpsg_mod_paypalapi_experience_logo', 'hint' => __('gif|png|jpg, Max. 190x60', 'wpsg'))); ?>
|
97 |
<?php echo wpsg_drawForm_Input('wpsg_mod_paypalapi_experience_logo', __('URL für ein Logo im PayPal Zahlungsinterface', 'wpsg'), $this->get_option('wpsg_mod_paypalapi_experience_logo'), array('help' => 'wpsg_mod_paypalapi_experience_logo', 'hint' => __('gif|png|jpg, Max. 190x60', 'wpsg'))); ?>
|
90 |
<?php echo wpsg_drawForm_Select('wpsg_mod_paypalapi_experience_locale_code', __('Sprache im PayPal Zahlungsinterface', 'wpsg'), array(
|
98 |
<?php echo wpsg_drawForm_Select('wpsg_mod_paypalapi_experience_locale_code', __('Sprache im PayPal Zahlungsinterface', 'wpsg'), array(
|
91 |
'DE' => __('Deutsch', 'wpsg'),
|
99 |
'DE' => __('Deutsch', 'wpsg'),
|
92 |
'GB' => __('Englisch', 'wpsg'),
|
100 |
'GB' => __('Englisch', 'wpsg'),
|
93 |
'FR' => __('Französisch', 'wpsg')
|
101 |
'FR' => __('Französisch', 'wpsg')
|
Line 172... |
Line 180... |
172 |
|
180 |
|
173 |
} );
|
181 |
} );
|
174 |
|
182 |
|
175 |
} );
|
183 |
} );
|
176 |
|
184 |
|
- |
|
185 |
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_layer = document.getElementById('wpsg_mod_paypalapi_giropay_aktiv_layer');
|
- |
|
188 |
|
- |
|
189 |
el_wpsg_mod_paypalapi_plus_aktiv.addEventListener('change', event => {
|
- |
|
190 |
|
- |
|
191 |
if (el_wpsg_mod_paypalapi_plus_aktiv.checked) {
|
- |
|
192 |
|
- |
|
193 |
el_wpsg_mod_paypalapi_giropay_aktiv.disabled = true;
|
- |
|
194 |
el_wpsg_mod_paypalapi_giropay_aktiv.checked = false;
|
- |
|
195 |
|
- |
|
196 |
} else {
|
- |
|
197 |
|
- |
|
198 |
el_wpsg_mod_paypalapi_giropay_aktiv.disabled = false;
|
- |
|
199 |
|
- |
|
200 |
}
|
- |
|
201 |
|
- |
|
202 |
});
|
- |
|
203 |
|
- |
|
204 |
el_wpsg_mod_paypalapi_giropay_aktiv.addEventListener('change', event => {
|
- |
|
205 |
|
- |
|
206 |
if (el_wpsg_mod_paypalapi_giropay_aktiv.checked) {
|
- |
|
207 |
|
- |
|
208 |
el_wpsg_mod_paypalapi_giropay_aktiv_layer.style.display = 'block';
|
- |
|
209 |
|
- |
|
210 |
} else {
|
- |
|
211 |
|
- |
|
212 |
el_wpsg_mod_paypalapi_giropay_aktiv_layer.style.display = 'none';
|
- |
|
213 |
|
- |
|
214 |
}
|
- |
|
215 |
|
- |
|
216 |
});
|
- |
|
217 |
|
- |
|
218 |
el_wpsg_mod_paypalapi_plus_aktiv.dispatchEvent(new Event('change'));
|
- |
|
219 |
el_wpsg_mod_paypalapi_giropay_aktiv.dispatchEvent(new Event('change'));
|
- |
|
220 |
|
177 |
</script>
|
221 |
</script>
|
178 |
|
222 |
|