Magento Themes and Magento Extensions


Posted on July 10th, 2014 | Posted by admin


I have recently come across an issue when trying to add a Widget to a CMS page.

When clicking “Insert Widget” a javascript alert appeared shouting El is NULL.

The reason for this is a missing forward slash from Lib/Varien/Data/Form/Element/Editor.php Line 202.

To fix this error copy Lib/Varien/Data/Form/Element/Editor.php to app/code/local/Lib/Varien/Data/Form/Element/Editor.php


Magento-Configurable Products-Changing Order of Drop Down Select Buttons

Posted on July 1st, 2014 | Posted by admin

Occasionally, we are asked to change the order of the select dropdowns on configurable products. In our example, the following image shows the order of dropdowns on our product page

Magento sample order checkout

Posted on May 28th, 2013 | Posted by admin

In my site there are products like curtains and customer can choose different color for curtains, for color we are using custom options so customer can choose different color, but there are we have requirement that customer can order sample color to look and feel before buying actual product, so how we can give sample order functionality.

Colors are not actual product so we can’t use magento checkout functionality but if customer order sample product then how we can handle this sample order?

How To Set the Thumbnail Size in Magento

Posted on May 25th, 2013 | Posted by admin

You would expect the ability to resize thumbnails to be accessible on the admin area, but no. Again, a quick drill in the source code is required.

At the beginning I was a bit annoyed, but then I realized – this is actually a good thing! The main idea is that Magento grants you with a free hand to customize your thumbnail size for each view and situation. For instance: you want the thumb size to be different when you view your products on your front page, or in a category page – grid view. Then when on the list view – you would have much bigger thumbnails, and why not? more room for larget thumbnails on this view.

So in fact, when you assign a product photo in the back end, Magento downloads and crop only the actual image. The whole resizing deal occurs every time you load the page. So for each page you can set a different size, not only for the images’ html, but for the actual thumb.

Magento – Display Sale Icon If Special Price

Posted on May 23rd, 2013 | Posted by admin

Magento – Display Sale Icon If Special Price

Open app/design/frontend/YourPackage/YourTheme/template/catalog/list.phtml

Find (around line 96)

<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>

change to

<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />

    // Get the Special Price
    $specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
    // Get the Special Price FROM date
    $specialPriceFromDate = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialFromDate();
    // Get the Special Price TO date
    $specialPriceToDate = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialToDate();
    // Get Current date
    $today =  time();
Page 4 of 90« First...«23456»102030...Last »