OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Variable "organization_name" does not exist.

This topic contains 1 reply, has 2 voices, and was last updated by  wgozdzicki 6 years, 6 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
  • #32133

    Ayman Hussein
    Participant

    I created new controller and new view

    view:

    when try to access this action /GetProducts

    I got the following error:

    Variable “organization_name” does not exist.


    arh922

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

    wgozdzicki
    Participant

    Hi,

    you are extending default Oro twig file which needs a lot of different variables by default.

    You can override it if you don’t need them but you will lose a lot of OroCommerce functionality or you will have to handle it by yourself.

    If you want to keep OroCommerce functionality, please check out e.g. indexAction() of ProductController. It uses layouts.
    If you want to learn more about layouts, please follow: Layout documentation.
    If you want to customize your theme, please read: Theme customization documentation.

    Best regards
    Wiktor

Viewing 1 replies (of 1 total)

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

Back to top