Skip to content

Instantly share code, notes, and snippets.

View sukanta1983's full-sized avatar

Sukanta Kumar Ghosh sukanta1983

View GitHub Profile
@sukanta1983
sukanta1983 / gist:f9c89561360013933504
Created March 21, 2015 05:32
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'];
@sukanta1983
sukanta1983 / gist:1a296e31e42c0f88df93
Created March 21, 2015 05:29
change order status 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);
$from_date = $_GET['fdate'];
$today = date("Y-m-d");