Skip to content

Instantly share code, notes, and snippets.

<?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.
*/
@avoelkl
avoelkl / de_DE.csv
Last active February 22, 2018 12:23 — forked from peterjaap/de_DE.csv
Algolia
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
@avoelkl
avoelkl / create_website_scope.php
Last active December 14, 2015 10:39 — forked from yireo/create_website_scope.php
Magento script to create a new Website, new Store Group, new Store View and new Root Catalog - all linked together.
<?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');
<?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");