impress-org / givewp

GiveWP - The #1 Donation Plugin for WordPress. Easily accept donations and fundraise using your WordPress website.
https://givewp.com/
GNU General Public License v3.0
344 stars 191 forks source link

fix(donor): ensure first and last names are populated correctly #2764

Closed raftaar1191 closed 5 years ago

raftaar1191 commented 6 years ago

Issue Overview

In the Donation form first and last name fields the value is not being picked from Donor table instead of we are picking the value from Wp user table

Video Link: https://screencast-o-matic.com/watch/cFnnIIoa56

Line Number: https://github.com/WordImpress/Give/blob/release/2.0.3/includes/forms/functions.php#L987

image

image

image

image

Expected Behavior

We should user Give Donor first name and last name instead of WP user first name and last name

Current Behavior

Picking the first name and last name from Wp user table

Steps to Reproduce (for bugs)

See the Video

Related PR and issues

https://github.com/WordImpress/Give/issues/697

Todos

WordPress Environment

``` ### WordPress Environment ### Home URL: http://give18.local Site URL: http://give18.local WP Version: 4.9.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: ✔ WP Cron: ✔ Language: en_US Permalink Structure: /%year%/%monthnum%/%day%/%postname%/ Show on Front: posts Table Prefix Length: wpgive_ Table Prefix Length: 7 Table Prefix Status: Acceptable Admin AJAX: Accessible Registered Post Statuses: publish, future, draft, pending, private, trash, auto-draft, inherit, refunded, failed, revoked, cancelled, abandoned, processing, preapproval ### Server Environment ### Hosting Provider: DBH: localhost, SRV: give18.local TLS Connection: Connection uses TLS 1.2 TLS Connection: Probably Okay Server Info: nginx/1.10.1 PHP Version: 7.0.3 PHP Post Max Size: 1,000 MB PHP Time Limit: 900 PHP Max Input Vars: 3000 PHP Max Upload Size: 1,000 MB cURL Version: ❌ 7.38.0, OpenSSL/1.0.1t - We recommend a minimum cURL version of 7.40. SUHOSIN Installed: – MySQL Version: ❌ 5.5.55 - We recommend a minimum MySQL version of 5.6. See: WordPress Requirements Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ gzip: ✔ GD Graphics Library: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Give Configuration ### Give Version: 2.0.2 Give Cache: Enabled Database Updates: All DB Updates Completed. Give Cache: Enabled Give Cache: ✔New Donation✔Donation Receipt✔New Offline Donation✔Offline Donation Instructions✔New User Registration✔User Registration Information✔Email access Upgraded From: – Test Mode: Enabled Currency Code: USD Currency Position: Before Decimal Separator: . Thousands Separator: , Success Page: http://give18.local/donation-confirmation/ Failure Page: http://give18.local/donation-failed/ Donation History Page: http://give18.local/donation-history/ Give Forms Slug: /donations/ Enabled Payment Gateways: Test Donation, Offline Donation Default Payment Gateway: Test Donation PayPal IPN Verification: Enabled PayPal IPN Notifications: N/A Donor Email Access: Enabled ### Session Configuration ### Give Use Sessions: Enabled Session: Disabled ### Active Give Add-ons ### ### Other Active Plugins ### ### Inactive Plugins ### Duplicate Post: by Enrico Battocchi – 3.2.1 Give - 2Checkout Gateway: by WordImpress – 1.0.2 Give - Authorize.net Gateway: by WordImpress – 1.3.2 Give - AWeber: by WordImpress – 1.0.2 Give - Braintree Gateway: by WordImpress – 1.1.1 Give - CCAvenue Gateway: by WordImpress – 1.0 Give - ConvertKit: by WordImpress – 1.0.1 Give - CSV Toolbox: by WordImpress – 1.0 Give - Development Plugin: by Raftaar1191 – 1.0.0 Give - Display Donors: by WordImpress, LLC – 1.0 Give - Dwolla Gateway: by WordImpress – 1.1.2 Give - Email Reports: by WordImpress – 1.0 Give - Fee Recovery: by WordImpress – 1.3.8 Give - Form Countdown: by WordImpress – 1.0 Give - Form Field Manager: by WordImpress – 1.2.4 Give - Gift Aid: by WordImpress – 1.1 Give - Google Analytics Donation Tracking: by WordImpress – 1.1.1 Give - MailChimp: by WordImpress – 1.3.7 Give - Manual Donations: by WordImpress – 1.2.2 Give - Paymill Gateway: by WordImpress – 1.1 Give - PDF Receipts: by WordImpress – 2.2.4 Give - Recurring Donations: by WordImpress – 1.5.4 Give - Stripe Gateway: by WordImpress – 1.5.2 Give - Tributes: by WordImpress – 1.3.6 Loco Translate: by Tim Whitlock – 2.0.17 WooCommerce: by Automattic – 3.2.6 WP Hide & Security Enhancer: by Nsp Code – 1.4.7.6 WPS Hide Login: by Remy Perona for WPServeur – 1.2.1 ### Active MU Plugins ### wp-hide-loader.php: by – ### Theme ### Name: Twenty Seventeen Version: 1.4 Author URL: https://wordpress.org/ Child Theme: No – If you're modifying Give on a parent theme you didn't build personally, then we recommend using a child theme. See: How to Create a Child Theme ```
DevinWalker commented 6 years ago

Good catch @raftaar1191

raftaar1191 commented 6 years ago

Ignore this issues for now as we are going to redesign the form API. Discuss on slack

Slack Link: https://givewp.slack.com/archives/C0FAGC83C/p1518073560000156

mikejhale commented 5 years ago

Closing as this will be addressed in the new Campaign Builder