-
Notifications
You must be signed in to change notification settings - Fork 302
Open
Description
Hi! I am a plugin developer for Shopware 6 shops. FInally a found a place to tell how impossibly bad the SHopware docs are. It's almost he worst documentation of everything I ever worked with. Here a re the main problems: take for example the custom storefront js article.
- You really explain what is window.innerHeight and window.pageYOffset, but do not tell what is the lifetime of the plugin class instance? Really? It's one of the most important things here. Only after 2 hours of debugging I finally found that out by myself. If a person decides to write a Shopware plugin, chances that he or she is not 4 years old and know about window.innerHeight are pretty high, but the really important info is nowhere to find
- The new registration of custom entites with php Attributes. You mention JSON filds and serialization. Guess how much time I spent figuring out that those serializers must be registered in a special way to work. And still I have no idea about when the serialization and deserialization actually happens. No word about it. And how to create a migration from those new entity definitions? Good luck trying to find it and then writing the sql by hand.
- Shopware php events... Countless many times I needed a hook on some event and there is no place in the docs where they are listed. I know that Shopware is opensource and Github has an ability to look up something in the code. But things like this MUST be documented at least somewhere because almost all the plugins need them, it is also one of the central concepts when writing a plugin. Finally you added at least the checkout event list, at least... Not in a thousand years
- You want the types when working with repositories and Shopware global object when creating some administration module? Or that the nested entities should be not of array type but an EntityCollection? Shopware team considers it a secret and that's why they do not tell it in the docs. Try it out, debug for 8 hours straight with 400 response code and then find this out.
These things are the most important but there are countlessly many more. Basically, writing a plugin turns out to be digging in the Shopware repository for hours trying to find the definitions you need. I really wish things get better
dallyger
Metadata
Metadata
Assignees
Labels
No labels