2010/01

Australia Day Extension Release

by Chris Norton in Announcements

In addition to the feed generators, there are some incremental improvements to the rest of the extension, most notably in the BPAY and direct deposit functionality, which now have their own order statuses to help administrators determine at a glance which payment method was used to place an order.

We hope these changes will continue to provide Australian online retailers with commonly desired functionality for running a Magento website in Australia. We've had great feedback on the extension so far, and are keen to hear any comments or suggestions that members of the community may have for future versions.

Read More

Using jQuery with Magento

by Tom Greenaway in Magento

Installing jQuery

jQuery can be downloaded from jquery.com and to install it you need to copy the file to the following directory:

skin/frontend/default/your_theme/js

To include jQuery you need to edit layout/page.xml where you need to add the following to the head block:

<action method="addItem"><type>skin_js</type><name>js/jquery.js</name></action>

Normally, this would be all you need to do, however because Magento also includes Prototype, there is a subtlety we need to deal with. jQuery uses '$' as shorthand for accessing the jQuery library. But Prototype also uses '$' to access itself. This causes a conflict in the global JavaScript namespace of the web browser. Fortunately jQuery provides a solution, the jQuery.noConflict(); function defines a new shorthand for jQuery, such as:

Read More