Whats the Problem?
Users needed the ability to update their profile details easily, but the functionality was split between multiple pages. Our goal was to combine these capabilities into a unified profile management section to ensure a seamless and efficient user experience.
The Solution
Custom Gravity Form Integration:
- A custom form created with Gravity Forms was integrated into the profile management page.
- This form includes fields for photo, name, role, and organization type, allowing users to update their profile information directly.
- WooCommerce Memberships Plugin:
WooCommerce Memberships Plugin:
- The custom form utilizes the Gravity Forms User Registration add-on to ensure profile updates are correctly applied to the user’s account.
Implementation Steps
Overriding the Template File:
- Copied
my-profile-fields.php
from the WooCommerce Memberships plugin to the child theme directory:child-theme/woocommerce/myaccount/my-profile-fields.php
. - Modified the copied template to replace its content with our custom Gravity Form.
<?php echo do_shortcode('[gravityform id="35" title="true"]'); ?>
Creating and Configuring the Gravity Form:
- Designed a Gravity Form (ID: 35) with fields for photo, name, role, and organization type.
- Configured the form to use the Gravity Forms User Registration add-on to update user profile information upon submission.
Approval and Testing
- Client Approval: The proposed changes were submitted to the client for review. After thorough testing and validation, the client approved the enhancements.
- Deployment: The updated template and integrated Gravity Form were deployed to the live site, ensuring users can now manage their profile details in one place.