Diese Seite ist auch auf Deutsch verfügbar. Zur deutschen Seite wechseln

Tech deep dive into Shopware 6 with our Product Manager Daniel Nögel

Shopware_SCD_2019_0210_cover

Shopware Community Day 2019 was the first time we held two keynotes at the same time: The main keynote by our CEO and co-founder Sebastian Hamann - and the tech keynote by myself, Daniel Nögel. For me it was a great honor and pleasure to give you a technical overview of Shopware 6; in this blog post, I want to summarize my thoughts about Shopware 6.

Why we went Shopware 6

Shopware 6 is a complete rewrite of Shopware. Of course, we didn’t reinvent the wheel for aspects that we were happy with in Shopware 5; at the same time, we wanted to improve many topics we have not been able to address in Shopware 5.

Furthermore, we thought a lot about how E-Commerce might look like in a few years, which requirements we might need to address - and which customer segments we want to reach. We quickly found that it was not about hype technologies - but about creating a broad foundation that small merchants, as well as enterprise merchants, could be successful with. In addition to many technological considerations, this especially means that merchants need to know what customers want - perhaps without the customers knowing, what they want.

In order to reach existing and new customers, I pointed out three dimensions in my keynote:

  • Internationalization
  • New channels
  • Customer loyalty

In Shopware 6 we placed great emphasis on these dimensions. For internationalization, we have new concepts for translations (and inheritance of translations). Also, the handling of gross and net prices, as well as prices per currency, has improved. The new Sales Channels concept allows for a new perspective on additional channels such as eBay, Amazon, Instagram, etc. The new Rule Builder feature allows you to address every Sales Channel specifically - and is also a powerful tool regarding customer loyalty, as you can shape very individual customer segment and address any customer exactly as you want to.

In order to free the potential of those dimensions, complexity must be reduced. Merchants need to be able to try out new things and want to quickly identify failures and successes in order to learn from their experiences. At the same time, enabling creativity and speed also means that developers want to know in which direction to go. “Everything is possible somehow” is not a sentence that will help you create awesome software. That’s why we reconsidered how, for example, our data model should look like, how extensions should take place and how developers want to work with the shopping cart.

Enabling people to use the new technologies also implies that we need to reduce legal barriers. By switching to the more permissive MIT license, Shopware clearly commits to the open source community.

For me, this is the philosophy behind Shopware 6: We enjoy new technologies and are excited to try them out. But the developers and merchants are the ones who are truly innovative in their everyday projects. And they neither need a tight E-commerce corset nor a spaceship toolbox. They need a reliable foundation on which to build. And that’s Shopware 6: Simple, flexible, state of the art and open source.

New tech stack in Shopware 6

Now let’s have a look at the technology. The most obvious change is the switch to Symfony, for sure. Symfony is probably the most popular PHP framework and has shaped a whole generation of developers. By using Symfony in Shopware, we make sure that it becomes easier to onboard developers to Shopware 6.

For the same reason, we are switching from ExtJS to VueJS as a JavaScript framework for our new administration. VueJS describes itself as a “progressive and incrementally adoptable” framework. For us this means that it can be tailored to our needs and requirements. And again: We are convinced that it makes it easier to onboard new developers to Shopware 6.

DAL

Another major change is the new data abstraction layer (DAL). This is a layer between your database storage and the actual application and takes care of all your data operations - be it reads, writes, searches or aggregations.

Data abstruction layer

In Shopware 5 we introduced a similar layer for reading operations only for products in the storefront. We found that it made Shopware much more understandable and predictable for the development community. But in contrast to the product services in Shopware 5, the DAL takes care of all entities and all kinds of data access. For that reason, custom SQL queries are no longer required. Furthermore, the DAL can also take care of syncing various storages: In modern e-commerce infrastructures, you will easily find Elasticsearch and Redis in addition to MySQL. The DAL can be used to sync those storages so that MySQL is used as the primary storage but Elasticsearch is always kept in sync. And there are even more functionalities such as versioning or translations that you can make use of easily:

Shopware 6 product manufacturer entity

The above example show how to define a product manufacturer entity with various translatable fields and relations to e.g. media and products. For more details please have a look at the description in our documentation.

Extensions

If you are already familiar with the Shopware 5 plugin system, I've good news for you: Many of the patterns will look familiar to you.

