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.
This problem happens with jQuery Easing Plugin. This error occurs when a newer version of jquery and jquery.easing is used with an older version of the call to animate.easing. Solution:…

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…)
Just like the title above happens if you login to the Cpanel / Webmail using Internet connections that have a dynamic IP. Dynamic IP is the IP numbers that change itself is happening on the ISP (Internet Service Provider). Usually the GSM modem based ISP.

(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…

Problem:
$button0 = "candy";
$button1 = "pop";
$button2 = "nuts";
$button3 = "sugar";
$buttons = 4;
$counter = 0;
while ($counter < $buttons) {
$printbutton = "$"."button".$counter;
echo($printbutton."<br />"); // echos $button0 but not the value of $button0
$counter = $counter+1;
}
What happens is that $printbutton always prints $buttonx (where x = $count) but I want it to print candy or nuts or whatever $buttonx’s value is.
Solution:
(more…)
How to define a global variable in CakePHP which i can use anywhere in the application. Solution: You can write a new config value or you can define a variable…
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 : [php] [/php]…
I got product type following way in phtml file [php] $product=Mage::getModel('catalog/product')->load($product_id); $productType=$product->getTypeID(); //Simple Product if($productType == 'simple') { echo "Simple Product"; } //Configurable Product if($productType == 'configurable') { echo "Configurable…