I don’t know what you tried so I’m just going to list all the steps needed to add a new…
4x Masonry Grid
Are you looking for the solution i.e. customer can provide their inputs or comments along with the products they are…
Magento provides an easy way of adding products to shopping cart via query string. To create a simple add to…
I always seem to end up in a position where I need more specific information from a collection than addFilter()…
Recently I had to add some additional Javascript validation to a core part of the Magento Admin, and I thought…
Rather than going into detail of creating the Shopping Cart Price Rule from scratch, this post is specifically about conditions…
This is a question that seems to be asked quite often by new Magento developers. There is no simple Mage_Catalog_Model_Product::getAssociatedProducts()…
Recently I needed to add a surcharge to orders using a particular payment type. Surcharges are what is called a…
Unfortunately there is no magic button you can push to upgrade your version of Enterprise. If you have enterprise, you’ll…
If anyone of you facing problems to fetch the Magento URL paths of skin, media, Js or simple base URL…
This is a pretty easy one, but it’s something that can come in very handy at times. Say you want…
In Magento, whenever you make changes to products, static blocks, etc, it recognizes that the data in the database is…
Somewhere around Magento 1.5, message from the title of this post begun to pop on every product save.Although quite anoying,…
Add the below code in the catalog.xml in the product view section <block type=”review/product_view_list” name=”product.info.product_additional_data” as=”reviews” template=”review/product/view/list.phtml”> <block type=”review/form” name=”product.review.form”…
Here is the code to get the cms block in magento front end. $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘blockidentifier’)->toHtml() In the editor you can simply…
below is the code to show magento pages in a drop down box <select name=”page”> <?php foreach (Mage::getResourceModel(‘cms/page_collection’) as $page){…
simply delete the files and folder from the var/cache folder and var/sessions folder and then try.It will work.
Here is the code to add category filter on the product collection $productcollection = Mage::getModel(‘catalog/product’)->getCollection();$productcollection = $productcollection->addCategoryFilter(Mage::getModel(‘catalog/category’)->load($currcategory),true);$productcollection = $productcollection->addAttributeToFilter(‘special_price’, array(‘gt’…
Get title <?=Mage::getSingleton(‘cms/page’)->getTitle()?> Get Identifier <? echo Mage::getBlockSingleton(‘cms/page’)->getPage()->getIdentifier()?> Get Page ID <? echo Mage::getBlockSingleton(‘cms/page’)->getPage()->getId()?>
Below are the 2 different way to display the product count in the category in magento. <?php $catObj = Mage::getModel(‘catalog/category’)->load($_category->getID()); $prodObj =…
Getting all options of a specific magento configurable product attribute is fairly easy: getAttribute(‘catalog_product’, ‘color’); foreach ($attribute->getSource()->getAllOptions(true) as $option) {…
1. Take the backup of your current database 2. Run the below queries 3. I have not fully tested that…
<select name=”” style=”width:220px;” onchange=”location.href=this.value”> <?php $children = Mage::getModel(‘catalog/category’)->getCategories(YOUR_CAT_ID); ?> <?php foreach ($children as $category) { $i++; $cat = Mage::getModel(‘catalog/category’)->load($category->getID()); ?> <option…
Here is the code to fetch the attribute (that should be configurable in magento database) from the CRE Loaded database…