Logo BrocksiNet

BrocksiNet

Try to clean the web

Shopware 6

22.03.2022
shopware-6
Environment variables in Shopware 6 (aka process.env.XYZ)

With environement variabeles you can do a lot in Shopware 6. Especially when you use some build process to deploy your projects or test your plugins. So in this little post I will collect some of the important environment variables I found in Shopware 6. Maybe this will help you to find solutions for common problems. If I miss some variable that might be helpful pls leave a comment so I will update this post. Project Root - Process ENV The PROJECT_ROOT is set by the sh script you executing for

25.01.2022
shopware-6
How to add a "is in stock" filter in Shopware 6?

In a default shopware 6 you will have filters for properties and you will have filters for manufacturer, rating, price and free shipping. But you will not have a filter for is in stock. But shopware has a nice documentation about how to add easily a listing filter. In this post I will tell you about the learnings and the troubles I had during adding this filter to the category listing. How filters work? And Troubles I had. You can scroll down to the implementation when you think you will not hav

10.01.2022
shopware-6
Import / Export Customers via CSV in Shopware 6

At some point in every project you need some customer data. And often it is the case that you need to import the customer data from some old source for example from WooCommerce. In this case you can use the csv import/export feature from Shopware 6 core. So this post is a small how to import/export customer data and create a profile for your needs in Shopware 6 admin. What we will do? Create a customer via administration Create a customer profile with data mapping Export existing customers via a

16.11.2021
shopware-6
What's the difference between product.repository and sales_channel.product.repository in Shopware 6?

Looks easy? 😉 But did you checked in detail the differences or you just use always the product.repository? Let's deep dive into the core files to fully understand the differences so you can decide what to use when. 💙 First of all there is a file called: EntityRepositoryInterface.php where you can see what kind of methodes you can use like search, update, merge and many more. You need to know that Shopware 6 uses Data Abstraction Layer (DAL) and generates for every entity the corr

08.11.2021
shopware-6
Flow Builder, early developers overview

With the fresh new shopware 6 version 6.4.6.0 there is a new much awaited (!) feature the flow builder. In this blog post we will check the shopware 6 core how easy or hard it is to create own actions for the flow builder. To have an general idea what the flow builder can do for you, you should at least read the flow builder documention on shopware 6 docs. In short words: You can create custom (business) processes without coding. You can create this custom process via admin by defining triggers