Magento Email Template If Statements
I was able to more or less accomplish this right in the template using {{depend}} template tags.
I was able to more or less accomplish this right in the template using {{depend}} template tags.

In many cases we need to extend a Magento core functionality.
What should be the best way to do this? We could just copy the core model class file to the local directory from core. This could be the easiest way, but far from the best.
The cleaner way would be to override/rewrite a core module class.
How to do that? Well, bellow we will present an example.
Override the sales order model (Mage_Sales_Model_Order class):
(more…)
Here is a quick tip to add OR query and AND query to collection object. I am implementing this on product collection. Getting product collection Adding AND query condition Filtering…
I had the same issue and RESOLVED IT by the following 1. Move live site to test/production server 2. UPDATE the following in core_config_data: web/unsecure/base_url web/secure/base_url 3. Modify magento/app/etc/local.xml to…
I have tried many times but I didn’t got success . But today I got the solution to show the currency symbol of product price: Currency Code : Currency Symbol…
I got product type following way in phtml file Source: http://stackoverflow.com/a/12419301
Whenever you have a product object, you can access its attribute set like this: This will give you the name of the attribute set, which you can then compare using…
One issue with Magento is the overhead involved in importing/exporting data which can cause timeouts when run from the web. Here is a script which will run from the command…
I have found that it is very useful to be able to get attributes from the system and use them in places other than a products category page. I always forget the exact syntax to use so, this is going to be my unofficial cheat sheet.
This is how to get a drop down lists options. I don’t think it will work for a mulit-select attribute. I stick the value/label pairs into an array to use how I please.
(more…)
Problem: how to retrieve product attributes by group id. See here: http://www.magentocommerce.com/boards/viewthread/79694/ Possible solution: Source: http://marius-strajeru.blogspot.com/2010/03/retrieve-attributes-by-groupid.html