[Vuejs]-Shopware 6 Administration: how to override block inside sw-product-variant-modal

1👍

The slot is placed outside of the sw-data-grid component, but it needs to be inside of it.

So, you need to use a block that’s inside of the sw-data-grid component instead, for example sw_product_variant_modal_body_grid_column_media:

// sw-product-variant-modal.html.twig

{% block sw_product_variant_modal_body_grid_column_media %}
    {% parent %}
    {% block product_variant_modal_body_column_test %}
        <template #column-label-opex>
            {{ $t('test') }}
            <sw-help-text
                style="margin-left: 5px"
                :text="$t('tplProductList.test.helpText')"></sw-help-text>
        </template>
    {% endblock %}
{% endblock %}
👤Ezycod

Leave a comment