Skip to content

Addresses limit #58

@fishwolf

Description

@fishwolf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions