OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce How To understand Product Bundle in orocommerce

This topic contains 5 replies, has 2 voices, and was last updated by  Yevhen Shyshkin 2 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
  • #37950

    Ingole Avinash

    Hi, This is Avinash
    I,am a beginner at Orocommerce
    Can anybody explain me how to understand complete flow of productbundle
    from front-end to backend. i read out documentation but i failed to understand.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
  • #37951

    Yevhen Shyshkin

    Hello Avinash.

    Product bundle is responsible for storing of product related information (product itself, images, units etc) and managing it.

    Bundle itself is participated in multiple business processes. Could you please clarify which business process do you have in mind?


    Ingole Avinash

    Hello ,Yevhen

    I want to understand the logic behind,from where the products are displaying to frontstore in orocommerce.
    could you please help me to make me understand.i want to understand the from which page its executing ?


    Yevhen Shyshkin

    Products at front office are rendered in multiple places.

    1) Main product grid (product listing, PLP etc) – renders grid of products that has pagination, filters and sorters. Datagrid used to render it is called frontend-product-search-grid and defined here: https://github.com/oroinc/orocommerce/blob/3.1.0-rc/src/Oro/Bundle/ProductBundle/Resources/config/oro/datagrids.yml#L736-L796 . This grid is extended by multiple listeners that adds additional filters, additional sorters, prices, shopping lists etc. This grid is usually rendered using oro_product_frontend_product_index route from this controller: https://github.com/oroinc/orocommerce/blob/3.1.0-rc/src/Oro/Bundle/ProductBundle/Controller/Frontend/ProductController.php#L18-L37 . This page is also used to render global search results.

    2) Product view page (product information page, PDP etc) – renders information about one specific product. It is rendered using oro_product_frontend_product_view route from this controller: https://github.com/oroinc/orocommerce/blob/3.1.0-rc/src/Oro/Bundle/ProductBundle/Controller/Frontend/ProductController.php#L39-L103

    3) Simplified product listing (e.g. Featured products at the root page) – renders short list of products without ability to paginate, sort of filter them. It is rendered using oro_product_list layout import. Here you may see how it is done: https://github.com/oroinc/orocommerce/blob/3.1.0-rc/src/Oro/Bundle/ProductBundle/Resources/views/layouts/blank/oro_frontend_root/featured_products.yml

    Of course there are other places where products are rendered, but they are handled from other bundles. You may find them by checking an appropriate route and associated layout updates.

    Please let me know if you have other questions.


    Ingole Avinash

    Thank you so much for you help.
    but i am unable to find the logic for,when i run -> then products will be displyed like featured category and new arrivals.where is the logic for that? from where they are displaying.? and can you help me to find displaying configurable products logic ?

    very Thanks in Adavance.


    Yevhen Shyshkin

    Featured categories and new arrivals are just two product subsets rendered as simplified product listings here and here. You may also check layout import oro_product_list used in both of these places and data providers featured_products and new_arrivals.

    Configurable product is just a type of a standard product and information about product variants is rendered using either main product grid or product view page. By default product grid does not render product variants. Here is form rendered at product view page, pay attention to context variable product_type. You may also check oro_product_configurable_products data provider user to get information about configurable products at other bundles.

    General recommendation – if you want to understand where each specific block is coming from then use layout tree at debug toolbar and debug block information. This article describes how to do that.

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

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

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

Yes No