Symfony: {{ dump() }} creates an iframe

That’s it, that’s the message. Some context You are here for the story behind? I’m happy to tell you, but might be boring 🙂 I’m still working on a payment plugin for Shopware 6 and because the damn iframe for card payment and blik is changing its name all the time, I’ll access it inContinue reading “Symfony: {{ dump() }} creates an iframe”

Shopware: Show test environment

It feels a little thiefy, but from my point of view, is this too easy, brilliant and good to not conserve it from slack. And because he doesn’t want to, here we are. Thanks Melvin for hosting with us ? Melvin Achterhuis just post this: And added a screenshot, showing the shopware administration with aContinue reading “Shopware: Show test environment”

Shopware 6: How to URL in emails

A couple of weeks ago, I wrote about URLs: and today I discovered, that: {{ seoUrl() }} is broken in emails, because it doesn’t contain the domain! To have proper emails we now use {{ rawUrl() }}, it works like seoUrl but you can add the domain to it as third parameter. An example fromContinue reading “Shopware 6: How to URL in emails”

Shopware 6: Putting Payment Methods in the Shipping Method space

This blogpost is based on Shopware version 6.4.20.2. One of our customers had the requirement to implement a couple of additional, “special” payment methods. Because this increased the number of payment methods in the shop to 12 in total, the customer suggested to spread the payment methods out to both sides of the checkout, usingContinue reading “Shopware 6: Putting Payment Methods in the Shipping Method space”

Shopware 6: How to URL

A colleague wrote a plugin and the customer said, the translation doesn’t work. Our plugin loads more data via a form and AJAX. The problem: Always queries base url The problem is, that our JS plugin always queries the base url https://example.com instead of https://example.com/en so Shopware didn’t had any chance to find the correctContinue reading “Shopware 6: How to URL”

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 salesContinue reading “Shopware: BaseURL in Email Template”

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”