2009

How to set up a Magento store for Australia

Looking for instructions for Magento 2? Take a look at the new post How to set up a Magento 2 store for Australia. Running Magento stores in Australia differs very little from any other country, but there are a few things that you need to do for compliance with ATO requirements and to ensure that Magento calculates taxes correctly. The following is an outline of the necessary configuration and settings you may need to consider when setting up Magento for an Australian store. Read more →

Fontis reCAPTCHA 2.0

What's New In addition to the usual bug fixes, we have added some great new features, such as: New backend interface reCAPTCHA on Product review form New Magento-based reCAPTCHA theme Multiple language support Controller overriding redeveloped to minimise conflicts between different extensions New backend interface In the new version all reCAPTCHA related settings have been grouped into a single configuration area, which can be found in the Recaptcha section under a new Fontis Extensions tab. Read more →

Add product custom options

Like rating summaries, custom options are stored separately to the product object. The best way to set them is to first create an array with the data for the option: $options = array(); $options[$sku] = array( 'title' => 'Option Title', 'type' => 'radio', 'is_require' => 1, 'sort_order' => 0, 'values' => array() ); $options[$sku]['values'][] = array( 'title' => 'Option Value 1', 'price' => 0.00, 'price_type' => 'fixed', 'sku' => '', 'sort_order' => '1' ); $options[$sku]['values'][] = array( 'title' => 'Option Value 2', 'price' => 89. Read more →

Alternative Magento category tree structure

The underlying issue is that the 'Default Category' is not easily accessible in code. For example, the default top navigation in Magento uses the getStoreCategories() method to access all categories. But that method starts by returning the 'Default Category' child categories and never returns the 'Default Category' itself. A solution to this is to add a subcategory, such as 'Products', under the 'Default Category' so that we can effectively treat the 'Products' category as the root of the category tree. Read more →

Magento Melbourne Users Group

Fontis is pleased to announce the official launch of the Magento Melbourne Users Group - MagMUG - and the inaugural meeting, taking place in two weeks time. MagMUG is an opportunity for anyone in the Melbourne area working with Magento to engage with others in the community. Details of the first meeting can be found on the MagMUG site. At this stage, the plan is for meetings to be one hour long and consist of two presentations, followed by general discussion. Read more →

Accessing product rating summaries

Product ratings are an important tool for gaining credibility and driving sales in any online store, and are yet another powerful feature built-in to the Magento core. Ratings can be a valuable criteria to make visible to people browsing the site, so rather than hide them away on product pages only, it can be desirable to display rating summary data elsewhere, or to use the data in developing other custom functionality. Read more →

Adding order comments

For all orders, Magento keeps a Comments History of all activity on that order. This allows an administrator to track changes that have been applied to the order status, as well as to attach comments for internal use or to be sent to the customer. If you are writing a custom extension that modifies orders then it's best to work within this system and to have your code update orders with the results of any processing done on them. Read more →

Creating Magento products from a script

Magento allows several different ways to add products to the catalog, including manual editing, upload via spreadsheet and the web services Magento Core API. For developers who want to add products through PHP however, there are a few caveats to be aware of for the product to be displayed on the frontend. The basics of adding a new product are trivial - you get a new copy of the appropriate model, fill in the details and call the save() method: Read more →

Loading large collections

Working with large Magento collections in PHP can often cause problems with memory usage and, to a lesser extent, computational overhead. The common method of loading all objects in the collection quickly becomes problematic as collection size increases. For stores with thousands of products or categories, chances are you'll be running into PHP memory limits more often than not. This post explains how to process collections in a less memory intensive way and should be a starting point for working with any large collection. Read more →

Magento Connect 2.0 developer survey

The Magento Connect system is a vital part of the Magento ecosystem and has had a lot of success since it launched a bit more than a year ago. As always, there is room for improvement and hence we were very glad to see Varien provide the community with an opportunity to participate in the future direction of the system by running two surveys, one for extension users, and one for extension developers. Read more →