OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce How to add filter over products list ?

This topic contains 2 replies, has 2 voices, and was last updated by  yannick.simon 6 years, 12 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
  • #31674

    yannick.simon
    Participant

    Hello

    I am trying orocommerce 1.10, ubuntu 16, php 7, mysql

    i managed to create some products attributes (for instance : color as a single select list, with some options as values yellow, red, etc …)

    each time i am asked if i want to make this attribute visible (on search, on list …) i choose “yes”

    i understood i had to update database schema in order to keep on going

    i managed to add this attribute into the default product family list

    it’s ok, i can select a value for this attribute each time i create a product

    but, now, i’d want this select value to be display into the filters over a category’s list of products … how can i di that please ?

    but i still have “sku”, “name” or “price” filters ….
    attributes filter

    i’d like to be able to filter by “color” (i am sure i have differents products with different values for this attribute)

    can you help me please ?

    thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #31675

    wgozdzicki
    Participant

    Hello Simon,
    This functionality, probably, will be added at following release. Now it’s possible to add it manually as a text filter.

    In order to add text filter manually you have to:

    1. Add values to indexation in WebsiteSearchProductIndexerListener, for example:

    2. Modify datagrids.yml:

    3. Modify website_search.yml:

    To reindex values there is console command: https://github.com/orocommerce/orocommerce/blob/master/src/Oro/Bundle/WebsiteSearchBundle/Resources/doc/console_commands.md

    Best regards

    #31676

    yannick.simon
    Participant

    Thank you wgozdzicki !
    i’ll try asap ! ;-))))

Viewing 2 replies - 1 through 2 (of 2 total)

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

Back to top