Pickrr Shipment Extension for Magento
Pickrr Magento 2 module for automatic/manual creation of shipments thorugh Pickrr., (*1)
Installation Instructions:
-
Extract the zip file in the the <root_of_Magento2>/app/code
OR
Goto Magento's root folder and install it using composer from terminal:, (*2)
composer require pickrr/magento2:dev-master
-
Goto root folder of magento in terminal, and run:, (*3)
bin/magento module:enable Pickrr_Magento2
bin/magento setup:upgrade
- Verify in Magento Admin Panel whether the module is enabled. To check, go to Admin Panel >Stores>Configuration>Advanced>Advanced>Pickrr_magento2
- Goto Admin Panel >Stores>configuration>PickrrExtensions>PickrrMagento2, and enable the automatic shipment option & enter the asked details.
In case of any problems/queries, contact info@pickrr.com, (*4)
Usage Instructions (only for manual calls, when automatic shipment mode is not enabled):
Import helper class:
//import helper class
Pickrr\Magento2\Helper\ExportShipment $helper;
Create a simple Pickrr Shipment:
Passing $pickup_time and $cod is optional., (*5)
Prototype of the function:, (*6)
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', $order_id = 'NULL');
It returns the tracking_id from Pickrr., (*7)
Usage:, (*8)
//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., (*9)
Prototype of the function:, (*10)
createOrderShipment($auth_token, $order, $from_name, $from_phone_number, $from_pincode, $from_address, $cod=0.0, $pickup_time='NULL');
Usage:, (*11)
//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');