-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Enabling Individual Editing of Shipping and Billing Addresses from the Customer Dashboard #38677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.4-develop
Are you sure you want to change the base?
Enabling Individual Editing of Shipping and Billing Addresses from the Customer Dashboard #38677
Conversation
Hi @Franciscof-Serfe. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento I'm working on it |
@magento create issue |
PR status update:
Test:
testing.mp4@ihor-sviziev , @engcom-Bravo , @engcom-Delta Can you move forward with this? Thanks. |
Hello @Franciscof-Serfe, Kindly resolve the PR conflicts so we can proceed with further processing. In the meantime, we are moving this PR to "On Hold." Thanks |
Hi @engcom-Hotel, The test status review is available in this comment: Please let me know if you need any further action from me. |
bb382f8
to
6eb70f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be a little typo here?
app/code/Magento/Customer/view/frontend/templates/address/book.phtml
Outdated
Show resolved
Hide resolved
Hello @Franciscof-Serfe, Thanks for the contribution! Since this PR contains a new feature, we are marking this PR as a Thanks |
Hi @engcom-Hotel , I’d see something like adding profile pictures to customer accounts or address validation as a new feature. But in this case, the "Change Billing Address" and "Change Shipping Address" buttons already existed. This PR simply fixes them so they work as expected. Thanks for reviewing and helping to clarify this. Best regards, |
@engcom-Hotel I agree with @Franciscof-Serfe, this is a UI improvement so things work as expected, not a new feature. |
Hello @Franciscof-Serfe @markshust, Since this PR enhances an existing feature of Magento and is not a bug, we have classified it as a This change will impact the user experience, which is why we require PO approval to proceed further. Rest assured, we are actively working on this PR and will provide you with updates shortly. Thanks |
Failed to run the builds. Please try to re-run them later. |
1 similar comment
Failed to run the builds. Please try to re-run them later. |
@magento run all tests |
…to customer-dashboard-split-new-address
6267d4c
to
0d57587
Compare
@magento run all tests |
Hello @Franciscof-Serfe, The approval on this feature request has been received from the PO. Hence moving further with the PR. Thanks |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @Franciscof-Serfe,
Thanks for the contribution!
Please refer to the below review comments, and it seems some functional tests are failing due to this change, please fix them as well.
Also please add some automated test for this PR change.
Thanks
'customer/address/formPost', | ||
['_secure' => true, 'id' => $this->getAddress()->getId()] | ||
); | ||
$queryParams = ['_secure' => true]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can simplified this section as follows:
$queryParams = ['_secure' => true];
// Consolidate $defaultShipping and $defaultBilling conditions
if ($defaultShipping == 1) {
$queryParams['default_shipping'] = 1;
}
if ($defaultBilling == 1) {
$queryParams['default_billing'] = 1;
}
// Add 'id' parameter only if the address is not both default billing and shipping
if (!$this->getAddress()->isDefaultBilling() || !$this->getAddress()->isDefaultShipping()) {
$queryParams['id'] = $this->getAddress()->getId();
}
// URL construction remains in a single block
$postURL = $this->_urlBuilder->getUrl(
'customer/address/formPost',
$queryParams
);
Just a sample code, just check the condition before implementing the same.
* @return string | ||
*/ | ||
public function getSaveUrl() | ||
public function getSaveUrl($defaultShipping = 0, $defaultBilling = 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maintain backward compatibility for the getSaveUrl method by deprecating the old method and introducing a new one
@magento run all tests |
Hello @Franciscof-Serfe, It seems the automated tests are still failing due to the changes please check those as well and please add some automated test in accordance to the DOD. Thanks |
Hi @engcom-Hotel , Regards, |
Description (*)
We propose an enhancement to the Magento customer dashboard's address management functionality.
Currently, when adding an address, it defaults to both billing and shipping. However, distinguishing between them becomes confusing for clients, as editing one address impacts both. This native workflow requires generating a new address to differentiate between default shipping or billing. Our enhancement streamlines this process by allowing direct individual editing of billing and shipping addresses, thereby simplifying the user experience for logged-in clients.
Video 1: "Native Magento Flow: Editing Billing and Shipping Addresses"
NativeMagento.webm
Video 2: "Improvement Proposal: Individual Editing of Billing and Shipping Addresses"
addressImprovement.webm
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: