-
Notifications
You must be signed in to change notification settings - Fork 195
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
Feature: add Form Field Manager license UI to additional fields placeholder #7814
base: develop
Are you sure you want to change the base?
Conversation
@@ -66,6 +67,7 @@ public function storageData(int $donationFormId): array | |||
], | |||
'formFieldManagerData' => [ | |||
'isInstalled' => defined('GIVE_FFM_VERSION'), | |||
'isLicensed' => (bool) Give_License::get_license_by_plugin_dirname('give-form-field-manager'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this returns data about the license. Do we need to check if the license is valid or anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, yea we should. 55d9685
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoshuaHungDinh looks good, nice job!
Resolves GIVE-1011
Description
This PR updates the additional fields placeholderr UI to consider users that may have a valid license that includes form-field-manager but have not yet installed it.
Affects
Donation Form Builder -> left sidebar blocks
Visuals
Testing Instructions
all_access_pass
pass & FFM not installed -> you should see the conditional UI with a link directing user to download their additional fields from Givrwp.com.Note: all_access_pass is given to users with Plus, Pro & Agency plans.
Pre-review Checklist
@unreleased
tags included in DocBlocks