·

How to

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

Get the sibling categories in Magento

Looking for an easy way to find the sibling categories in Magento? I know I was! But then I stumbled upon this neat little trick. Try this: Thanks go out to Tim Bezhashvyly for this neat little trick.read further ...

Why are my Magento attributes missing when using a flat catalog?

When you run into the issue that in Magento: Your product filters are not working when using addAttributeToFilter() . Your product attributes aren’t showing up when using addAttributeToSelect(‘*’) . All of this is only happening when you are using a flat catalog. … chances are that you can fix this by just setting Used in product listing to Yes read further ...

Fixing Vagrant port forwarding on OSX Yosemite

Update: it didn’t seem to work as expected so with a little help of this article I changed to code a bit. So recently I updated my system to OSX Yosemite. As you might know, I work with Vagrant, and one major aspect for local development is forwarding port 80 of my host machine to read further ...

How to fix “Duplicate entry ‘1’ for key ‘PRIMARY'” in data migration in Magento

So this morning I was boggling on a data migration with Magento that kept throwing the following MySQL error: This was really puzzling me, since all I did was I created a database dump and tried to import it on another server. So what was going on? Well… It turns out that Magento uses a read further ...

Split content with a horizontal rule

Today I want to share a little technique with you that I use for much of my clients. There are many times when you need the content to be split in two in the frontend. Think about a custom wrapped header, a text in 2 columns, an introduction, etc. In my opinion the client must read further ...

How to write unit testable code

We all know the importance of unit testing. But to write unit testable code requires a different kind of thinking. Take this method for example: it’s a simple method that executes a SQL query: Now you could imagine that to test this code it requires setting up some actions to do before running your test read further ...

Remove cached files in your Git history

So today I stumbled upon an issue where I was unable to remove a chunk of code that was left in my repository for some reason. I accidentally added a 1.2 Gib database dump and after I removed it from my repository and git rm –cached  it, Git would still try to to push this huge read further ...

Use AppleScript to batch export Illustrator files to JPG

If you’ve read my previous article about how to perform batch actions in Illustrator, you might also be wondering if this technique can be used to export Illustrator files to JPG or PNG. Well, it can. And it’s simple. In this article I’ll show you how to do this.read further ...

1 8 9 10