OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce How to remove the predefined menus?

This topic contains 1 reply, has 2 voices, and was last updated by Yevhen Shyshkin Yevhen Shyshkin 4 years, 2 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #31179

    Hi sir,

    I installed orocommerce without loading the demo data. However when I view the frontend, I see some predefined menus in header and footer.

    I want to remove the menus in header and footer area.

    I extended the “OroB2BMenuBundle” in my own custom bundle:

    Then I copy the folder the migrations folder from “oro\commerce\src\OroB2B\Bundle\MenuBundle\Migrations\Data\ORM\LoadMenuItemData.php” to my custom bundle(“src\Appterra\MenuBundle”) to remove the predefined menus. I comment the lines below”

    Then i run the console command: php app/console oro:migrations:load.

    But it did not remove those menus. Did I miss something?

    How can I removed them and make my own menus in header and footer?

    Thank you.

Viewing 1 replies (of 1 total)
  • Author
  • #31180
    Yevhen Shyshkin
    Yevhen Shyshkin


    If you want to remove menus completely you have to use layout updates and remove appropriate blocks from the layout.

    If you want to remove only some menu items then you have to add new migration fixture in your bundle, alter menu items and make sure your bundle is loaded after MenuBundle.

Viewing 1 replies (of 1 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

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

Yes No