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

If you prefer Postman, Matthias Zeis wrote about it! 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“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

The sales_channel.*.loaded events explained

In this text i will try to explain how the sales_channel.*.loaded events are created. What are the sales_channel.*.loaded events? The sales_channel.*.loaded events are events which are dynamically created/triggered after the non-sales_channel loaded.* events are ran (for example, after the product.loaded event is ran, a sales_channel.product.loaded event will be created too). They are being used internally“The sales_channel.*.loaded events explained” weiterlesen

How to: Shopware image urls

How is a Shopware image url generated, let’s dive into it and start really early so everyone can follow. MediaEntity::getUrl into the Template This is part of vendor/shopware/storefront/Resources/views/storefront/utilities/thumbnail.html.twig I’ll just dig down the methods and will sum everything up in the end. \Shopware\Storefront\Framework\Twig\Extension\UrlEncodingTwigFilter::encodeMediaUrl So far so good. So the big question is, where is \Shopware\Core\Content\Media\MediaEntity::getUrl“How to: Shopware image urls” weiterlesen