Skip to content

Instantly share code, notes, and snippets.

View tarikuli's full-sized avatar

Tarikul Islam Jewel tarikuli

View GitHub Profile
@tarikuli
tarikuli / gist:51ab51970b7b13233a39346e284c26b0
Created November 7, 2017 02:38 — forked from sukanta1983/gist:f9c89561360013933504
Create shipment programatically in magento
<?php
require_once 'app/Mage.php';
umask(0);
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
$userModel = Mage::getModel('admin/user');
$userModel->setUserId(0);
$orderId = $_GET['order_id'];
$trackno = $_GET['tracking_no'];
$carrier_code = $_GET['carrier_code'];
@tarikuli
tarikuli / magento-db-cleanup.sql
Created May 19, 2017 22:18 — forked from therouv/magento-db-cleanup.sql
DB cleanup script for Magento with some common database tables.
SET FOREIGN_KEY_CHECKS=0;
-- Customers
TRUNCATE `customer_entity`;
TRUNCATE `customer_entity_datetime`;
TRUNCATE `customer_entity_decimal`;
TRUNCATE `customer_entity_int`;
TRUNCATE `customer_entity_text`;
TRUNCATE `customer_entity_varchar`;
<?php
echo "hello world";
?>