# shopgate/cart-integration-magento2-export

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

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

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

## 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-export 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-export:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Shopgate export module for Magento 2, handles all export 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-export.svg?branch=master)](https://travis-ci.org/shopgate/cart-integration-magento2-export)

The Shopgate Magento2 Export 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-export/releases/latest) into the root folder of your Magento2 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 Export 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] - 2026-03-23
#### Removed
- Support for Magento 2 below version 2.4.4
- PHP Support below Version 8.1

### [2.9.32] - 2025-02-13
#### Added
- event 'sg_export_set_inputs' to allow modification of product inputs before export
- event 'sg_export_set_prices' to allow modification of product prices before export

### [2.9.31] - 2024-05-10
#### Removed
- usage of deprecated Zend serializer

### [2.9.30] - 2024-04-03
#### Fixed
- missing attributes on child products

#### Added
- event 'sg_export_set_category_paths' to allow modification of assigned product categories before export
- event 'sg_export_set_properties' to allow modification of assigned product properties before export

### [2.9.29] - 2024-03-04
#### Fixed
- export works again with MSI modules disabled

### [2.9.28] - 2023-11-08
#### Fixed
- PHP 8.1 compatibility

### [2.9.27] - 2023-06-30
#### Removed
- dependency to Zend_Date class

### [2.9.26] - 2023-01-18
#### Added
- support bundle products in product export

### [2.9.25] - 2022-11-25
#### Fixed
- error in the export of product properties

#### Added
- configuration to force the export of out-of-stock products

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

#### Added
- support for Magento 2.4.4
- support for PHP 8.1.x

### [2.9.23] - 2022-01-05
#### Fixed
- translations of property labels

### [2.9.22] - 2020-10-02
#### Fixed
- export of products crashing when using new inventory management (`Cannot instantiate interface Magento\InventorySalesApi\Model\GetStockItemDataInterface`)

#### Changed
- Now taking care to only export relations to products of types Shopgate supports and for configurable and grouped products there is a parent reference in the `uid` instead of direct product id

### [2.9.21] - 2020-07-24
#### Changed
- Now exporting upsell, crosssell and simple relation individually instead of everything as upsell only

#### Fixed
- Shipping and Discount tax amount in combination with auto assignment of customer groups based on vat id
- Detection of enabled multi stock inventory functionality

### [2.9.20] - 2020-03-24
#### Fixed
- Missing categories in item export

### [2.9.19] - 2020-03-17
#### Fixed
- Description export when it's empty
- Image export for child products

### [2.9.19] - 2020-03-17
#### Fixed
- Description export when it's empty
- Image export for child products

### [2.9.18] - 2020-03-02
#### Fixed
- stock class compatibility with Magento 2.3.1

### [2.9.17] - 2020-02-05
#### Added
- Security enhancements
- Limit for order collection set shipping completed and refactor filter

#### Fixed
- Inventory handling for Magento version >= 2.3 
- gross and net amount for shipping methods in check_cart

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

### [2.9.16] - 2019-11-07
#### Added
- support for returning customer data cart validation
#### Fixed
- sort order of products within categories
- error in product export (Enterprise Edition only)

### [2.9.15] - 2019-09-13
#### Added
- filter for website specific items in product export

### [2.9.14] - 2019-08-22
#### Added
- rudimentary getExternalCoupons method to cart helper to support bolt plugin which extends it

### [2.9.13] - 2019-07-18
#### Changed
- EAN attribute mapping configuration will export even if it is not visible on the frontend

### [2.9.12] - 2019-06-17
#### Changed
- Cron cancellation logic

### [2.9.11] - 2019-06-12
#### Fixed
- coupon amount for customer group based special prices

### [2.9.10] - 2019-06-04
#### Fixed
- check_cart now returns the correct item_number
- The small product images are now used as the first image of the product in the app

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

## Recent Versions

| Version | Released |
|---|---|
| 2.10.0 | 2026-03-23 |
| 2.9.32 | 2025-02-13 |
| 2.9.31 | 2024-05-10 |
| 2.9.30 | 2024-04-03 |
| 2.9.30-beta.1 | 2024-03-26 |
| 2.9.29 | 2024-03-04 |
| 2.9.28 | 2023-11-08 |
| 2.9.27 | 2023-07-03 |
| 2.9.26 | 2023-01-18 |
| 2.9.26-beta.3 | 2023-01-17 |

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

## Dependencies

### Require

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

## 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 | 380 | 30 errors, 350 warnings (ruleset: Magento2) — 151 auto-fixable with phpcbf |
| PHPMD | Warning | 17 | 17 rule violations (MissingImport:5, UndefinedVariable:3, ExcessiveClassComplexity:2, TooManyPublicMethods:2, UnusedLocalVariable:1) |
| Cpd | Pass | 0 |  |
| 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 | 157 | 157 | – | – |
| 2.4.8 | – | 157 | 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 | – | 58 | 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 | Pass | 0 |  |
| 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-export"],
  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.

