The Add Name to Checkout Add On allows you to capture the member’s first and last name at membership checkout. v.4 of the Add On includes enhanced security through proper value sanitization, style classes to better mirror the default PMPro checkout boxes, translation prep, and improved handling for cases where a logged in users couldn’t update fields.
About the Add On
The Add Name to Checkout Add On is designed to help membership sites easily capture the member’s first and last name. It is particularly useful when using an offsite gateway like PayPal where these details are not generally captured.
View the Add OnThe full list of changes is detailed below:
- SECURITY: Properly sanitizing and escaping user input.
- BUG FIX/ENHANCEMENT: Using
pmpro_getClassForField()
to set class attributes on field tags. (Thanks, Ted Barnett) - BUG FIX/ENHANCEMENT: Added
pmpro_checkout-field
classes and others to wrapping divs for field to match the core PMPro checkout fields and allow for easier styling. (Thanks, Mark Bloomfield) - BUG FIX/ENHANCEMENT: Using
trim()
when checking name fields to disallow blank names. - ENHANCEMENT: Make Add On translation ready. (Thanks, Thomas Sjolshagen)
- ENHANCEMENT: WordPress coding standards.
- FEATURE: Now showing the User Information section with name fields if a user is already logged in at checkout.