magento2-module module-ordercontroller
To implement guest order history feature
born/module-ordercontroller
To implement guest order history feature
- Tuesday, February 21, 2017
- by jyotiranjan
- Repository
- 1 Watchers
- 0 Stars
- 12 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 1 Versions
- 20 % Grown
magento2-GuestOrderHistory
Decription
Implement guest order history feature with a new controller that takes parameter(s) to query a single order and returns a json with information about order status, total, items (sku, item_id, price) and total invoiced., (*1)
Installation
Composer Package
-
Go to MagentoĀ® 2 root folder, (*2)
-
Enter following commands to install module:, (*3)
composer require jrb/module-ordercontroller dev-guestorderhistory
Wait while dependencies are updated., (*4)
-
Enter following commands to enable module:, (*5)
php bin/magento module:enable JRB_OrderController
php bin/magento setup:upgrade
php bin/magento cache:clean
Manually
-
Go to MagentoĀ® 2 root folder, (*6)
-
paste all code in a foler app/code/JRB/OrderController, (*7)
-
Enter following commands to enable module:, (*8)
php bin/magento module:enable JRB_OrderController
php bin/magento setup:upgrade
php bin/magento cache:clean
How to use
by calling rest api, (*9)
end point:
rest/V1/guestorder/getGuestOrderHistory/:param
, (*10)
param can be 1,2,.. all, (*11)
, (*12)
or by calling simple controller, (*13)
, (*14)
dev-master
9999999-dev
To implement guest order history feature
Sources
Download
OSL-3.0
by
Jyotiranjan Biswal