OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Featured Categories

This topic contains 1 reply, has 2 voices, and was last updated by Michael Michael 1 year, 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
  • #39037


    I have Main categories (Approximately 15 and this can increase), and within each category, there are subcategories.

    However, on the front end Featured Categories Container block shows 7 categories only and those too are a mix of some main categories and some subcategories.

    I intend to have all my MAIN categories to show directly in the featured Category container. How can i achieve this in oro.

Viewing 1 replies (of 1 total)
  • Author
  • #39038

    The categories that are featured on the homepage are specified directly in the storefront theme layout here – https://github.com/oroinc/orocommerce/blob/3.1.7/src/Oro/Bundle/CatalogBundle/Resources/views/layouts/blank/oro_frontend_root/default.yml#L24-L26

    You can override the list in your custom storefront theme:

    You can also create your own dataprovider (similar to https://github.com/oroinc/orocommerce/blob/3.1.7/src/Oro/Bundle/CatalogBundle/Resources/config/layout.yml#L54-L64), which in its data retrieval method will employ some business logic on automatically determining which categories should be featured based on some criteria instead of specifying them manually in the layout.

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