Download the PHP package aashan/module-link-guest-orders without Composer
On this page you can find all versions of the php package aashan/module-link-guest-orders. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aashan/module-link-guest-orders
More information about aashan/module-link-guest-orders
Files in aashan/module-link-guest-orders
Package module-link-guest-orders
Short Description Links guest orders to customer accounts if there is any user account associated with the order email.
License
Informations about the package module-link-guest-orders
Link Guest Customer
- Overview
- Installation
- Composer Installation
- Manual Installation
- Install via Git
- API
- Contributing
Overview
By default, Magento 2 doesn't automatically link the guest orders as customer orders if the account with email supplied during the checkout process already exists. That is where this module comes in handy. This module automatically synchronizes the orders on the basis of order email address. You can even sync previously added orders through the admin panel.
Installation
-
Composer Installation
Inside your project root directory, run
composer require aashan/module-link-guest-orders
.Make sure to run post installation scripts.
-
Manual Installation
This module can be installed by downloading the latest release and extracting the files under
<your project root>/app/code/Aashan/LinkGuestOrder
. Once the files have been extracted, run the post installation scripts. -
Install via Git
To install it via git, follow the following process.
cd <your project directory>
mkdir app/code/Aashan/LinkGuestOrder && cd app/code/Aashan/LinkGuestOrder
git init
git remote add origin https://github.com/aashan10/magento2-link-guest-order.git
git pull origin master
Once the installation is complete, please follow post installation scripts.
-
Post Installation
Once you have your module installed by one of the above methods, run the following commands to make sure that the module is setup correctly.
bin/magento setup:upgrade
bin/magento cache:clean
API
The module provides a simple API for auto linking the orders to their respective customers. The main API is available through
Aashan\LinkGuestOrder\Helper\OrderLinkHelper
helper class. It consists of a methodlinkOrderToCustomer
which takes object ofMagento\Sales\Model\Order
class as the only argument.
Below is an example on using the API.
Contributing
Follow the Github docs for contribution guide given here.