OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Featured Categories

This topic contains 1 reply, has 2 voices, and was last updated by Michael Michael 5 months, 1 week ago.

  • Creator
    Topic
  • #39037

    snb-me
    Participant

    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
    Replies
  • #39038
    Michael
    Michael
    Keymaster

    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)

You must be logged in to reply to this topic.

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

Yes No