OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Quick order form: how to change default button?

This topic contains 2 replies, has 2 voices, and was last updated by  Mauro Chojrin 1 month, 1 week ago.

  • Creator
    Topic
  • #40417

    Mauro Chojrin
    Participant

    Hi:

    I’m trying to change the default button on the quick order form from “Add to…” (Shopping list) to “Create order”.

    Is there a way to do this without modifying the code?

    Thanks!

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

    Hi Mauro,
    Maybe I understand you wrong, but there is no default button on a quick order form, and the shopping list button just highlighted with a CSS class “btn–info”, nothing more.

    Is there a way to do this without modifying the code?

    No,
    If you want to change the style of the buttons to remove btn–info class from the shopping list button and add it to the create order button from the code – you can override the template that renders “add to shopping list” button
    vendor/oro/commerce/src/Oro/Bundle/ShoppingListBundle/Resources/views/Action/buttons.html.twig
    and update frontend_options of start_from_quickorderform transition in a checkout workflow.

    #40434

    Mauro Chojrin
    Participant

    Got it. Thanks for the clarification :)

    In order to override that template, should I create a new Bundle?

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