Tag Archives: php

Associate Magento products to a specific store

Recently, I needed to associate a large number of products with a specific “store” in Magento. Rather than go through each product individually, I thought it might be quicker to Read More »

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 Read More »

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 Read More »

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 Read More »

Attribute Mapping with Google Content in Magento

I’ve worked on a few Magento builds recently where the client has requested Google Merchant Centre integration. We’ve used some third party tools previously to create feed files that we Read More »

Including Magento blocks in a WordPress theme

Including Magento blocks in a WordPress theme is straight forward, however, the internationalisation feature of both systems gets in the way. An example

File 3 would throw: Fatal error: Read More »

Getting Magento to work with BST/GMT

The problem If you run a UK based Magento store you probably already know that the store times are wrong for half of the year as the timezone switches between Read More »

Facebook Canvas Auto Height

I was developing a canvas app on Facebook this week for a client, using the new timeline dimensions (810px wide). Annoyingly, Facebook seemed to ignore the height attribute I specified Read More »

Create a Zip File Using PHP

A few days ago, a client requested a contact form submission to go to an autoimporting email address in a specific format. At first, this wasn’t an issue – a Read More »

Zend, Magento and WordPress – working together

I recently wanted to integrate WordPress, Magento and a bespoke Zend application to work together. For the main part, this was easy. I put the Magento installation into a seperate Read More »

Using Open Graph Protocol in WordPress for Social Integration (Facebook)

What is the Open Graph protocol The Open Graph protocol enables integrations of your web pages into the social graph. It is promenantly used by the Facebook Platform. Whilst the Read More »

Working with Yahoo! Maps Service

I did some work with the Yahoo! API recently to process CSV files of addresses to find longitude and latitude. The final code takes a CSV file, processes it, and Read More »