Version 1.0.0 Shopware 6.0 to 6.5 As of November 28, 2019
The plugin adds the Twig function enno_print. With it you display all available variables in the template or only specific ones. Unlike dump(), the function does not need debug mode and therefore also works in a production shop.
According to the Shopware Store, the plugin is compatible with Shopware 6.0 to 6.5.5.
Usage #
- Install the plugin under Extensions > My extensions and activate it.
- Insert one of the two calls at the desired place in the template.
- Save and compile the theme.
All variables of the template:
{{ enno_print() }}Only a specific variable:
{{ enno_print(shopware.config) }}The output appears as text at the position of the call. It does not show everything that dump() shows.
Important #
Every visitor of the page sees the output, including data such as the shop configuration. Remove the call again as soon as you are done. Then deactivate the plugin.
Help #
If this guide does not answer your question, write to us via the contact form on enno.dev.
