Skip to content
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

Addresses limit #58

Open
fishwolf opened this issue Apr 29, 2021 · 1 comment
Open

Addresses limit #58

fishwolf opened this issue Apr 29, 2021 · 1 comment

Comments

@fishwolf
Copy link

fishwolf commented Apr 29, 2021

Post /user/me api now manage only one address as default shipping and one address as default billing.

the address is entered only if it has the flag default_shipping or default_billing is set to true, if the flags are absent, the address is not insert.

I have added to UserController.php this code:

if($updatedAdress["default_billing"] == false && $updatedAdress["default_shipping"] == false) { $bAddress = Mage::getModel("customer/address"); $updatedAdress["parent_id"] = $customer->getId(); $bAddress->setData($updatedAdress)->save(); }

Insert please in next version

Thanks

@fishwolf
Copy link
Author

Other limit/bug if set the same address as default billing and shipping the address is duplicate.

If this both default to magento, the get /user/me return only default_billing = true

my implementation
UserMe.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant