CAT | PHP
I wanted to use the json_server module in conjunction with Drupal’s services module to enable JSON communications instead of just XMLRPC. I ran into a couple of issues however: first, the JSON packet wasn’t being encoded correctly and second, the ‘#’ in the array keys was causing issues with the array lookups. I ended up [...]
With the latest release of Magento admins now have the ability to create custom “widgets” that can be dropped anywhere on the site to provide additional functionality. The most common type of widget that I come across is a simple frontend presentation widget. Basically the developer is asked to display some sort of data in [...]
The Problem: You want to override a Controller’s action with a custom action. Magento Enterprise v1.6.0.0 The Solution: I ran into some issues trying to override a controller’s action yesterday. I think it mainly stems from a version change, but at any rate here’s the “new” way to do it. This comes from a helpful [...]
20
Magento Partial Refund Amount Correction for Authorize.net
5 Comments | Posted by Will Wright in Magento, PHP
The Problem: You’ve enabled partial refunds in the Authorizenet Model, but it’s not refunding the proper amounts. This is due to, in my view, a bug in the core which I’ll show you how to patch! The Solution: What you need to do is overload the refund method in the Authorizenet model. Create a new [...]
5
Custom Magento Grid with Ambiguous Column on Filter
13 Comments | Posted by Will Wright in Magento, PHP
The Problem You’ve built a custom grid and the source collection has an ambiguous column in the where clause when applying a filter. The Solution I recently ran into this problem while I was building a custom grid. The situation should be familiar to many of you. I have a custom table storing addresses; for the [...]
