Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
LOCK TABLES `directory_country_region` WRITE;
UPDATE `directory_country_region`
SET default_name = 'A Coruña'
WHERE region_id = 130;
UPDATE `directory_country_region`
SET default_name = 'Álava'
WHERE country_id = 'ES' AND code = 'Alava';
#atributos de catalogo creados por el usuario
SELECT attribute_code FROM eav_attribute AS eavAttr
WHERE eavAttr.entity_type_id = 4
AND eavAttr.is_user_defined = 1;
#atributos de catalogo NO creados por el usuario (magento core)
SELECT attribute_code, attribute_id FROM eav_attribute AS eavAttr
WHERE eavAttr.entity_type_id = 4
AND eavAttr.is_user_defined = 0;
<?php
define('MAGENTO', realpath(dirname(__FILE__)));
require_once MAGENTO . '/app/Mage.php';
Mage::app();
$app=Mage::app();
Mage::app()->cleanCache();
flush();
iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini
#funcion rapida para crear una rama de feature desde master en un proyecto. tecleando fr y la rama
function fr { git checkout master -b FR#$1;}