Browser language auto-detection in Magento

By default, Magento shows the store that has been configured «by default». Adding browser language auto-detection is pretty easy editing the Magento index.php file. We just need to check what’s the user browser main language and then try to load the store that uses that code. It’s important to note that maybe the user has already selected a preferred language before. In that case, we just check that the variable $_SERVER[‘MAGE_RUN_CODE’] is set. Make a copy Read more…

Solr: 413 Status: FULL head and Magento (hits but no results)

A few days ago we tried to install and set Solr as a Magento default search system. We run into a weird problem: once we checked that Solr was working we enabled it in Magento. Everything seemed to work well: when reindexing products the log would show the changes and the button for testing whether Solr was connected with Magento said that it all was OK. But when searching for products in Magento there were Read more…

Magento Professional Edition no longer exists

February 1st: Magento announces that Magento Professional edition will disappear (they’ll phase it out, they said). This means that people who have recently bought the professional edition have been left hanging. In our case, we have 3 clients that have recently paid for a Magento PE license and now we have to explain to them that they won’t get any updates unless they upgrade to Magento Enterprise edition. For most of them that won’t be Read more…

Programmatically update product price per website in Magento

If you want to programmatically update product prices per website (this means that you have many websites and have set a website scope for price in the configuration), then you can use this script: Important note: I haven’t developed this, but I think it’s interesting to note it down. Thanks to Knowledge Craving from Stackoverflow.

Adding configurable product options to category list in Magento

At this moment we’re working on 3 projects, all of them require a category list with products that are only configurable and the customer has to be able to choose the options from the configurable and add it directly to the cart without going to the product page. Step by Step How can we add all this to the product category list? Sadly it’s not that easy. The configurable.js only works with one product at Read more…

What’s new in Magento 1.7 alpha?

People from bloggento have written a great article about what’s new in Magento 1.7 alpha. Let’s take a look! Forms Captcha Captcha is a security system for forms that basically prevents spam. The «one» that is filling the form has to prove that he or she is a human. Captcha helps with that. Now we’ll find this option inside: System » Configuration » Client » Configuration client Price per client group From now on it’s Read more…

How to set tier prices programmatically in Magento

Working with tier prices programmatically in Magento is somewhat tricky. I found a couple of annoying bugs or behaviors that really got me stuck. I’ll speak about that at the end of this post. Update: Our colleague Josh found how to solve this issue by rewriting a core module. Take a look at that solution in StackOverflow. The solution below is still valid and you can use it anyway! Setting tier prices programmatically In order to Read more…