Magento themes and extensions

addAttributeToFilter Conditionals In Magento

Share
Posted on September 9th, 2012 | Posted by admin

addAttributeToFilter is a function that can be called on a product collection in Magento. In short, it adds a condition to the WHERE part of the MySQL query used to extract a product collection from the database.
$_products = Mage::getModel(‘catalog/product’)->getCollection()
->addAttributeToSelect(array(‘name’, ‘product_url’, ‘small_image’))
->addAttributeToFilter(‘sku’, array(‘like’ => ‘UX%’))
->load();

The above code would get a product collection, with each product having it’s name, url, price and small image loaded in it’s data array. The product collection would be filtered and contain only products that have an SKU starting with UX.
addAttributeToFilter Conditionals

Remove space before body class: Magento

Share
Posted on September 8th, 2012 | Posted by admin

How does one remove the space before the class values?

In order to validate HTML, this:

Should be:

This is happening on my home page.

Create Custom Tab in Magento Product Add/Edit Page

Share
Posted on September 5th, 2012 | Posted by admin

If you are trying to add a custom tab to the product add/edit page in Magento admin, then you are at the right place. Today I will tell you a damn simple method to add the custom tab to product add/edit page. We will have to add few lines to the xml layout file of your custom module. Then create a phtml file that contains the html part to be shown in the tab.

Cake Shop Magento template released

Share
Posted on August 23rd, 2012 | Posted by admin

Cake Shop Magento themes FEATURES

  • Free Extensions include package
  • Full package with Latest Magento version + Full MA extensions + Sample database like live demo site
  • It is clear, easy to customize Magento template.
  • Slide show banner with admin panel with many effect yo can choose
  • Product tabs in home page

Luxy Magento template released

Share
Posted on August 21st, 2012 | Posted by admin
  • Free Extensions include package
  • Full package with Latest Magento version + Full MA extensions + Sample database like live demo site
  • It is clear, easy to customize Magento template.
  • Slide show banner with admin panel with many effect yo can choose
  • New product slider display featured product in home page