Tuesday, October 23, 2012

Magento module direct download link

If there is problem to install the magento extension through the magento connect ,then you can download the module zip file using extension key using the following url


http://freegento.com/ddl-magento-extension.php


Enjoy!!!!!!

Wednesday, October 17, 2012

How to get default configuration store scope setting value in mgento

Hi Guys,

One day i need to pull the country collection of selected in the Allow country list in under general tab for default configuration store scope but not getting any clue for this. After 4-5 hours review the code and database table finally  i success to do this. I don't know this is right way or not but it works . it may helpsome who want to such a things.......

////////////////////////////////////

             $rr= Mage::getConfig()->getNode('general/country/allow','default');
$rr=explode(',',$rr);
$options =Mage::getModel('directory/country')->getCollection()
->addFieldToFilter('country_id',array('in'=>$rr))
->load()
->toOptionArray();


///////////////////////////////////////
 This line       $rr= Mage::getConfig()->getNode('general/country/allow','default');  help to choose the country id string for default scope value. And then we can get the selected country's  list.


enjoy!!!!!