Pickrr Shipment Extension for Magento
Pickrr Magento 1 module for automatic/manual creation of shipments thorugh Pickrr., (*1)
Installation Instructions:
- Goto Magento's root folder and install it using composer from terminal:
composer require pickrr/magento1:dev-master
and type your magento's root location when asked,
For Ubuntu: /var/www/html/magento
- Goto Admin panel, logout and then login again.
- Verify in Magento Admin Panel whether the module is enabled. To check, go to Admin Panel >System>Configuration>Advanced>Advanced>Pickrr_magento2
- Goto Admin Panel >System>configuration>PickrrExtensions>PickrrMagento1, and enable the automatic shipment option & enter the asked details.
In case of any problems/queries, contact info@pickrr.com, (*2)
Usage Instructions (only for manual calls, when automatic shipment mode is not enabled):
Import helper class:
//import helper class
$helper = Mage::helper('pickrr_magento1');
Create a simple Pickrr Shipment:
Passing $pickup_time and $cod is optional., (*3)
Prototype of the function:, (*4)
createShipment($auth_token, $item_name, $from_name, $from_phone_number, $from_pincode, $from_address, $to_name, $to_phone_number, $to_pincode, $to_address, $cod=0.0, $pickup_time='NULL');
It returns the tracking_id from Pickrr., (*5)
Usage:, (*6)
//Create shipment using order
$auth_key = 'Your Auth Key';
$helper->createOrderShipment($auth_key, "Item's Name", "Merchant/Sender's Name", "Merchant/Sender's Phone", 'Pickup Address Pin', 'Pickup Address', 300.0, '2016-06-17 17:00');
Create Shipment using order:
This will also create shipment and associate it with the passed order. The client/customer's address, item's name and order's id will be extracted from order., (*7)
Prototype of the function:, (*8)
createOrderShipment($auth_token, $order, $from_name, $from_phone_number, $from_pincode, $from_address, $cod=0.0, $pickup_time='NULL');
Usage:, (*9)
//Create shipment using order
$auth_key = 'Your Auth Key';
$order = $objectManager->get('Magento\Sales\Model\Order')->loadByIncrementId('100000094');
$helper->createOrderShipment($auth_key, $order, "Merchant/Sender's Name", "Merchant/Sender's Phone", 'Pickup Address Pin', 'Pickup Address', 300.0, '2016-06-17 17:00');