Skip to content

Instantly share code, notes, and snippets.

View fmarangi's full-sized avatar
🏠
Working from home

Francesco Marangi fmarangi

🏠
Working from home
View GitHub Profile
class ConfigExporter extends Mage_Shell_Abstract
{
public function run()
{
$xml = new Varien_Simplexml_Element('<config />');
foreach ($this->getConfigValues($this->getArg('path')) as $item) {
try {
$path = $this->_getConfigPath($item['scope'], $item['scope_id'], $item['path']);
$xml->setNode($path, $item['value']);
} catch (Exception $e) {