·

Magento

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

Test if e-mails are working in Magento

Have you ever been in the situation where you need to quickly check if your Magento-site is still sending e-mails? You know you can just send a mail by using PHP’s mail()-command, but of course, you need to check if Magento is able to send e-mails. After all, you never know how Magento’s internal e-mail 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 ...

Remove the wrapping paragraph around a widget in Magento

When using widgets in Magento you’ve probably come across the following problem: Magento wraps it’s widgets in paragraphs. This is fine if you have a widget that is supposed to be an inline element, but when you’re using a widget to include a block-type element, you don’t want that anoying wrapping <p></p>  around your HTML. So read further ...

How to add a custom template in Magento

Sometimes you have situations where you have to create a custom template for your Magento webshop. Take a homepage for example. These pages are always themed with slideshows, categories, advertisements, etc. The last thing you want is misuse the wysiwyg editor, bloating your CMS content with HTML and keep your fingers crossed that your client read further ...

htmlspecialchars(): Invalid multibyte sequence in Magento

So if you use the $this->escapeHtml() -method in a template in Magento, you might have come across an error something like this: The problem here is a bug in older PHP versions where the combination of display_errors=off  and multibyte string throws this error (yeah that’s right…). The fix is rather simple. Instead of directly passing your value read further ...

How to add custom attributes to a category in Magento

Sometimes you have the need to add some custom attributes to a category in Magento. This is actually very simple to implement. In this article I’ll assume that you already know how to build a Magento module. Therefore I will not explain the whole ‘how to create a Magento module’-part, since there are already enough read further ...

Get bundled products containing a specific product in Magento

In addition to my previous post, sometimes you also have clients who want to show product bundles on the product detail page that contain the product in question. Once again, Magento doesn’t provide this functionality out-of-the-box, and the only way to do it without direct SQL queries is by loading all bundled products and iterating read further ...

Magento ‘customers who viewed this also viewed’-query

Ever had the clients’ wish to have a ‘customers who viewed this also viewed’-functionality in your webshop? You might have noticed that this is not a default feature in Magento. And if you (like me) would like to keep your extension count as low as possible, the smallest solution is often preferred. And the smallest read further ...

1 3 4 5 6