Posted on

Magento Events Explained and a few Gotchas avoided!

This post is about the Magento Event system – a full explanation of how it works and a couple of issues I had with it resolved. Hope it is a help for people wrestling with the Magento event dispatch mechanism.

My particular situation was this: when automatically fetching tracking details from our carriers via a Magento cron job, the resulting Google Checkout Magento event did not fire, so the end customer was not receiving the notification properly – even though the ‘shipment’ object within Magento was correctly displaying the tracking details.
Continue reading Magento Events Explained and a few Gotchas avoided!

Posted on

Pre-release: SMTP Pro / Magento Gmail & Google Apps Email Beta testing (win a prize)

In a bid to help solve a weird 404 error that Kevin has been experiencing with the self test I offered him a pre-release copy of my upcoming ‘unified’ Magento email extension. It will support both SMTP and Google Apps/Gmail along with a few new features.

Anyway, if anyone is keen to try the extension please contact me or flick me an email or post a comment and let me know, I’ll send through the files, I’d rather not post it for public availability here yet, because it’s not as stable as I’d like. But expect it very soon!
Continue reading Pre-release: SMTP Pro / Magento Gmail & Google Apps Email Beta testing (win a prize)

Posted on

PHP 1, Java 0: The method assertEquals(Object, Object) is ambiguous for the type

Th old Ashley would never say this, maybe I’ve been working with PHP too long, but seriously, I’m going to have to side with the dynamic language crowd on this one – I think I have been spending too much time developing with Magento!

After an Eclipse upgrade a whole raft of my unit tests started failing to compile with the error: The method assertEquals(Object, Object) is ambiguous for the type. What this means is I’m passing an int and and Integer into a method that has two different signatures: assertEquals(Object, Object) and assertEquals(int, int) both of which could be called, thanks to autoboxing.
Continue reading PHP 1, Java 0: The method assertEquals(Object, Object) is ambiguous for the type

Posted on

3 easy steps to add products to the Magento Home Page (or any CMS page)

I wanted to add a small selection of products to the Magento homepage, and I thought I’d quickly write up how I did it, because it brings together a few little tidbits from around the net. This solution will use a specific category which can either be an actual category with a few products in it (e.g. specials), or one you created specifically for displaying on the home page (let’s call it ‘home page featured’). It takes only 3 simple steps as shown below.
Continue reading 3 easy steps to add products to the Magento Home Page (or any CMS page)

Posted on

Sneak Peek at the New Magento Gmail/Google Apps and SMTP extension

Wow a month since my last blog post, I’ll have to stop calling this a blog and make it a magazine if these blog posts don’t get more frequent huh?! Anyway, I do have something interesting to report from the world of Magento email extensions, particularly my Google Apps/Gmail extension and my SMTP Pro extension are in for a bit of a shake up.
Continue reading Sneak Peek at the New Magento Gmail/Google Apps and SMTP extension