p16r.nl

Shopware 6 - How to recognize a Shopware 5 vs Shopware 6 plugin

September 02, 2020 - 1 min read

I was looking for an extension for Shopware 6 that would resize my thumbnail images through a third-party processor. I ran into the FriendsOfShopware/FroshThumbnailProcessor plugin, which seemed promising.

But when I installed it through composer and tried to refresh my plugin list, I got this error;

Errors occurred while refreshing plugin list

                                                                                                                        
 [ERROR] The file "/data/client/shopware/custom/plugins/FroshThumbnailProcessor/composer.json" is invalid. 
         Errors:
         Plugin composer.json has invalid "type" (must be "shopware-platform-plugin"), or invalid
         "extra/shopware-plugin-class" value

It turns out, this plugin is for Shopware 5, not 6. In the composer.json, you can check the type field:

  • Shopware 5 => shopware-plugin
  • Shopware 6 => shopware-platform-plugin

I hope plugin maintainers will be more clear about this distinction in the future. A great way to do this is to use Github’s Topics, so I’d suggest adding a shopware6 or a shopware5 topic. This can be easily done on your repo page, under the Gear icon on the right;

image


Kyle Mathews

Written by Peter Jaap Blaakmeer @PeterJaap