MM-189: Expose membership fee token for webform calculator formula field #78
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 PR changes allow the membership fee field available as token to further used in the webform calculator formula field as token.
Detailed Specs: https://compucorp.atlassian.net/wiki/spaces/DruStandard/pages/5111676967/Membership+Tokens
D7 or D8?
D7
Before
How It Currently Works
After
How It is working now
Test.Membership.Discount._.Site-Install.mp4
Technical Details
membership_fee_amount_from_membership
under utils.inc.findMemberships
method$membership['fee_amount_from_membership'] = number_format($this->getMembershipTypeField($membership['membership_type_id'], 'minimum_fee'), 2);
membershipTypeFeesUpdate
to handle the ajax request for autofilling the membership fee field when changed the membership type field.getMembershipFees
underincludes/wf_crm_webform_ajax.inc
file.