Shopware 6 - Plugin config button does not show up

September 02, 2020 - 1 min read

I was building a Default Sort Order plugin in Shopware 6 and created a config field for the plugins configuration:


<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        <title>ExamplePlugin Settings</title>

        <input-field type="bool">

        <input-field type="bool">
            <label>Default sort order</label>

But when I clicked on the ellipsis in the administration, the Config option did not show up;


I then removed the Default Sort Order field and the Config option showed up. Once I opened that page, re-added the field and refreshed the config page, I got this notice;


Turns out that the <name> value of an input-field element should be camel-cased instead of snake-cased, however this error notice didn’t show up in the Plugins overview in the backend. Changing it to defaultSortOrder fixed it.

Kyle Mathews

Written by Peter Jaap Blaakmeer @PeterJaap