From d7d7dde7b73714afc4e063b7f07edd6a5abb65a0 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 5 Apr 2019 12:10:45 +1300 Subject: [PATCH] Allow payment processors to enable validate.tpl From https://github.com/eileenmcnaughton/nz.co.fuzion.omnipaymultiprocessor/issues/106 I found that I couldn't enable our validation from the payment processor currently. It's a bit immature in that our front end presentation is poor,but this allows us to start improving that --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 2ac32e12774e..838743a21760 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -415,5 +415,9 @@ {/if} {* jQuery validate *} -{* disabled because more work needs to be done to conditionally require credit card fields *} -{*include file="CRM/Form/validate.tpl"*} +{* disabled because originally this caused problems with some credit cards. +Likely it no longer has an problems but allowing conditional + inclusion by extensions / payment processors for now in order to add in a conservative way *} +{if $isJsValidate} + {include file="CRM/Form/validate.tpl"} +{/if}