·

How to

Tips & tricks, tricks & tips. Looking for a way to achieve something? Here’s how to do it!

How to fix ‘404 File not found’ when running HHVM in Vagrant

When you try to use HHVM inside Vagrant with Apache, you might stumble on the error that when you reload your site, the only notice you see is “404 File not found”. Chances are that this is because you’ve set your document root of your website inside Vagrant to something different than /var/www . The fix for this read further ...

How to use datalayer variables in Google Tag Manager

So today I was asked the question to add the transaction ID and order amount of a Magento order to some specific tracking pixel on the checkout page of Magento. However, the client already was using Google Tag Manager to put this pixel on the checkout page, and I already had a dataLayer present in Magento. read further ...

What is keyCode 229?

So today I stumbled into another fine situation: I had an input-field in a form that would only require numbers. To prevent the user from entering numbers I created a simple JavaScript method that looked something like this: This works fine. Except for some Android phones. Not all. Some. So what was going on?read further ...

Find and replace the domain name in Magento

When migrating your Magento installation between development and production environment, chances are you need to change the domain name in your configuration. For example: When you push your site from your development environment to a production environment, Or vice versa: when you need to update your local environment with the data from the production environment. read further ...

How to enable PHPUnit code completion in PhpStorm

So you’ve got PhpStorm and you’re writing your tests with PHPUnit. But how do you get the code completion to work? Well, the solution is very simple:read further ...

Watching and building your project with Gulp

A while ago, I wrote an article about a basic Grunt setup for building. But as some of you might already know for some time now, the streamed task runner Gulp is winning more and more popularity in the fields of web development. I’ve also tasted a bit of Gulp myself (not as much as Grunt read further ...

How I run unit tests in Vagrant, in Jenkins

As some of you might know, I use Vagrant to setup my local environment, and Jenkins for my continuous integration. One major part of this setup is to automatically run tests after Jenkins is done building – and before it deploys the website to the production server. In this article I am going to share with read further ...

The most basic way to programatically send e-mails in Magento

Looking for the most basic way to programatically send e-mails in Magento? Here’s how: That’s it! This little snippet does the trick. Or are you looking for a more advanced example including e-mail templates and such?read further ...

Detect changes on HTML element with the MutationObserver

Recently I ran in a situation of which I’m sure some of you also encountered at some point: I had to perform an action when the class of an element changed. This change was done by an external plugin and I didn’t want to edit to source of that plugin to provide a hook. So how did I read further ...

1 4 5 6 7 8 10