Magento Themes and Magento Extensions

Stop Empty Attributes Showing as ‘No’ in Magento

Posted on April 2nd, 2013 | Posted by admin

If you don’t complete and attribute for a product in Magento it displays as ‘No’ rather than just hiding them. This means attributes that aren’t relevant for a product will still appear confusing the user. There is a simple fix for this:

Open  /app/design/frontend/default/YOUR THEME/template/catalog/product/view/attribute.phtmland change this:

<?php foreach ($_additional as $_data): ?>
<th><?php echo $this->htmlEscape($this->__($_data['label'])) ?></th>
<td><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
<?php endforeach; ?>

for this:

Magento : cache_dir must be a directory

Posted on March 29th, 2013 | Posted by admin

cache_dir must be a directory : This problem came generally when you move your magento store to another host or server . There are mainly two solution for this problem

1 -  Make sure your cache directory is writable or you can make writable to var folder of magento

but sometimes this situation does not work so here is the alternate solution. Go to this location lib/Zend/Cache/Backend/

and open file.php file you’ll see the code something like this

Show category block on a magento page via cms

Posted on March 28th, 2013 | Posted by admin

Show category block on a magento page via cms

Add this snipp to any page’s body in the cms to show a category’s items on that page. “category_id” being the id of the category, duyee.

{{block type=”catalog/product_list” category_id=”4″template=”catalog/product/list.phtml”}}

How to Display New Products in Magento with Pagination?

Posted on March 27th, 2013 | Posted by admin

Displaying new products to a specific category in any Magento site , with pagination and a CMS page is really very complicated. The default functionality that Magento offers for latest products doesn’t just work. However, below is documented the method that will let you add new products to a Magento CMS page along with pulling up new products for any category you select, or for the entire site. Whether you are looking to include new products to your CMS page by category or for the whole site, it all depends upon you.

How to add new products with built-in Magento Tools?

Displaying or adding a list of new products in Magento through a default block is made possible without any coding issues or changes to Magento itself. This code allows you to roll out a roster of new products on the CMS page of your liking.

How to display new products in Magento with Pagination?

Magento Check if Home page is Current Page

Posted on March 26th, 2013 | Posted by admin

There is no built-in default function to check if the current page is the home page in Magento. But it doesn’t stop you from writing your own.

One way to do so is:

if ( $_SERVER['REQUEST_URI'] == "/" || $_SERVER['REQUEST_URI'] == "/index.php" )
Page 10 of 90« First...«89101112»203040...Last »