Posted on: 11th May 2012
By: Robert Kent
If you want to get your attribute options – whether it be from a drop-down or multi-select attribute you can do so easily using the following code: The above will give you back an array of Labels and the attribute option ID. It’s really just a little snippet but is really useful, I’ve recently used it to [...]
Read More…
Posted on: 9th May 2012
By: Adam Moss
For any Magento developer or module maker you will find yourself consistently needing to load product collections for a variety of reasons. Whether you’re creating an AJAX search form, creating a back-end inventory module or simply showing a list of products on your homepage you will need to show and filter your products. Magento’s Mage_Catalog_Model_Resource_Product_Collection class [...]
Read More…
Posted on: 1st May 2012
By: Adam Moss
I posted a few months back about echoing custom variables on a phtml page. This works fine if you’re working only with the one store/website. However in the instance that you are working with multiple stores in potentially differing languages, it’s important to know how to echo the correct custom variable data for your store [...]
Read More…
Posted on: 27th Apr 2012
By: Robert Kent
If you are experiencing problems when generating xml sitemaps through Magento a quick trick to fix it is to perform the following: Delete your xml sitemap Create a new xml sitemap and upload Make sure permissions on your xml sitemap is set to 777 Schedule your xml sitemap generation (or click generate again) The reasons [...]
Read More…
Posted on: 19th Apr 2012
By: Adam Moss
Sometimes, blog posts covering ‘the basics’ are more useful than my essay-length tutorials. This is something that I have been asked about a lot by Magento newcomers, so here it is in black and white for those getting to grips with Magento’s features. You can use custom product attributes to create more detailed and specific [...]
Read More…