real-coder-pty-ltd / instant-digital-appraisal
Create Digital Appraisals for users, generate suburb reports using data from Pricefinder.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:wordpress-plugin
README
Create Digital Appraisals for users, generate suburb reports using data from Pricefinder.
You'll need:
- A Google Maps API Key with a billable account set up
- Pricefinder API subscription
- Gravityforms with Gravityforms Conversational forms addon (recommended)
- Advanced Custom Fields PRO
Installation
1. Install the plugin with Composer
composer require real-coder-pty-ltd/instant-digital-appraisal`
2. Add Credentials
Navigate to Tools -> Pricefinder DA Settings. Add Client ID, Secret, and Google Maps API key. Note: Ensure your Google Maps API key is set to use the Places API.
3. Create Lead Capture Form
Create a Gravityform that has a field called that can be dynamically populated. The value should be "address".
4. Shortcode
Add the shortcode for the autocomplete to your page
[pfda_address_form]
5. Set your Appraisal URL.
Navigate to the public class:
/wp-content/plugins/pricefinder-da/public/class-pricefinder-da-public.php
Update line 368
to the URL you put your Gravityform on. The default option is /gravity-forms-appraisal/
. If your page is called Digital Appraisal, the slug is probably "/digital-appraisal", etc.
6. Data Processing URL
For the Gravityform confirmation, point it to the processing file.
- In your form settings, click on
confirmations
, edit default confirmation. - change the type to "Redirect".
- Use the URL
http://{yourwebsitehere.com.au}/{content-dir}/plugins/instant-digital-appraisal/public/pricefinder-da-processor.php
. - Add Address from address field to query string. EG
address={Appraisal Address:4}
.
7. Configure Advanced Custom Fields
This plugin does not register them for you yet. You'll need to do this yourself.
Appraisal Fields Required
unique_id
-> textsuggest_result
-> textareademographics_result
-> textarealistings_result
-> textareasales_result
-> textarearentals_result
-> textareaproperty_result
-> textareaproperty_details
-> textarearental_sales_history
-> textareaavm_result
-> textareapricing_information
-> textareasuburb_response
-> textareasuburb_statistics
-> textareainvestment_potential
-> textareaschools_result
-> textareadata_dump
-> textareaschools
-> textarea
8. Summary
The flow goes like this:
- Add shortcode to any page
- Shortcode submits to your Gravityform to capture lead data
- On submit, data is sent to the
pricefinder-da-processor.php
file - data is saved in ACF Pro fields on the
appraisal
post type