How to add customer group in registration form in Magento 1.7.2

Make a copy of config.xml from app > code > core > Mage > Customer > etc > config.xml and add the following line of code into the customer account fieldset and save it to app > code >local>config.xml and in this file add the following line of code into the customer account fieldset: <fieldsets><customer_account>…………<group_id><create>1</create><update>1</update></group_id>………..</customer_account></fieldsets> add code to the […]

Read More »

How to Add Review List And Review Form On Magento Product Page Tab

If you want to add customer reviews on product page tab these steps may help you. Locate and open your theme’s catalog.xml file – On the file look/search for: catalog_product_view – Look for the content enclosed within <block type=”catalog/product_view” name=”product.info” template=”catalog/product/view.phtml”> – Add your review form and list as shown below. <block type=”catalog/product_view_tabs” name=”product.info.tabs” as=”info_tabs” template=”catalog/product/view/tabs.phtml” […]

Read More »

How to add new links to magento Top links Navigation

Having troubles adding links to the top menu across site wide and have active functionality in it? That was very simple task in Magento that need one (1) file to be edited. Default Magento Wiki describes this topic but only limited in About Us page which is running to be default. When making a CMS […]

Read More »

Magento @ How to get number of cart items ?

Many websites show a “total number of items in your basket”. So, how do you get that information out of Magento if you’re not in the checkout process? You can simply call the Mage Helper file checkout/cart. If all you’re after is a total number, all you need is: echo Mage::helper(‘checkout/cart’)->getCart()->getItemsCount(); This code grabs the […]

Read More »

How to get actual price and special price of a product in Magento

Here is a quick and useful code on getting actual price and special price of any product in Magento. The actual price is the real price assigned to the product and special price is the price after any discount is applied to the product. Loading Product $_productId = 52;$_product = Mage::getModel(‘catalog/product’)->load($_productId); Get Actual Price // […]

Read More »

How to change default Page or Category layout in Magento?

Here, I will show you how you can change the default page layout in Magento. By page layout, I mean all CMS page, category page, etc. There are different ways to change the page layout in Magento. Here are some of them:- Changing individual category page layout You can modify the page layout of each […]

Read More »

How to get parent category Id in Magento

To get Parent Category Id you must know the current category Id, for that you need to write<?php $_cat = new Mage_Catalog_Block_Navigation();$curent_cat = $_cat->getCurrentCategory();$curent_cat_id = $curent_cat->getId();?>Now you can get Parent Category Id.write the code given below to get the Id<?php $parentId=Mage::getModel(‘catalog/category’)->load($curent_cat_id)->getParentId();echo $parentId; // $parentId will print your current category’s parent Id?>Source:http://xhtmlandcsshelp.blogspot.in/2010/08/how-to-get-parent-category-id-in.html

Read More »