diff options
| author | Jean-Luc Beer <noreply@maennchen1.de> | 2025-05-22 05:51:02 +0000 |
|---|---|---|
| committer | Jean-Luc Beer <noreply@maennchen1.de> | 2025-05-22 05:51:02 +0000 |
| commit | e0aa235a7904564ac40143771f24325cc92f1c87 (patch) | |
| tree | aec649daf8089805ac744684f8177ed1c26a256e | |
| parent | f75d526dd5eefcabeec4459ac50414661e7cf047 (diff) | |
Warenkorb Bankeinzug Eingabefelder fix
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8494 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/warenkorb/checkout2.phtml | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/views/warenkorb/checkout2.phtml b/views/warenkorb/checkout2.phtml index 38a8cd4..97160b9 100644 --- a/views/warenkorb/checkout2.phtml +++ b/views/warenkorb/checkout2.phtml @@ -109,7 +109,7 @@ <script type="text/javascript">/* <![CDATA[ */
const el_pppl_loading_blocker = document.getElementById('pppl_loading_blocker');
-
+
function wpsg_setShipPay(jqElement)
{
@@ -119,42 +119,46 @@ jqElement.find('input').prop('checked', true);
return true;
-
+
}
-
+
jQuery(document).ready(function() {
jQuery('.shippay_wrap .shippay_item_wrap').bind('click', function() {
+ if (jQuery(event.target).is('input, textarea, select')) {
+ return;
+ }
+
el_pppl_loading_blocker.style.display = 'block';
-
- wpsg_setShipPay(jQuery(this));
-
+
+ wpsg_setShipPay(jQuery(this));
+
jQuery.ajax( {
'url': wpsg_ajax.ajaxurl,
'method': 'get',
'data': {
'wpsg[action]': 'updateCheckout',
- 'wpsg_form_data': jQuery('#wpsg_checkout_form').serialize()
+ 'wpsg_form_data': jQuery('#wpsg_checkout_form').serialize()
},
'async': true,
'success': function(data) {
-
+
location.reload();
-
+
}
} );
-
+
} );
jQuery('.shippay_wrap .shippay_item_wrap').each(function() {
if (jQuery(this).find('input[type="radio"]').prop('checked')) wpsg_setShipPay(jQuery(this));
-
+
} );
-
+
} );
-
+
/* ]]> */</script>
</div>
\ No newline at end of file |
