Skip to content

Instantly share code, notes, and snippets.

Yao paullbyao

Block or report user

Report or block paullbyao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
paullbyao / custom.sql
Last active Jul 13, 2016 — forked from leek/
Magento - Delete All Test Data
View custom.sql
TRUNCATE `identify_log`;
TRUNCATE `identify_statistics`;
TRUNCATE `ex_product_image`;
TRUNCATE `logistics_track_item`;
TRUNCATE `core_url_rewrite`;
ALTER TABLE `identify_statistics` AUTO_INCREMENT=1;
View fix-url-keys.php
* Drop this into the shell directory in the Magento root and run with -h to see all options.
require_once 'abstract.php';
* Fix duplicate url keys for categories and products to work with the 1.8 alpha1 CE url key constraints.
View gist:48671697c0de0408665c

Magento Snippets

Download extension manually using pear/mage

Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/

./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent

Clear cache/reindex

You can’t perform that action at this time.