Closed sapayth closed 3 months ago
The recent changes enhance the user experience by modifying AJAX functionality and improving script localization, particularly for billing address handling. The updates streamline data retrieval related to states and ensure users receive helpful notifications about required fields. Additionally, code formatting improvements enhance readability without impacting functionality.
File Path | Change Summary |
---|---|
includes/Ajax.php | Changed AJAX handler for wpuf_ajax_address from wpuf_get_child_cats to wpuf_ajax_get_states_field . |
includes/Frontend.php | Added localization for 'wpuf-billing-address' script to include AJAX URL and fill notice message. |
includes/Frontend/Frontend_Account.php | Reformatted parameters in billing_address_section method for improved readability without logic changes. |
templates/dashboard/billing-address.php | Removed an empty line before a conditional statement checking a POST variable, focusing on code formatting. |
sequenceDiagram
participant User
participant Frontend
participant AjaxHandler
participant StatesData
User->>Frontend: Request billing address
Frontend->>AjaxHandler: wpuf_ajax_address
AjaxHandler->>StatesData: Get states data
StatesData-->>AjaxHandler: Return states
AjaxHandler-->>Frontend: Send states data
Frontend-->>User: Display billing address options
Objective | Addressed | Explanation |
---|---|---|
Add Time only to Date/Time field (#[584]) | ❌ | The changes do not include a time-only option. |
🐰 In the meadow, changes are bright,
Enhancing the forms, making things right.
With states now in view and messages clear,
Users will find their journey less drear.
Hops of joy with every new line,
Celebrating code that’s simply divine! 🌸
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Options in State field is not changing according to the selected Country while setting up billing address.
Issue: In frontend, options in State field is not changing
Scenario:
Go to frontend as an logged-in user Go to account page Click on billing address Set country from country field except USA Observe State/Province/Region field Expected behaviour: Should be able to set the state according to the selected country
fixes #584
Summary by CodeRabbit
New Features
Style