Diamond — Responsive Magento Theme

Posted on April 30th, 2013 | Posted by admin

A few words about «Diamond» Magento Theme

«Diamond» is the Magento template, which is made in a clear & modern style. Keeping pace with the times we offer a truly high-quality solution. Combined with a thoughtful and carefully elaborated design, «Diamond» will leave no one to be indifferent. Using this theme you can not only increase conversions quality and number of positive reviews but also make a pretty good surprise to your customers.

  • 100% Magento Community Edition 1.7.x compatible;
  • Fully Responsive;

Magento – How Do I Merge all css and js files into one

Posted on April 29th, 2013 | Posted by admin

Magento - How Do I Merge all css and js files into one

Go to Admin->System->Configuration
under “Advanced” tab you can find out “Developer” option, select this option
then you can see “Javascript Settings” and “CSS Settings”
set “Yes” for “Merge Javascript Files” and “Merge CSS Files”
Now all of your js are being merged into one same as css files are merged into one.


Posted on April 28th, 2013 | Posted by admin

When I first needed to access a collection of countries in Magento I assumed it would work like all other data collections but was shocked to find that this wasn’t the case. Rather than store country data in the database, Magento stores country data in an XML file and loads it in on each request. Fortunately though, there are some simple functions that we can use to access country names and codes in Magento.

Get An Array of Country Names/Codes in Magento

$countryList = Mage::getResourceModel('directory/country_collection')
echo '<pre>';
print_r( $countryList);

The above code will print out an array containing every country code and country name known to Magento.

Drop Downs and Country Information

The most common reason developers access country names in Magento is to create a drop down. There are several ways to accomplish this and they differ depending on whether you’re in the admin or the frontend.

Magento – Dumping objects with Zend_Debug::dump

Posted on April 26th, 2013 | Posted by admin

Magento – Dumping objects with Zend_Debug::dump
Use Zend_Debug::dump($foo); instead of using var_dump($foo); or print_r($foo); it is essentially the same, just a wrapper with pre HTML tag for formatting and escaping of special characters.

However there will be times that simply dumping objects to the screen can be too much and cause browser hangups or even crashes. So the best practice is to always use the getData() method that Magento has built-in to the Varient Object, this will prevent redundant amounts of data dumped to the screen, but only the bits we really want.

Dealing with “Base table or view not found” and Similar Errors

Posted on April 25th, 2013 | Posted by admin

Typical extension installation involves uploading extension files and clearing Magento cache. Under certain circumstances, extension does not get installed, and Magento starts reporting (in var/report directory, by email, or on screen, depending on the settings) errors like “Base table or view not found”, “Column not found” or “Index not found”.

In this article, we examine why it happens, how to avoid it and how to fix it.

How to fix

If you are reading this article good chances are that you already getting one of the errors listed above and looking for solution.

Here it is:

  1. Let Magento think the extension is not installed.
  2. As extension can be half-installed into database (see below), throw away that half-installed database tables.
  3. Let Magento install the extension anew.
Page 1 of 612345»...Last »