# shopgate/cart-integration-magento2-import

> Shopgate import module for Magento 2, handles all import functionality

`composer require shopgate/cart-integration-magento2-import`

Canonical URL: https://packagento.com/shopgate/cart-integration-magento2-import

## At a glance

- **Vendor**: shopgate (https://packagento.com/shopgate.md)
- **Latest version**: 2.10.0 — released 2026-03-23
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/shopgate/cart-integration-magento2-import and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require shopgate/cart-integration-magento2-import:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Shopgate import module for Magento 2, handles all import functionality

## README

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE.md)
[![Build Status](https://travis-ci.org/shopgate/cart-integration-magento2-import.svg?branch=master)](https://travis-ci.org/shopgate/cart-integration-magento2-import)

The Shopgate Magento2 Import integration enables you to connect your Magento2 store with the Shopgate backend.

### Getting Started
Download and unzip the [latest releases](https://github.com/shopgate/cart-integration-magento2-import/releases/latest) into the root folder of your Magento2 Import installation.

### Installation and Documentation

You can find more information in our [support center](https://support.shopgate.com/hc/en-us/articles/229181148-Magento-2) and our [developer documentation](https://docs.shopgate.com/).

### Changelog

See [CHANGELOG.md](CHANGELOG.md) file for more information.

### Contributing

See [CONTRIBUTING.md](docs/CONTRIBUTING.md) file for more information.

### About Shopgate

Shopgate is the leading mobile commerce platform. Online retailers use our software-as-a-service (SaaS) to provide their mobile customers with successful native shopping apps. Developers can enhance the Shopgate Cloud platform by building extensions that customize the user experience and add new functionality to our powerful ecommerce solutions.

### License

The Shopgate Magento2 Import integration is available under the Apache License, Version 2.0.

See the [LICENSE.md](LICENSE.md) file for more information.

## Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

### [Unreleased]

### [2.10.0]
#### Removed
- support for Magento 2 below version 2.4.4
- PHP Support below Version 8.1

### [2.9.19] - 2024-05-10
#### Added
- compatibility with latest Shopgate M2 base module

### [2.9.18] - 2023-11-08
#### Added
- support for enhanced gender options from Shopgate
- payment name for Shopgate orders in the admin order detail view

### [2.9.17] - 2022-05-18
#### Fixed
- shipping rate calculation in the import of Shopgate orders when using rates from Magento 2 during checkout

### [2.9.16] - 2020-07-24
#### Added
- mapping for name prefix
- Autofix for Grand Total mismatch, can be activated via configuration

#### Fixed
- Order import if poduct is only available once
- Free shipping coupons during addOrder

### [2.9.15] - 2020-02-05
#### Removed
- Dependency to magento/module-braintree
#### Fixed
- errors for missing regions during order import

### [2.9.14] - 2020-01-13
#### Added
- Mapping for Magento default Cash on Delivery, Invoice and Prepayment payment method
- Mapping for Braintree PayPal payment method
- Mapping for Braintree (Gene) PayPal payment method
- Mapping for Braintree (Gene) Credit Card payment method

### [2.9.13] - 2019-11-26
#### Changed
- Payment mapping is now based on factories
#### Added
- Mapping for Braintree CreditCard payment method

#### Removed
- Support for PHP < 7.1
- Support for Magento < 2.2  

### [2.9.12] - 2019-07-18
#### Fixed
- Mapping of shipping method during order import

### [2.9.11] - 2019-06-17
#### Added
- Compatibility with Base module's constructor changes

### [2.9.10] - 2019-06-04
#### Fixed
- Sending of confirmation mail in case of a failed order import
- Status issues after unholding orders, which were imported with the status On Hold

### [2.9.9] - 2018-10-28
#### Added
- Configuration for Shopgate payment method title

### [2.9.8] - 2018-08-01
#### Added
- Validation of app-only cart rules in order import

### [2.9.7] - 2018-04-19
#### Fixed
- Item quantity in shipping mapping
- Saving of the address in customer registration
#### Added
- Support of asynchronous sending setting for sales emails

### [2.9.6]
#### Changed
- Changed the GitHub composer naming so that it does not clash with Marketplace repo

### [2.9.5]
#### Changed
- Composer file details

### 2.9.4
#### Fixed
- Missing coupon issue in order import
- Moved DB transaction commit after SG order save, just in case saving throws an error

### 2.9.3
#### Fixed
- Added shipping mapping to add_order process

### 2.9.2
#### Fixed
- Fixed missing price for configurable product that was added last to cart

### 2.9.1
#### Fixed
- The shipping description will now be fetched from the Shopgate Order on import

### 2.9.0
#### Added
- Implemented register_customer call

_(Changelog truncated for .md surface. Full history on https://packagento.com/shopgate/cart-integration-magento2-import.)_

## Recent Versions

| Version | Released |
|---|---|
| 2.10.0 | 2026-03-23 |
| 2.9.19 | 2024-05-10 |
| 2.9.18 | 2023-11-08 |
| 2.9.18-alpha2 | 2023-07-18 |
| 2.9.18-alpha1 | 2023-07-18 |
| 2.9.17 | 2022-05-18 |
| 2.9.16 | 2020-07-24 |
| 2.9.16-rc.1 | 2020-07-16 |
| 2.9.15 | 2020-02-05 |
| 2.9.15-rc.1 | 2020-01-28 |

Showing 10 of 20 versions. Full release history on https://packagento.com/shopgate/cart-integration-magento2-import.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| php | ~8.1.0\|\|~8.2.0\|\|~8.3.0 |
| shopgate/cart-integration-magento2-base | ~2.10.0 |

### Require (dev)

| Package | Constraint |
|---|---|
| magento/module-braintree | ^100.3 |

## Quality

Latest release (2.10.0) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | not tested | – |
| 2.4.9 | – | – | not tested | not tested |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 363 | 30 errors, 333 warnings (ruleset: Magento2) — 168 auto-fixable with phpcbf |
| PHPMD | Warning | 15 | 15 rule violations (MissingImport:7, UnusedFormalParameter:5, ExcessiveParameterList:2, IfStatementAssignment:1) |
| Cpd | Warning | 3 | 3 duplicated chunks spanning 77 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 163 | 163 | – | – |
| 2.4.8 | – | 163 | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Error | Error | – | – |
| 2.4.8 | – | Error | Error | – |
| 2.4.9 | – | – | Error | Error |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | N/A | 0 | no resolvable dependency tree to audit — Your requirements could not be resolved to an installable set of packages. Problem 1 |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["shopgate/cart-integration-magento2-import"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

shopgate is a Magento 2 vendor on Packagento. See https://packagento.com/shopgate.md for their full catalogue.

