# dotdigital/dotdigital-magento2-extension-enterprise

> Dotdigital for Adobe Commerce

`composer require dotdigital/dotdigital-magento2-extension-enterprise`

Canonical URL: https://packagento.com/dotdigital/dotdigital-magento2-extension-enterprise

## At a glance

- **Vendor**: dotdigital (https://packagento.com/dotdigital.md)
- **Latest version**: 2.0.0 — released 2024-03-14
- **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/dotdigital/dotdigital-magento2-extension-enterprise 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 dotdigital/dotdigital-magento2-extension-enterprise:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Dotdigital for Adobe Commerce

## README

[![Packagist Version](https://img.shields.io/packagist/v/dotdigital/dotdigital-magento2-extension-enterprise?color=green&label=stable)](https://github.com/dotmailer/dotmailer-magento2-extension-enterprise/releases)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE.md)

### Description
This extension provides additional features for merchants running Adobe Commerce (previously Magento Enterprise Edition). It must be used alongside the main [Dotdigital for Magento 2 extension](https://github.com/dotmailer/dotmailer-magento2-extension). 

### Requirements
The latest version of this module is compatible with:
- Magento v2.4.1-p1+
  - Magento 2.3.1-2.4.1 are compatible up to version 1.9.0
- `Dotdigitalgroup_Email` v4.19.0+

### Installation
We encourage merchants to install our core modules via our combined **Dotdigital - Marketing Automation** extension, available on the [Magento Marketplace](https://marketplace.magento.com/dotdigital-dotdigital-magento2-os-package.html).

**Steps:**
1. First, ‘purchase’ the [core extension](https://marketplace.magento.com/dotdigital-dotdigital-magento2-os-package.html).
2. Any existing `require` instructions in your composer.json relating to `dotmailer/*` packages must be removed.
3. Now, require the correct packages.
```
composer require dotdigital/dotdigital-magento2-os-package
composer require dotdigital/dotdigital-magento2-extension-enterprise
```

- [Full support documentation and setup guides](https://support.dotdigital.com/hc/en-gb/articles/216701227-Enterprise-data-sync-options).

### Changelog

#### 2.0.0

###### What's new
- The 'Dotdigital form' content type for Page Builder has been removed from this module. It is now available as a separate package (`dotdigital/dotdigital-magento2-extension-pagebuilder`).

#### 1.10.7
- Deferred scripts could break the ‘Add Respondent to the Newsletter Subscribers list’ function on our Page Builder forms. This has been fixed.

#### 1.10.6

###### Improvements
- We've updated the module’s dependencies. The module now requires PHP 7.4+ and Magento 2.4.1-p1+.

#### 1.10.5

###### Improvements
- Missing tables or other exceptions thrown in the Enterprise CustomerPlugin will no longer prevent other data fields being synced in customer sync.

###### Bug fixes
- We fixed a Page Builder issue with embedding pages or forms that did not have headings when their links were generated.

#### 1.10.4

###### Bug fixes
- Merchants using Basic Auth to secure their Magento admin can now use our Page Builder content type as expected.

#### 1.10.3

###### Improvements
- Our Page Builder content type now uses a more specific selector for targeting its `script` element.

#### 1.10.2

###### Bug fixes
- Pages and forms embedded via Page Builder now once again respect the ‘Stop displaying after a number of appearances’ value.

#### 1.10.1

###### Improvements
- We added a `disabled` foreign key for email_catalog to the module, to resolve an error reported in Adobe Commerce.

#### 1.10.0

###### Improvements
- We updated some class references in line with the contact sync refactor in the Email module.

#### 1.9.1

###### Improvements
- Only active segments will now affect contacts (creating a new segment no longer resets all contacts if the segment status is set to Inactive).

###### Bug fixes
- Contacts were not being reset when matching customers were removed from a segment; this has been fixed.
- We fixed a problem with inaccurate values for the REWARD_AMOUNT data field.

#### 1.9.0

###### What’s new

- We’ve updated our PageBuilder content type to ensure form display is not affected when JS scripts are deferred.

#### 1.8.0

###### What's new
- This module has been renamed `dotdigital/dotdigital-magento2-extension-enterprise`.

###### Improvements
- We've added a new plugin to provide additional configuration values to our integration insight data cron.
- `setup_version` has been removed from module.xml; in the Dashboard, we now use composer.json to provide the current active module version.

#### 1.7.1

###### Bug fixes
- Dotdigital forms in pop-over mode now display in mobile viewports.

#### 1.7.0

###### Bug fixes
- We fixed a bug that could prevent loading or editing of Dotdigital pages and forms in Page Builder, if the required access token had expired. 

#### 1.5.0

###### Improvements
- This release includes a number of minor updates bundled with Magento 2.4.2, mainly fixes for static and MFTF tests.

###### Bug fixes
- We now retrieve the reward points balance from a different table, so an accurate balance is shown in Dotdigital.
- We've added a plugin to fetch product entity ids for grouped product children. This fixes a bug in Magento Commerce to do with linking from a grouped product to its parent product, where the wrong URL or image path was returned in catalog sync and cart insight.
- Data field mappings are now retrieved in website scope, instead of store scope.

#### 1.3.1

###### Bug fixes
- We’ve added some additional hidden fields to our `dotdigital_form` UI component for Page Builder. This fixes a problem with dragging our block to the stage in 2.3.6.

#### 1.3.0

###### Improvements
- We've updated our composer dependencies to include `magento/page-builder-commerce`.

#### 1.2.0

###### What's new
- Merchants can now use Page Builder to embed pages and forms from Dotdigital. Form submissions can be captured and stored as Magento newsletter subscribers. 

_v1.2.0 of this Enterprise module is no longer compatible with Magento 2.2._

#### 1.0.7 

###### Fixes
- We've optimised the plugin that is triggered when creating new customer segments, to resolve possible 'out of memory' errors for merchants with large customer databases.

#### 1.0.6

###### Fixes
- We've fixed a regression introduced in 1.0.5, which could cause an error when running the syncs for merchants who had not mapped enterprise data fields.

#### 1.0.5

_(README truncated for .md surface. Full README on https://packagento.com/dotdigital/dotdigital-magento2-extension-enterprise.)_

## Recent Versions

| Version | Released |
|---|---|
| 2.0.0 | 2024-03-14 |
| 1.10.7 | 2023-11-28 |
| 1.10.6 | 2023-09-11 |
| 1.10.5 | 2023-03-15 |
| 1.10.4 | 2023-02-14 |
| 1.10.3 | 2023-01-11 |
| 1.10.2 | 2022-10-11 |
| 1.10.1 | 2022-09-27 |
| 1.10.0 | 2022-08-31 |
| 1.9.1 | 2022-07-19 |

Showing 10 of 33 versions. Full release history on https://packagento.com/dotdigital/dotdigital-magento2-extension-enterprise.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| dotdigital/dotdigital-magento2-extension | ^4.19.0 |
| ext-pcre | * |
| magento/framework | >=102 <104 |
| magento/framework-foreign-key | >=1.0.0 |
| magento/module-backend | >=101 <103 |
| magento/module-catalog | >=103 <105 |
| magento/module-customer-segment | >=102 <103 |
| magento/module-grouped-product | ^100.3\|^100.4 |
| magento/module-reward | >=101 <102 |
| magento/module-store | >=101 <102 |
| magento/module-ui | >=101 <102 |
| php | ^7.4\|\|^8.0 |

### Replace

| Package | Constraint |
|---|---|
| dotmailer/dotmailer-magento2-extension-enterprise | * |

## Quality

Latest release (2.0.0) passes 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 | not tested | not tested | – | – |
| 2.4.8 | – | not tested | 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 | Pass | 0 |  |
| PHPMD | Warning | 10 | 10 rule violations (UnusedFormalParameter:9, MissingImport:1) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 2 | valid; 2 advisory notes (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 | Error | Error | – | – |
| 2.4.8 | – | Error | Error | – |
| 2.4.9 | – | – | Error | Error |


### 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 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### 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=["dotdigital/dotdigital-magento2-extension-enterprise"],
  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

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

