shopware6 - Shopware Add tab to existing module tutorial give error - Stack Overflow

admin2025-04-19  0

I'm using Shopware 6 on Dockware Docker Container. I try to add new tab to the product page.I read .html The new tab called Custom is create but when I click on it a have an error in dev tools console.

An error was captured in current module: SyntaxError:  

Here is my template cod it is the same like in tuturial. I dont know what is wrong

// <plugin root>/src/Resources/app/administration/src/view/sw-product-detail-custom/sw-product-detail-custom.html.twig
<sw-card title="Custom">
    Hello world!
</sw-card>



 // <plugin root>/src/Resources/app/administration/src/view/sw-product-detail-custom/index.js
import template from './sw-product-detail-custom.html.twig';

Shopware.Component.register('sw-product-detail-custom', {
    template,

metaInfo() {
    return {
        title: 'Custom'
    };
},

});

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745076783a283615.html

最新回复(0)