Download the PHP package dominicwatts/orderhistory without Composer

On this page you can find all versions of the php package dominicwatts/orderhistory. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package orderhistory

Magento 1 Order History Migration to Magento 2

phpcs

PHPCompatibility

PHPStan

Easily migrate magento 1 orders to magento 2 and show orders in self contained area in customer account. Offer reorder functionality where possible.

Install

Step 1 - On magento 1 store create archive orders tables from sales data

CREATE TABLE m1_sales_flat_order LIKE sales_flat_order; 
INSERT INTO m1_sales_flat_order SELECT * FROM sales_flat_order;

CREATE TABLE m1_sales_flat_order_address LIKE sales_flat_order_address; 
INSERT INTO m1_sales_flat_order_address SELECT * FROM sales_flat_order_address;

CREATE TABLE m1_sales_flat_order_item LIKE sales_flat_order_item; 
INSERT INTO m1_sales_flat_order_item SELECT * FROM sales_flat_order_item;

Included sample sql data in repo (./supplied/magento.sql) based on magento 1 sample data

Screenshot

Step 1.1 Find invalid column types

SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE ='enum';
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE ='char';

Step 1.2 Convert invalid column types

ALTER TABLE `m1_sales_flat_order` CHANGE `column_name` `column_name` VARCHAR(255) NULL DEFAULT NULL;

Step 2 - Dump from Magento 1 and import the following tables into your Magento 2 database

m1_sales_flat_order
m1_sales_flat_order_address
m1_sales_flat_order_item

Use mysqldump or similar

Step 2.1 - Magento setup:upgrade error

undefined index : <index>

Check foreign keys on newly imported table. May need to delete.

SELECT * FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_NAME = <index>;

For example

SELECT * FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_NAME = 'core_store';

ALTER TABLE `m1_sales_flat_order` DROP FOREIGN KEY <fk_name>;

Step 3 - Install extension

composer require dominicwatts/orderhistory

php bin/magento setup:upgrade

php bin/magento setup:di:compile

Usage

Stores > Configuration > Xigen > Order History

Minor configuration required

Screenshot

Providing customer email matches logged in customer they will see Magento 1 orders in Previous Order section in their account area with reorder functionality if matching product is found.

My Account > My Previous Orders

Screenshot

Known issues


All versions of orderhistory with dependencies

PHP Build Version
Package Version
Requires magento/framework Version *
php Version >=5.6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dominicwatts/orderhistory contains the following files

Loading the files please wait ....