OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Customizing frontend product search grid

This topic contains 2 replies, has 2 voices, and was last updated by  Frank 1 month, 4 weeks ago.

  • Creator
    Topic
  • #40276

    Frank
    Participant

    Hi there,

    a small but a little bit strange topic appears, when I modify frontend-product-search-grid as follows:

    What I have done, was
    1) Added to select-node (line 20):
    – text.owner as owner
    2) Added to columns (lines 31-34):
    owner with label-, and renderable-properties

    Nothing more!
    It is completely independent from touching the layout-files or not.

    And this is, what came out (screenshot):
    https://snipboard.io/SksY8w.jpg

    -> Some Owner-Output (Acme, General … Acme, West … etc ) below the grid-tyle.

    To give you a html-snippet of a part related to this output (screenshot):
    https://snipboard.io/K7UfCy.jpg

    What could be the reason for that unnecessary output? How I can avoid this?

    Thanks a lot
    Frank

    If I remmove the columns statement with owner and its properties from datagrids.yml there is no wrong owner output anymore.
    But however I can’t pass owner to the layout then anymore too …

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #40349
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Frank,

    New data grids columns are added automatically to the grid, but you can remove them with the layout update “@remove” action, here is an example:

    https://github.com/oroinc/orocommerce/blob/master/src/Oro/Bundle/CatalogBundle/Resources/views/layouts/blank/oro_catalog_frontend_product_allproducts/product_index.yml#L44

    #40433

    Frank
    Participant

    Oooops! Have added lines 13,14 …

    … and, additional display of my owner-property was removed!!!

    IT WORKS.

    Thank you Andrey. Great help.

    Kind regards
    Frank

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

You must be logged in to reply to this topic.

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

Yes No