-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRM-21314 Credit card block missing from membership payment form: #11140
Conversation
@eileenmcnaughton thanks for the fix, after reviewing the code I think that billing block should be shown only in presence of Payment processor. so can you move that code under that
As I confirmed on all membership live mode for new and renewal, it'sworking fine |
If there is no payment processor then {if $paymentFields|@count} should be FALSE (BillingBlock.tpl) and no fields should show.... |
@eileenmcnaughton but it then affects the new membership form by needlessly rendering the payment fields (here check_number), see the effect on the test build site of this patch: As you can see w/o any membership selection check_number payment field is present and even worse, select any membership type and it's been rendered twice :p That's the issue why I earlier moved this template above in https://github.com/civicrm/civicrm-core/pull/10680/files#diff-96959461f2b6264e6d108d17c4160b65L110 but didn't knw it will affect renewal form too :( |
Hmm - I feel like the block should be robust enough to cope with being rendered anywhere- if we were not passing payment_instrument_id when one is not selected it might work? However, you have convinced me that for the rc we should go for your simpler suggestion |
Yes, but then we need to avoid setting payment_instrument default to |
I have tested this patch and it works for me, marked with |
Overview
Credit card section has gone missing from the backoffice renew membership by credit card page, this re-instates
Before
Space to enter credit card missing
After
block re-instated
@monishdeb