·

Tutorials

Looking to learn something? You’ve come to the right place!

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 ...

How to get Turpentine right for Magento

If you got a Magento shop and you’ve boosted the performance of it by using Turpentine (the Varnish plugin for Magento) you’ve already experienced the massive speed and power it provides. However… If you’re Turpentine configuration in your local.xml  file is misconfigured, chances are that under heavy load, with many concurrent visitors, you’re Magento site may read further ...

How to setup Varnish from scratch

Lately I’ve been boosting performance in Magento by using Varnish cache. Now, I think most of you already know what Varnish is, so I’m not going to spend time explaining how awesome it is. Instead I’ll try to give a more in-depth explanation in this article on how Varnish works step-by-step and how it can read further ...

How to add custom properties to magento attributes

A while ago I wrote an answer on stack overflow regarding the question “How to add custom property to Magento attributes and display it on the front end”. The question was simple: I would like to add a text description on the properties’ tab and display it on the front end. I happened to have read further ...

How to add complex joins to your collection in Magento

I recently had the situation where I had to add a really complex field to a product collection in Magento. The client had a very special way of calculating product prices that depended on: The supplier that delivered the product the cheapest (a product could have more than one supplier). The customer that was logged read further ...

Make better use of Magento’s cache

Magento has it’s built-in caching mechanism, but unfortunately it’s not used very often (or by default). This is good to know when you are creating a module with your own custom block templates. When you know what you are doing, the speed benefits can be pretty impressive!read further ...

Set the order status for new orders in Magento

In Magento, for most payment methods, you can assign an order status to a new order. You can do this in the system configuration for the specific payment method. But in a lot of cases, the only order status you can select here, is ‘Pending’.   But what if you want to assign a different order read further ...

Magento unit testing with specific customers

Sometimes you have the situation where you have to write unit tests for Magento that involves Magento customers. If – for example – you have some business logic that depends on certain customer- (or address-) attributes, you want to make sure your code works as expected before you’re deploying it to a live server. Unit testing read further ...

Unit testing Magento with the database

This year I want to dive more into unit testing in PHP. Writing good, test-driven code is important for the stability and guarantee of your project, but it also helps you – as a developer – sleep a little better at night. You might have seen earlier posts regarding unit testing in PHP in the past, read further ...

1 2 3 4 5