Search code examples
shopware6shopware6-app

Get the currently installed Shopware version in an App Script


Does anyone know, how to retrieve the currently installed Shopware 6 version in an App Script?

Unfortunately I was not able to find anything in the docs or the code.


Solution

  • We added support to retrieve the current shopware version from app scripts. Refer to this commit.

    Starting with 6.5.1.0 you can access the shopware.version variable from inside app scripts and also use it in combination with version_compare.