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: Landingpage outside of Shopware and „add to cart““ weiterlesen
Schlagwort-Archive:shopware6
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: 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„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: Best Practice Configuration
Configuration Disable admin message consumer Disable auto update by shopware Send emails via queue More tweaks can be found in the shopware documentation To be continued…
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