The Storefront is the least fancy of the components of Shopware 6. If you did some backend development in PHP in the last few years you should find yourself instantly familiar with its structure. The Storefronts main concerns are:
Twigtemplates to display a fully functional shop.
These concerns are mapped to a Web-MVC structure:
Core in this case acts as if it was the domain model wrapping all the sales channel logic. The
Pagelet represent the read model, the
PageletController work directly on core services and are the write model.
Contrary to the core that just contains PHP logic the Storefront template represents a vast part of the functionality of the component. It is worth looking a little deeper into the
/Resources directory to gain a better understanding how the Storefront works. When opening the directory you find these subfolders.
<platform/src/Storefront/Resources> └── assets └── build └── config └── src └── script └── style └── tests └── views └── .babelrc.js └── .browserlistrc └── .eslintignore └── .eslintrc.js └── .gitignore └── jest.config.js └── package-lock.json └── package.json └── postcss.config.js └── stylelint.config.js └── webpack.config.js
It is a node application for build purposes only! Again, long time web developers find a familiar structure, with
assets (static images and icons),
views (Twig) and