Magento Product Collection

Many a time I have seen code where coders are doing all the product manipulation and work within PHP and not letting Magento do the work. Now, there is a caveat here that depending on the data you’re using, this …

 

Adding a category attribute to Magento

Not sure why it took so long to figure out, but adding a YES/NO attribute to categories actually turned out to be pretty easy. I wanted a quick way to set a category as “featured”. So, I created a quick …

 

A WordPress Twitter stream, without the RSS…

Recently, Twitter made some changes and dropped support for RSS (as well as imposing plenty of other measures and limitations along the way). You can read about it here – http://mashable.com/2012/09/05/twitter-api-rss/ A while back, I shared some code on How …

 

Selecting a single, random product from a collection in Magento

I was recently working on a site where a “featured” product was required on the homepage. Rather than just making this a category, or a specific product, I wanted to give as much flexibilty as possible, and also allow them …

 

Programmatically removing product images in Magento

From time to time you might want to remove images from a large amound of products in Magento. I had this exact situation recently trying to help someone in the Magento IRC channel (#magento). In our case, we needed to …

 

Clearing Magento re-writes

From time to time, Magento really screws up. You might find that suddenly, all your products 404, or category pages go missing. Sometimes, a quick re-index works out the issue. Sometimes, it doesn’t! So, what do you do? The best …

 

Google Rich Snippets / Microformats with Magento

Rich snippets (microdata, microformats, and RDFa) have been around for a while. The few lines of text that appear under every search result in Google are designed to give users a sense for what’s on the page and why it’s …

 

Configuring Magento with development in mind

Magento is a very powerful system, but sometimes it can be a pain to develop for. You’ll find that sometimes your theme over-rides the default functionality, but sometimes a plugin or addon over-rides that and it can be a pain …

 

Adding new customers to the Magento store programmatically

From time to time, you might want to add customers to your Magento store via a script, rather than by hand. This can be especially useful if you’re migrating from an existing solution into a Magento solution. Setting up a …

 

Attribute Mapping for existing products in Magento

Sometimes we need to add new attributes to a Magento store. Sometimes that store is new and hasn’t been populated, sometimes it’s got 20,000 products in it. I recently wrote an article about Attribute Mapping with Google Content in Magento …

« Older posts