[Edit: I am using orocommerce-application 3.0] [Edit 2: Wonderful, editing posts apparently removes the code tags!]
Good day, I am struggling with the basic task of simply extending a predefined layout. My goal is just to append a custom element/twig template to the body of the rendered page. I have read a lot of documents, for example https://oroinc.com/b2b-ecommerce/doc/current/dev-guide/front-ui/layouts, but none of the available docs really explain how to achieve my goal (at least the scss gets compiled to css and gets sent to the frontend).
What is the correct way to include my_custom_thing template at the end of the body in the rendered storefront? Do i have to register the .twig.html somewhere still? If yes, is there a complete documentation or walkthrough on how to configure it?
Thanks and with regards, Christian
This topic was modified 5 years, 3 months ago by christian.stegen.
This topic was modified 5 years, 3 months ago by christian.stegen.
And make sure that application is able to see your layout update – i.e. it has to be in Resources/views/layouts/<theme_name>/page or Resources/views/layouts/<theme_name>/<route_name> directory.
Please let me know if this solution works for you.
Hello, thanks for the swift reply. I was able to properly extend the layout when i renamed the template block to “_my_random_thing_widget” as you suggested! Thank you very much for the help. I will further read into symfony Form rendering as it was linked in the documentations.
This reply was modified 5 years, 3 months ago by christian.stegen.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.