From 620339a42c71de7a484e5640aecdb9636b647c28 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Wed, 2 Nov 2022 22:50:06 +0100 Subject: [PATCH] destroy input validator in checkout user login form --- .../blocks/page/checkout/inc/checkout_options_login.tpl | 7 +++++++ src/metadata.php | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 src/Application/views/blocks/page/checkout/inc/checkout_options_login.tpl diff --git a/src/Application/views/blocks/page/checkout/inc/checkout_options_login.tpl b/src/Application/views/blocks/page/checkout/inc/checkout_options_login.tpl new file mode 100644 index 0000000..63762d3 --- /dev/null +++ b/src/Application/views/blocks/page/checkout/inc/checkout_options_login.tpl @@ -0,0 +1,7 @@ +[{$smarty.block.parent}] + +[{capture name="d3JsFnc"}][{strip}] + [{* remove jqBootstrapValidation *}] + $("input,select,textarea").jqBootstrapValidation("destroy"); +[{/strip}][{/capture}] +[{oxscript add=$smarty.capture.d3JsFnc}] \ No newline at end of file diff --git a/src/metadata.php b/src/metadata.php index 200ddc7..911578b 100755 --- a/src/metadata.php +++ b/src/metadata.php @@ -140,6 +140,11 @@ $aModule = array( 'template' => 'widget/header/servicebox.tpl', 'block' => 'widget_header_servicebox_items', 'file' => 'Application/views/blocks/widget/header/widget_header_servicebox_items.tpl', + ], + [ + 'template' => 'page/checkout/inc/options.tpl', + 'block' => 'checkout_options_login', + 'file' => 'Application/views/blocks/page/checkout/inc/checkout_options_login.tpl', ] ] ); \ No newline at end of file