Extensions code

So you still have a base plugin file, where you can implement various methods to define the behavior of your plugin during installation or uninstallation. Creating new services or extending existing ones is possible using the service.xml definition file. And if you want to use events, you can write the same kind of subscribers as you've been using in Shopware 5. For more details, have a look at our plugin quickstart guide.

Summary

All in all a lot of things have changed in Shopware 6. But we are convinced that this will make things easier for you in the long run. If you are looking for additional resources, have a look at our documentation or our training program. There are plenty of free remote trainings, which will help to get started with Shopware 6.

New business models possible with Shopware 6

Talking about "business models" in a tech keynote might seem a little strange. But if we really want to understand what kind of requirements are relevant for our development community, we have to understand what kind of requirements you get in projects - and where things became tedious in the past.

Rule Builder

The Rule Builder is a whole new concept regarding customer targeting. In Shopware 5 (and many other e-commerce systems) you will just find some kind of "groups" that can be used for pricing, promotion, content, category restrictions, countries, etc. The more use cases one had, the more complicated it became to maintain all of the groups. The Rule Builder takes another approach: It allows you to create complex and nested rules that describe a customer you want to address for a certain use case. This not only makes easier to create "dynamic groups" (e.g. a group of all customers older than 18 or a group with all customers from a certain geographic area) but also makes it easier to give those customers special pricing, special content or restrict orders/payments/shipments for them. The new Rule Builder allows Shopware 6 to meet requirements that would have required a custom extension in the past.

New Cart

One of the earliest parts of Shopware 6 is the new cart. Actually, the first concepts were created in 2016. We analyzed many use cases where people had to modify the cart in order to meet the merchant's requirements. As the new Rule Builder can also be used to create price definitions, price handling becomes much more flexible with the new cart. Not only is the cart much more powerful when it comes to the question which customer gets which price: it is also more flexible regarding threshold prices per currency and handling of gross/net prices. Another big topic was the database performance. On the one hand, you want to make sure that during the cart process all pricing and stock information is consistent and correct and no order is possibly lost. On the other hand, you want to reduce the impact of the cart on the database as much as possible, as this critical part of most e-commerce systems is notoriously known for its heavy write operations. This is why the new cart is much more lightweight and reduces read/write operations as much as possible. The price, to which this comes, are conventions regarding the information you should / could access with your extensions.

Shopping Experiences

A new tool for merchants is the so-called "Shopping Experiences". With this tool, it becomes easier to create unique and appealing content for the online shop. Of course - as you might now from Shopping Worlds in Shopware 5 - you can create content. But Shopping Experiences set another focus: There dozens of prefabricated blocks, which show you all kinds of combinations between images, texts, sliders, videos and commerce components. You can just pick the block that comes closest to your imagination and drop it into the designer. This designer will always give you a realistic overview of how the Shopping Experience could look like in the frontend. At the same time, it allows you to configure the elements to your needs: You can edit text, swap elements with others or rearrange blocks. Every block is responsive by default. So you don't need to think about viewports and columns anymore.

Shopping-experiences

What makes the Shopping Experiences tool so powerful is the fact that every page you create this way can be used as a layout for category pages, product pages or landing pages. You can even dynamically reference properties of those pages. For example: If you create a layout for categories, you can dynamically reference the category's name. For a product layout, you could dynamically reference an image of the product or its description. And for the future, we are planning more functionalities, which will come in handy in many projects: E.g. editorial workflows for content pages or versioning.

Conclusion

Of course, this is just a glimpse of the new technologies, functionalities, and concepts in Shopware 6. But what makes this awesome from my perspective is the fact that based on our experiences with small, medium and large e-commerce projects we asked ourselves: What do customers want? What do merchants need? What do you need as a developer? This common theme makes Shopware 6 more fun to use - and more powerful in projects. At the SCD 19, we released the developer preview of Shopware 6. With this version, we want to collect your feedback as a developer. Feel free to check out our Shopware 6 repository on Github and give us feedback.

 

Experience the SCD19 keynote by Daniel Nögel

Stay up to date

You are interested in further developer content? Then follow us and be the first to be informed about product releases, updates, security notices, the Shopware Academy, and other important developer topics.

Follow us on Twitter

Subscribe to our Developer Newsletter