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 »

How to fix Jquery Conflicts in Magento

After digging through some more forum posts, I found the answer.Change the line: Code: $(function() { to: Code: jQuery.noConflict();jQuery(function($) { noConflict removes the alias from jQuery to $. You could replace all of your $’s with jQuery if you really wanted. Or, just wrap your code with jQuery(function($) { regular jQuery code });Similarly, the  Code: […]

Read More »

Magento NewsLetter Subscribe Form Code to Footer

It used to be the case that to move your Newsletter Subcribe form, or other Magento blocks, from their original position in your Magento template you would need to go and find the relevant lines in the layout XML files and modify them to show in a new postition. This however was a tedious process; […]

Read More »

How to create a new page xml layout in magento ?

Want to take your Magento Themes to the next level? Have multiple layouts? If you’re looking to add a new page layout in Magento, create a custom layout or create a new theme layout then this solution is probably for you.First we have to create a module. Create file: app/etc/modules/Mage_Page.xml <?xml version=”1.0″?><config> <modules> <Mage_Page> <active>true</active> […]

Read More »

How to Set New York Luxury Tax in Magento

My client sells shoes and clothing in NYC, and their law says any piece of clothing of price $110 and above should be charged 8.825 tax. Now, since Magento doesn’t support tax thresholds, we were puzzled on how to tackle this one, especially since the functionality itself was not in the budget. So we created […]

Read More »