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 internallyContinue reading “The sales_channel.*.loaded events explained”
Category Archives: TechStuff
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::getUrlContinue reading “How to: Shopware image urls”
Renaming Shopware 6 Plugins
You want to rename the name of your plugin you can find when running: This is easy, change the name of your “base class” which is defined in your composer.json, e.g. from to But it isn’t applied? That cost me nearly an hour. What didn’t help bin/console clean:cache composer install bin/console plugin:refresh Removing the templateContinue reading “Renaming Shopware 6 Plugins”
Magento 1: Multiselect filter don’t show up/have no items
I just stumbled over an interesting problem. A customer of mine told me, that they are trying for weeks to get filters working and for some reason it just didn’t work. It sounded like an easy to fix problem to me, but the fact, that the (good) developers of the customer didn’t fix it themselvesContinue reading “Magento 1: Multiselect filter don’t show up/have no items”
Fixing DNS problems while migrating ecommerce sites (e.g. Shopware or Magento)
Back in the days, when we migrated websites from one machine to another it was easy, get HTML and CSS, move it to another machine, change the DNS record and bam. Done. Today it is not that easy, because we have a lot of services involved: CDN, DNS, ERP and many other three-letter acronyms. OneContinue reading “Fixing DNS problems while migrating ecommerce sites (e.g. Shopware or Magento)”
Shopware 6 – How to mysqldump
Other posts about mysqldump mysqldump –quick -C –hex-blob –single-transaction –quick, -q This option is useful for dumping large tables. It forces mysqldump to retrieve rows for a table fromthe server a row at a time rather than retrieving the entire row set and buffering it in memorybefore writing it out.–compress, -C Compress all information sentContinue reading “Shopware 6 – How to mysqldump”
Why I think you can’t overwrite translations in SW6
I’m building a Shopware 6 shop and we implement a custom theme for our customer. To change the HTML structure we change templates, which is fine, but from time to time we only want to replace a translation, so I tried it. Use your own translation and “just do it” Shopware 6 has a goodContinue reading “Why I think you can’t overwrite translations in SW6”
SW6: Overwrite outer block but not inner
Shopware 6 is running on Symfony. Symfony is running on twig. Therefore the Shopware 6 default template is implemented in twig, which is pretty cool and provides a lot of syntactic sugar. I want to overwrite <div class=”col-auto”> and add a second css class. Two weeks ago I would have copied the complete block, changedContinue reading “SW6: Overwrite outer block but not inner”