ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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

  • Creator
    Topic
  • #35402
    mlozynskyy
    mlozynskyy
    Participant

    Hello,
    I have extended Datagrid : frontend-product-search-grid as mine product-frontend-variants, and after I want to add a column to that grid by the listener:
    Fragment of code:

    And column does not show in the grid. But dump(‘asd’) for the template ‘QWEProductAttrBundle:Datagrid:Column/productAttributes.html.twig’ is working.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #35403
    iantypenko
    iantypenko
    Participant

    Hi mlozynskyy

    Which version of application are you using? Is this a orocommerce app or something else?
    I don’t see datagrid with name “product-frontend-variants” in our code.
    Is it your own datagrid?

    #35404
    mlozynskyy
    mlozynskyy
    Participant

    Please search:
    frontend-product-search-grid

    Because I did something like that:

    #35406
    iantypenko
    iantypenko
    Participant

    Please answer the question:

    Which version of application are you using? Is this a orocommerce app or something else?

    #35407
    mlozynskyy
    mlozynskyy
    Participant

    Yes it is Orocommerce,
    oro/commerce 1.1.2

    #35408
    iantypenko
    iantypenko
    Participant

    All frontend in orocommerce rendered via layouts (even this datagrid).
    You need to write layout for your new column and render it via layouts.

    Look at existing layout configuration for this grid:
    https://github.com/orocommerce/orocommerce/tree/1.1/src/Oro/Bundle/ProductBundle/Resources/views/layouts/default/imports/oro_product_grid

    JFYI, orocommerce 1.1.x is not supported anymore.
    Look at release schedule:

    Release Process

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

You must be logged in to reply to this topic.