This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A simple fix for a shell execution on preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version); | |
* The only edit that was done is that shell_exec('mysql -V') was changed to mysql_get_server_info() because not all | |
* systems have shell access. XAMPP, WAMP, or any Windows system might not have this type of access. mysql_get_server_info() | |
* is easier to use because it pulls the MySQL version from phpinfo() and is compatible with all Operating Systems. | |
* @link http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento | |
* @author Magento Inc. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
label | Bezeichnung | |
---|---|---|
Base Image | Basisbild | |
Small Image | Kleines Bild | |
Thumbnail | Miniaturansicht | |
None | Keine | |
AllOptional | Alle optional | |
LastWords | letztes Wort | |
FirstWords | erstes Wort | |
Search for products, categories | Suche nach Produkten, Kategorien | |
Search | Suche |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$name = 'Shop:Name'; | |
$code = 'shop'; | |
// Create the root catalog | |
$category = Mage::getModel('catalog/category'); | |
$category->setStoreId(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$category->setData('name', $name); | |
$category->setData('url_key', $code); | |
$category->setData('display_mode', 'PRODUCTS'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Generate modman file from Magento Connect 2.0 package.xml | |
* | |
* Usage: | |
* | |
* php package2modman.php path/to/package.xml > path/to/modman | |
* | |
*/ | |
require_once(getcwd()."/app/Mage.php"); |