OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce How to save the billing address or shipping address in checkout

This topic contains 6 replies, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 10 months, 3 weeks ago.

  • Creator
    Topic
  • #33225

    bihucn
    Participant

    Hi,
    When I am logged in, I created a new order, then I go to checkout.In Checkout, I want to save a new address to my account, but i have not see any checkbox that can do it. I have checked the source code, i found some code about save address. But it does not seem to take effect.
    The file is : vendor/oro/commerce/src/Oro/Bundle/CheckoutBundle/Resources/views/layouts/default/oro_checkout_frontend_checkout/templates/address.html.twig, Line: 96-100

    So , how can i show the form???

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #33226

    bihucn
    Participant

    Sorry, i see the “form_row(save_address_checkbox)” was a hidden input tag. and the value was “0”, when the value was 1, it can save the address to my account.so, I want to know where its value comes from? from the workflow?? Can you give some detailed instructions please?
    Thank you.

    #33227
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    These checkboxes should be shown when you are creating new addresses and they control saving this new addresses that you are typing.
    save billing address checkbox
    Same for billing or shipping address

    #33228

    bihucn
    Participant

    Hi, Andrey
    I did use the new address, but only the “Ship to this address” checkbox, no save address.
    Should I do some configuration?

    #33229
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    What role does your logged in user have?
    Or you work as an anonymous?

    #33230

    bihucn
    Participant

    Hi,
    i tested as an anonymous and as a login user, and the login user’s role is “Buyer”

    #33231
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Saving addresses for Buyer role is disabled by default.
    To enable this feature go to:
    Customers/ Customer User Roles / Buyer / Edit page and enabled Create permissions for Customer User Address and Customer Address entities.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No