Skip to content

Instantly share code, notes, and snippets.

@gautamkeshri
gautamkeshri / .gitignore
Last active May 18, 2020 07:23 — forked from yireo/.gitignore
Magento 2 gitignore file
# Metadata
/.buildpath
/.cache
/.metadata
/.project
/.settings
/sitemap
/.idea
/.gitattributes
@gautamkeshri
gautamkeshri / m2-import-prices-index.php
Created October 16, 2018 07:14 — forked from MagePsycho/m2-import-prices-index.php
Update Magento2 Prices in bulk - an easier and faster way!
<?php
/**
*
* @author Raj KB<magepsycho@gmail.com>
* @website http://www.magepsycho.com
* @extension MassImporterPro: Pricing - http://www.magepsycho.com/mass-importer-pro-price-importer-regular-special-tier-group.html
*/
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
@gautamkeshri
gautamkeshri / magento1-rest.php
Created February 21, 2017 17:51 — forked from rafaelstz/magento1-rest.php
Sample PHP to connect API REST at Magento 1
<?php
// Created by Rafael Corrêa Gomes
// Reference http://devdocs.magento.com/guides/m1x/api/rest/introduction.html#RESTAPIIntroduction-RESTResources
// Custom Resource
$apiResources = "products?limit=2";
// Custom Values
$isAdminUser = true;
$adminUrl = "admin";
@gautamkeshri
gautamkeshri / Magento Customer Importer
Created May 5, 2016 12:23 — forked from dhargitai/Magento Customer Importer
Import customers into Magento from command line using a CSV file
<?php
define('BUNCH_SIZE_TO_INSERT', 20);
$magentoRootPath = './public';
require_once $magentoRootPath . '/shell/abstract.php';
class CustomerImportFromCsv extends Mage_Shell_Abstract
{
protected $_headerArray = array();
@gautamkeshri
gautamkeshri / customer-export.php
Created May 5, 2016 10:09 — forked from derak-kilgo/customer-export.php
CLI php script to export customers from magento to CSV using direct access to a magento collection.
<?php
if(php_sapi_name()!=="cli"){
echo "Must be run from the commend line.";
};
/**
* Setup a magento instance so we can run this export from the command line.
*/
require_once('app/Mage.php');
umask(0);
if (!Mage::isInstalled()) {