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„Shopware: Debug SQL Queries on the CLI“ weiterlesen

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 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„Shopware 6: ModuleNotFoundError: Module not found: Error: Can’t resolve ‚flatpickr‘“ weiterlesen

Shopware 6 and Paw

I’m just writing a little plugin and for some reason the API is not returning the seo_urls on a product – once I fiddled out the reason for that hopefully I write another blog post. But for the moment I need to debug the Shopware 6 API and the result. Copying over the API call„Shopware 6 and Paw“ weiterlesen

Shopware 6.3: Don’t share caches between deployments

We had a problem today and no clue, where it came from. There was no way to reproduce it locally. PHP Fatal error: Cannot declare interface Doctrine\DBAL\Driver\Connection, because the name is already in use in /var/www/ingo-maurer2.stage.winkelwagen.de/releases/20211122094005/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Connection.php on line 13 This happens, because we wanted to share the caching directory between deployments. Don’t do that. Maybe„Shopware 6.3: Don’t share caches between deployments“ weiterlesen

Shopware 6: Showing gross prices, net price, taxes and calculations – part 2 (the solution)

Break code to make it work In part one we explained, what our problem is: We want to show gross and net prices, but recalculate the gross price if the tax rate changes (OSS – one stop shop). We still are on Shopware 6.3 and therefore our implementation might be a lot more complex, than„Shopware 6: Showing gross prices, net price, taxes and calculations – part 2 (the solution)“ weiterlesen

Shopware 6: Add property/attribute/feature to product and order by it

The mission: We are selling art and want to make it possible to order the products by creation year. Shopware has an excellent documentation about how to add a new sorting to product listing. But unfortunately no one is telling us how to add a new feature/property/attribute/you name it to a product, so here is„Shopware 6: Add property/attribute/feature to product and order by it“ weiterlesen