Skip to content

Instantly share code, notes, and snippets.

<?php
$dir = dirname(__FILE__);
chdir($dir);
require $dir.'/app/Mage.php';
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
$configSections = Mage::getSingleton('adminhtml/config')->getSections();
// look for node entries in all system.xml that use source_model=adminhtml/system_config_source_email_template
// they are will be templates, what we try find
[globalVar = GP:tx_news_pi1|news > 0]
temp.newsTitle = RECORDS
temp.newsTitle {
source = {GP:tx_news_pi1|news}
source.insertData = 1
tables = tx_news_domain_model_news
select.languageField = sys_language_uid
conf {
tx_news_domain_model_news >
tx_news_domain_model_news = TEXT
@DevertNet
DevertNet / Magento Country Codes
Created February 24, 2016 14:08
Magento Country Codes
Country 2 Digit Code 3 Digit Code
Afghanistan AF AFG
Albania AL ALB
Algeria DZ DZA
American Samoa AS ASM
Andorra AD AND
Angola AO AGO
Anguilla AI AIA
Antarctica AQ ATA
Antigua and Barbuda AG ATG
#!/bin/bash
exec < /dev/tty
if [ ! -f ./system.txt ]; then
echo "File not found!"
read -p "Status of the system (local,dev or live)? [n]" -r
echo $REPLY > ./system.txt
fi
dumpname=`cat system.txt`