Skip to content

Instantly share code, notes, and snippets.

<?php
require_once '../abstract.php';
class Namespace_ProductExport extends Mage_Shell_Abstract
{
protected $_io;
protected $_folder = 'exports';
protected $_name = 'ProductExport.csv';
protected $_delimiter = ',';
@jimains
jimains / ignore_generate_xml.php
Created January 14, 2019 14:21
Generate ignore XML declarations for data migration (M1->M2)
<h1>Ignore fields per table</h1>
<form method="post">
<label>Fields</label>
<input type="text" name="fields">
<label>Table</label>
<input type="text" name="table">
<input type="submit">
</form>
<?php
@jimains
jimains / Magento sanitiser
Last active April 6, 2018 20:46
Generic sql clean up Magento
-- this script is to be used on a DB dump from production
-- then this db can be dumped again, and used to override
-- a sample magento DB to add pepejeans catalog data and
-- sample configuration for dev VM
-- truncated tables will be truncated in magento db
-- dropped tables in this script will leave default magentodb tables
-- this script clears indexes, so the final db should be taken after reindexing in magento
SET foreign_key_checks = 0;