Archives For Magento

I wrote up an article over on MageBase this weekend expanding on a tip I got from the Magento Developers Paradise. In the process of writing it, I went through a worked example and as usual with articles you want to make sure the code actually runs too, so I installed it on my local test Magento. Having done all of this, it occurred to me that the only missing part of what I had done to make it into a usable extension was an implementation of this function:

class Aschroder_ProductAudit_Model_Entity_Attribute_Backend_Audit extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract {
 
    protected function _afterSave() {
		// This is where we would perform the audit (or any other logic we wanted)
		// We could email the changes to a store admin, for example
    }
}

So I went ahead an put a simple little implementation in the custom backend model. The result is Magento Product Audit, a trivial little extension that will let you know when your products change, and who changed them.
Continue Reading…

Having just got back from the Magento Developers Paradise in Mallorca, I thought I’d try for a creative summary, here we go.

1

The number of blog contributors I enjoyed meeting in person.

2

The number of wing mirrors involved in my first motor vehicle incident in Mallorca, < 15 minutes after renting the car.

Continue Reading…

This is just a quick note that might save someone some time/effort. I’ve been working with the Shipwire Tracking API and Magento lately and although I think their API is good, it’s lacking in certain areas. Namely utility for customer facing applications.

The Shipwire tracking API returns short codes for carrier and service, which doesn’t really make it very useful for customer facing communication, nobody wants to know their parcel shipped on “RM FCLR“, instead of Royal Mail First Class Large Letter – Recorded Signed For. I contacted Shipwire support about it and they provided the comprehensive list of carriers and codes (thanks Gene!).
Continue Reading…

Big mistake, big face palm

-			// TESTING
-			$files = array("js", "media");

Please get the latest version on Magento Connect as soon as you can…

And sign up to be notified of future bug fixes/features – I’ll aim for more of the latter and fewer of the former.

PS: Big Thanks Oren for bringing this to my attention.

I’ve had a love/hate/hate/hate relationship with Google Checkout and Magento for a long long time. Today marks a new low in our relationship. I’ve wasted so much time on this bug that I have made up a pie graph that illustrates the situation using Google’s charting API:

too much time with fucking Magento bugs

I’ve been on a journey to the bowels of the Magento Tax system and having spent the better part of 6 hours debugging through my issue I can safely say I will not do that again. The issue is that the totals are only collected once per address so depending on how many addresses you have and whether they are shippable or not, you get all sorts of weird results out of the shipping tax calculation. My issue was the calculated VAT amount on merchant calculated shipping in Google Checkout was wrong by a factor of tax % on shipping. So for £10 shipping in the UK, £1.75. Annoyingly it meant that Google would charge less than Magento recorded the order as being worth so now I have all sorts of mismatched order totals to deal with too. The issue could manifest itself as shipping tax being charged in Magento but not in Google Checkout too, if the tax was calculated on paid method, but the customer chooses a free method, for example.

I’ve reported the bug, so I really really hope it gets fixed soon – if someone else goes through what I just did, it would be a travesty.
Continue Reading…