-
Recent Posts
Recent Comments
Archives
Categories
Tags
404 attributes bestseller block caching categories categoryfilter children cms cms pages column concatenate css csv current url eBay errors excel extensions google analytics inchoo javascript jNice layouts left block local login magento install merge new products newsletter not-magento parent popular search terms products query send a friend static blocks subcategories template url-
Monthly Archives: July 2011
How to get the newest products of magento current category
If you ever need listing the newest products of magento current category (or even of a category given by it’s Id, see the code comments) <?php $totalPerPage = ($this->show_total) ? $this->show_total : 9; $visibility = array( Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH, Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG ); … Continue reading
Get magento page current url
echo Mage::help(’core/url’)->getCurrentUrl();
Magento new products
New products is one of the useful feature required for a magento site. Below is a short example how to have this. You can call this in a cms page. $totalPerPage = ($this->show_total) ? $this->show_total : 9; $visibility = array( … Continue reading
Magento query filter by category and attribute
We know how to show up the products of a category in a cms page. But what if we wanna filter them by an attribute? Here is an example where $category_id is a given category ID, $currentPage the number of … Continue reading
Posted in Categories, Queries
Tagged attributes, categories, categoryfilter, cms pages, query
3 Comments
Magento login problem after localhost install
If you install Magento on localhost (with http://localhost/magentodir as base url) you will fail to login successfully into the backend. There are two solutions for this problem. First is to create a virtual domain by adding 127.0.0.1 localhost.com to your … Continue reading
Add featured category products to cms home page
If you have a category with products( like the featured products) you can include them in a cms page calling the template block the following way: {{block type=”catalog/product_list” template=”catalog/product/list.phtml” category_id=”5″ column_count=”4″ }} You have to change category_id 5 for your … Continue reading