Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroCommerce Adding attribute in checkout payment step

This topic contains 2 replies, has 2 voices, and was last updated by  Vincent Pietri 4 months, 3 weeks ago.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #32992
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Vincent,

    How can I alter an existing workflow (b2b_flow_checkout) to add my attribute?

    You can’t extend the workflow as the only way to modify it is create new workflow and use it instead of the built-in one.

    However payment methods itself are pretty extendable and you probably can do all the stuff without modifying workflow, check out the documentation first
    https://oroinc.com/b2b-ecommerce/doc/current/dev-guide/extend-and-customize/payment-method-add

    Also you can add new field to Order and Checkout entity from another bundle as extended fields using migrations, for example check how it’s done in InfinitePayBundle. Here vat_id added to Customer entity as extended field.

    #32993

    Vincent Pietri
    Participant

    Hi Andreys,

    I’ve already read the tutorial “Add a New Payment Method” but no found information how to add new fields.

    The bundle InfinitePayBundle seems to fit my needs.

    Many thanks for your quick answer.

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

You must be logged in to reply to this topic.

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

Yes No
ssossossossossosso