pickrr / magento2
Pickrr Magento 2 module for automatic creating/importing of shipment/tracking details in your pickrr account.
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: ~5.5.0|~5.6.0
This package is not auto-updated.
Last update: 2025-01-18 21:58:31 UTC
README
Pickrr Magento 2 module for automatic/manual creation of shipments thorugh Pickrr.
###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:
composer require pickrr/magento2:dev-master
- Goto root folder of magento in terminal, and run:
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
###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.
Prototype of the function:
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.
Usage:
//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.
Prototype of the function:
createOrderShipment($auth_token, $order, $from_name, $from_phone_number, $from_pincode, $from_address, $cod=0.0, $pickup_time='NULL');
Usage:
//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');