Winkelwagen GmbH Logo
  • SW Meetup Berlin
  • Services
  • Workshops
  • About
  • Blog
  • Jobs
  • Contact us

Shopware 6: Theme inheritance and override.scss

Today we discovered, that the typo and font sizes we configure in our theme aren’t displayed in the frontend. What we did: TL;DR Solution is below. But if we attach C to a sales channel, all the configuration isn’t used in the frontend. Our frontend developer Carl discovered, that the necessary scss code to apply […]

Shopware: Save new entity – don’t use getVars()

I’m a Magento developer and therefore I save entities. I’m used to it and using a class to set all properties on it is a great way to interact with an entity. Shopware doesn’t. To create a new entity you call create on a repository and pass an array to it. Like this example from […]

Shopware: Automation around documents

One of our customers wanted us to import their invoices from their ERP system. And although Shopware is able to use custom pdf files for their invoices, there is no automation yet to do this. To create an invoice with a custom pdf file you need to do the following: Invocie number must be unique […]

Shopware: BaseURL in Email Template

You need the base url of your shopware shop, root url, domain of the sales channel – yes that is for SEO, so I find next time my own post to copy paste the solution: Just in case you don’t know what happens: salesChannel is imho always passed to the mails. We take the sales […]

Shopware: Rule not showing up (Grand Total vs Total)

Today I learned… If you create rules and want to use them inside of promotions you are not allowed to use Grand Total but Total in your conditions. Which totally makes sense, because applying the promotion changes the grand total. So make sure to use Total:

Shopware 6: Flow broken

I just had a nice discovery: My flow builder was broken, in detail: No actions loaded. Took a moment to realize: So, please make sure the new env variables are set when using flow:

Shopware: Landingpage outside of Shopware and „add to cart“

First things first: Don’t. This is a bad idea, because it lacks tracking, cookie consent and most likely more things, you just get for free if you implement either just a nice landing page inside of Shopware or if you need more liberty have your own controller and template (with all the benefits, like extending […]

Shopware: Debug SQL Queries on the CLI

You are trying to debug a Command, ScheduledTask or Message on the queue? Symfony Profiler and toolbar For the frontend it is easy, you can just use the Symfony Profiler – easily activated by turning on the dev mode. This can be done, by changing APP_ENV=“prod“ to APP_ENV=“dev“ in your .env file. And then you […]

MessengerPass::getServiceClass() must be of the type string, null returned

You are implement a scheduled task in Shopware 6 and get a weird error message? Then you maybe copied the classnames of your TaskHandler and/or Task with a \ prefix. This is wrong: This is correct: The difference? The id: I hope this helps someone 🙂

Shopware: UpdateCommand vs InsertCommand

You get a weird error, because you try to update a product, but for some reason instead you get: In my case, I had the wrong seperator. Shopware uses ; as a default, but LibreOffice is using , as a default. My laziness cost me nearly 2 hours – don’t be me 🙂

Shopware 6: Cannot access private property Namespace\Class::$property

You have this error? More trace is at the end of the post. The properties of your Entity need to be protected.

Shopware 6: ModuleNotFoundError: Module not found: Error: Can’t resolve ‚flatpickr‘

Good morning! Yesterday it took me half a day to get the build-admin.sh working. The problem was that the error „ModuleNotFoundError: Module not found: Error: Can’t resolve ‚flatpickr’“ was thrown and I had no clue why. And after running down the rabbit hole the funny developer-game started „which of the many changes was the one […]

«...23456»
  • Winkelwagen – an ecommerce agency
  • Contact us
  • Impressum

Winkelwagen GmbH
Crailsheimer Str. 10
12247 Berlin

info@winkelwagen.de

Mastodon
Linkedin Logo