Shopware: Save new entity – don’t use getVars()

I’m a Magento developer and therefore I save entities. I’m used to it and using a class to set all properties on it is a great way to interact with an entity. Shopware doesn’t. To create a new entity you call create on a repository and pass an array to it. Like this example from“Shopware: Save new entity – don’t use getVars()” weiterlesen

Shopware: Automation around documents

One of our customers wanted us to import their invoices from their ERP system. And although Shopware is able to use custom pdf files for their invoices, there is no automation yet to do this. To create an invoice with a custom pdf file you need to do the following: Invocie number must be unique“Shopware: Automation around documents” weiterlesen

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

Shopware: Rule not showing up (Grand Total vs Total)

Today I learned… If you create rules and want to use them inside of promotions you are not allowed to use Grand Total but Total in your conditions. Which totally makes sense, because applying the promotion changes the grand total. So make sure to use Total:

Shopware: Landingpage outside of Shopware and “add to cart”

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

Shopify: Vendor logo on product pages using a custom Liquid snippet

The other day, we had a request for replacing Shopify’s default vendor text with a little logo on product pages – but only for specific vendors. Since I figured this may be worth sharing, here’s a quick summary/tutorial of how I went about this; (1) Upload the designated logo to your Shopify store. (2) Open“Shopify: Vendor logo on product pages using a custom Liquid snippet” weiterlesen

Shopify: Update Variant prices for markets/countries

We want to update prices for a Variant for a single market, but my research says, that neither Shopify itself can do this via CSV import, nor the awesome Matrixify App we use. But the Matrixify support says it should work. I couldn’t make it work, but give it a try! So I dig into“Shopify: Update Variant prices for markets/countries” weiterlesen

Shopify private app – get started

The documentation of shopify APIs is pretty good. Unfortunately I failed miserably to authenticate – and this is because from my point of view the naming of the PHP client is wrong – at least for private apps. Big shout out to Fatih Samur whos blog entry helped me a lot! This is the app“Shopify private app – get started” weiterlesen

Maxcluster: cluster-control restart PHP with deployer

Most of our customers are hosted on maxcluster. And thanks to their cluster-control one can automate a lot of things using it. For example restarting PHP after deployment. You don’t want this on a production environment, but sometimes it might make sense to have it on a stage machine.