M2: Media Query Hell

Published on 07 Jun 2019 , edited on 13 Jun 2019

Nothing is ever easy with Magento, and the same goes for the pretty much modern and straightforward CSS3 media queries. Because Magento is a smart system, and it has smart implementations for things. But it also has very poor documentation on these smart things. Which kind of makes them frustrating, dumb things. Magento 2 goes […]

Read more ...

How to add JS to M2

Published on 21 May 2019

Source To load a custom main.js file on all pages (in the RequireJS-way) this is a good way: 1) Create main.js Create main.js within the theme folder <theme_dir>/web/js/main.js with this content: In short: we declare dependencies at the start, e.g. “jquery”. We define as function’s parameter the variable name for using the dependency within the […]

Read more ...

The bane of M2

Published on 26 Apr 2019 , edited on 29 Apr 2019

This error, where the thing being undefined can differ is the error I run into most. I fixed it on some occasions, but the thing that does the trick seems to differ each time. This post is meant as a log to get to the bottom of what and why is happening here. Now this […]

Read more ...

M2: Fix Permissions

Published on 25 Apr 2019 , edited on 29 Apr 2019

Permission issues galore! Take these snippets, it’s dangerous out there!

Read more ...

M2M2: Product has weight issue

Published on 03 Apr 2019 , edited on 23 Apr 2019

So the migration succeeded (quite mysteriously I must add) and it looks like we have all data; Customers Orders Products Categories Attributes But there are some things missing, most notably there are no products shown on the frontend. Main lead on this is that there is a storeview missing which gives Fatal Erros in the […]

Read more ...

Ubuntu Desktop files and Dock

Published on 03 Apr 2019

After I did a clean install of Ubuntu 18.04 it came with Firefox reinstalled. But I also needed Firefox Developer to run along side it and I don’t remember exactly what happened, but something got screwed. My regular Firefox was installed as a ‘snap’ so it was running sandbox mode all the time (I guess? […]

Read more ...

M2M2: Migration

Published on 19 Mar 2019 , edited on 04 Apr 2019

Ah the migration. Oh the imports and exports. Woe is me. Countless hours spending crafting the biggest spreadsheets and CSV files. Error after error, so much frustration you eventually go beyond rock-bottom and reach a state of true nirvana. Let’s hope Magento’s Migration tool handles this for me this time around. What this tool does […]

Read more ...

M2M2: Installing certbot

Published on 15 Mar 2019 , edited on 22 Mar 2019

During setup and installation of the server for M2 I found that it wouldn’t run on an insecure IP address but it requires a FQDN with valid SSL certification. So I registered a .dev domain, because, well, why not. Just for full-disclosures sake, here’s the path for this; Registered domain Updated DNS to point to […]

Read more ...

M2M2: The server

Published on 15 Mar 2019 , edited on 22 Mar 2019

I was going to get my existing clean LEMP server install based on Ubuntu 14.04 LTS and update it. But I decided to get a clean slate and create a new image based on a clean Ubuntu 18.04 LTS version and start from scratch. What follows is more or less a direct copy of this […]

Read more ...

M2M2: The how-to

Published on 15 Mar 2019 , edited on 03 Apr 2019

We’re “Moving to Magento 2”. The “we” in this case is the company I work for and where I’m responsible for all things tech-related. Which, seeing as this business is an e-commerce business, is a big thing. We have been running about 20 Magento 1.9.x shops for a better part of two years now, but […]

Read more ...

Transfer files from GCP VM to another

Published on 03 Aug 2018 , edited on 22 Mar 2019
Read more ...

Broke sound in Ubuntu 18.04

Published on 04 Jul 2018 , edited on 03 Apr 2019
Read more ...

GCP: Resize persistent disk of running instance

Published on 27 Sep 2017 , edited on 22 Mar 2019
Read more ...

Adventures on GCP with mailservers

Published on 25 Sep 2017 , edited on 22 Mar 2019
Read more ...

Github Gists broken again

Published on 21 Sep 2017 , edited on 22 Mar 2019
Read more ...

Ubuntu script for quick Gcloud Compute CLI access

Published on 21 Sep 2017 , edited on 03 Apr 2019
Read more ...

FFS, running a Magento (1.x) subdirectory storeview on NGINX

Published on 25 Aug 2017 , edited on 22 Mar 2019
Read more ...

Failing nginx tests

Published on 24 Aug 2017 , edited on 22 Mar 2019
Read more ...

Magento 1.9: Add custom attribute to category

Published on 27 Feb 2017 , edited on 22 Mar 2019
Read more ...

Install modman for Magento

Published on 23 Feb 2017 , edited on 22 Mar 2019
Read more ...

Compute Engine LEMP Stack PHP7 for Magento 1.9

Published on 15 Feb 2017 , edited on 22 Mar 2019
Read more ...

Magento 2: Product types and layout handles

Published on 10 Nov 2016 , edited on 22 Mar 2019
Read more ...

When the mouseclick dies in Ubuntu

Published on 07 Nov 2016 , edited on 03 Apr 2019
Read more ...

jQuery slideOpen from fixed to auto

Published on 17 Oct 2016 , edited on 22 Mar 2019
Read more ...

QND: Style active page

Published on 13 Oct 2016 , edited on 22 Mar 2019
Read more ...

WordPress check if child/parent

Published on 13 Oct 2016
Read more ...

Magento2 – Edit mailforms & templates

Published on 11 Oct 2016 , edited on 22 Mar 2019
Read more ...

Goodbye Apple!

Published on 11 Sep 2016 , edited on 03 Apr 2019
Read more ...

Magento 2.1 – Adding custom attribute to category

Published on 15 Aug 2016
Read more ...

Magento 2 Grunt not watching?

Published on 20 Jul 2016
Read more ...

jQuery onClick fires twice

Published on 15 Jul 2016 , edited on 22 Mar 2019
Read more ...

NGINX on VirtualBox; sendfile-Strangeness

Published on 05 Jul 2016 , edited on 22 Mar 2019
Read more ...

Install Magento 2 via Composer on Apache server

Published on 23 Jun 2016 , edited on 22 Mar 2019
Read more ...

Get Magento 2.1 running – the definitive guide

Published on 22 Jun 2016 , edited on 22 Mar 2019
Read more ...

Note: Optimize Magento 2 for speed

Published on 14 Jun 2016 , edited on 22 Mar 2019
Read more ...

Note: Install Varnish on OS X

Published on 14 Jun 2016 , edited on 22 Mar 2019
Read more ...

Install Magento 2 via Composer on MAMP

Published on 09 Jun 2016
Read more ...

Magento 2 Snippets

Published on 02 Jun 2016 , edited on 18 Jun 2019
Read more ...

Add non-category menu items to a Magento 2 shop

Published on 31 May 2016
Read more ...

Shell cheatsheet

Published on 20 Apr 2016
Read more ...

Development

Everything web development related, rants, snippets, tutorials, quests; it’s all there.

All categories

All tags

All posts