shopware / shopware

Shopware 6 is an open commerce platform based on Symfony Framework and Vue and supported by a worldwide community and more than 1.500 community extensions
https://shopware.com
MIT License
2.75k stars 1k forks source link

Custom Plugins do not load anymore #370

Closed ic-hv closed 4 years ago

ic-hv commented 4 years ago

Starting with commit revision b81d52b8 the plugin directory layout structure was changed heavily. Instead of the previous dynamic resolution mechanism, which utilized Bundle::getStorefrontStylePath and Bundle::getStorefrontScriptPath() to get the correct paths for js / (s)css files, the mentioned commit introduced a static path setup. Because of this all the plugins we have developed for Shopware 6 won't load anymore, though they still are programmed according to the guidelines within the Developer Docs.

Now I am wondering: Do we have to adapt our plugins and use the newly introduced (in my eyes weird) static path setup - or will this issue be fixed? If not - please be so kind and also update the developer docs accordingly.

Thank you very much, so far!

ic-hv commented 4 years ago

Well ok, the following link described what I have to change to make my plugins work again: https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/recent-updates (2019-11-14: Refactored resources directories) ... but unfortunately the link is dead now :(

Could you please again provide a reference how the plugin directory / path structure should look like ... Thank you!

keulinho commented 4 years ago

hey @ic-hv,

you can take a look at the changelog, there are these changes documented. https://github.com/shopware/platform/blob/master/CHANGELOG-6.0.md#L253

Kind regards Jonas

ic-hv commented 4 years ago

Thanks! So, the plugin directory structure should (now) look like below: grafik

keulinho commented 4 years ago

exactly :+1:

OliverSkroblin commented 4 years ago

Thank you for answering @keulinho . Since here all the questions were answered, i will close the ticket. If something is still open please just open a new ticket ;)