Known Issues
TwigException: Unable to parse block
- Block names can't contain '-'.
Javascript executes twice
- You're implementing more than one twig templates, probably. In the one that isnt the primary one, overwrite the base_body_script block.
Invalid CSRF Token on custom form
Shopware 6.4 and below only!
sw_csrf doesn't exist in 6.5 and onwards anymore.
- Declare your form with:
data-form-csrf-handler="true"
and then, in the form:
{{ sw_csrf("frontend.myaction") }}
with the appropriate action name.