OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce how to have different featured category view to different customer group

This topic contains 1 reply, has 2 voices, and was last updated by  igalayev 6 years, 3 months ago.

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

  • Creator
    Topic
  • #32605

    saqibbhat96
    Participant

    hello guys,

    I have 16 catogories and want to show them on featured categories front end view to separate customer group 8 each

    right now Customer group 1 and customer group 2 see the first 8 categories in the frontend.

    if I hide the first 8 categories to customer group 2, and keep the 2nd 8 categories visible to them they cannot see anything.

    this raises the question, how to bring 2nd 8 categories to map to customer group 2 to view and have separate featured categories?

    Any suggestion would be helpful
    thanks

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #32606

    igalayev
    Participant

    Hi,
    currently featured categories are displayed in this layout update file.

    To replace them by others you need to create layout update file in same directory which will change categories ids for this block.
    Here’s an example of such layout update file which shows only 4 featured categories:

    This layout update needs show_alternative_featured_categories context configurator which would contain logic to determine whether to substitute featured categories (checking for appropriate user’s group in your case).

    For implementation details of ContextConfigurator please look at example and layout bundle documentation for deeper understanding.

Viewing 1 replies (of 1 total)

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

Back to top