CRM-20610 make it possible to enable the payment form #11748
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This makes is possible via hook or by changing core to switch to using the payment form for payments without actually making that change
Before
Contribution form is unchanged
After
Contribution form is unchanged UNLESS you use a hook or we agree to switch core to turn on the change by adding one additional tpl var - see https://github.com/civicrm/civicrm-core/pull/10776/files#diff-0573f78042d230ffc1d5e61c1749ae77R235
Technical Details
This is the material change from #10776 without resolving the decision as to whether we we 'turn this change on' - or allow people to opt in. One idea I have is that the LineItemEdit extension ALSO turn this on (by the above line to that extension). My feeling is that we should be moving towards a) shipping line item edit enabled in all dev builds with a view to doing so in core (or at least new installs) once we are comfortable and b) turning this on in all dev builds with a view to turning on for new installs once we are comfortable - ie. roll out to devs first & then work outwards.
Both the line item edit form and the payment edit are IMHO very important for getting us out of our whackamole on bugs that relate to the contribution form & unfortunately I think stalling on #10766 cost us heavily but @monishdeb I think you can merge this & then we can discuss - with @JoeMurray @lcdservices @colemanw & others whether to add to line item edit or find another way to grandfather it in
Comments
Screenshots & detail are in the mentioned PR