langziyanglangziyang MemberComments: 1 Received thanks: 0 Member since: March 15

i use console create plugin:   php bin/console plugin:create PluginQuickStart

and follow https://docs.shopware.com/en/shopware-platform-dev-en/how-to/extending-storefront-block

create     custom/plugins/PluginQuickStart/src/Resources/views/storefront/layout/header/logo.html.twig  file

the file code is:

{% sw_extends '@Storefront/storefront/layout/header/logo.html.twig' %}

{% block layout_header_logo_link %}
    <h2>Hello world!</h2>
{% endblock %}

when i refresh home page, i get the error:Unfortunately, something went wrong.can tell me why and how fix it

Answers

  • langziyanglangziyang MemberComments: 1 Received thanks: 0 Member since: March 15

    ok,i find it.composer.json file need add:

    "require": {
      "shopware/core": "*"
    },
Sign In or Register to comment.