# tweakwise/magento2-tweakwise-export

> Magento 2 module for Tweakwise export

`composer require tweakwise/magento2-tweakwise-export`

Canonical URL: https://packagento.com/tweakwise/magento2-tweakwise-export

## At a glance

- **Vendor**: tweakwise (https://packagento.com/tweakwise.md)
- **Latest version**: 7.8.3 — released 2026-04-24
- **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/tweakwise/magento2-tweakwise-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 tweakwise/magento2-tweakwise-export:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Magento 2 module for Tweakwise export

## README

If you have the package emico/tweakwise installed, uninstall this first. This package replaces that one

Install package using composer
```sh
composer require tweakwise/magento2-tweakwise-export
```

Enable module

Run installers
```sh
php bin/magento module:enable Tweakwise_Magento2TweakwiseExport
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
```

### Usage
All export settings can be found under Stores -> Configuration -> Catalog -> Tweakwise -> Export.

Generating feeds can be done using the command line.
```sh
php bin/magento tweakwise:export
php bin/magento tweakwise:export -t stock //stock export
php bin/magento tweakwise:export -t price //price export
php bin/magento tweakwise:export -s storecode //store level export, only works is store level export is enabled.
```

If 'Store Level Export' enabled single store feed  can be generated using the command line.
```sh
php bin/magento tweakwise:export --store '<storecode>'
```

### Debugging
Debugging is done using the default debugging functionality of Magento / PHP. You can enable indentation of the feed by setting deploy mode to developer.
```sh
php bin/magento deploy:mode:set developer

Usage:
 tweakwise:export [-c|--validate] [file]

Arguments:
 file                  Export to specific file (default: "var/feeds/tweakwise.xml")
 store                 Export a specific storeId, only possible of Store Level Export is enabled.

Options:
 --validate (-c)       Validate feed and rollback if fails.
 --help (-h)           Display this help message
 --quiet (-q)          Do not output any message
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 --version (-V)        Display this application version
 --ansi                Force ANSI output
 --no-ansi             Disable ANSI output
 --no-interaction (-n) Do not ask any interactive question
```

### Feed structure
The feed contains some header information followed by categories and then products. Tweakwise does not natively support multiple stores, in order to circumvent this all categories and products are prefixed with 1000{store_id}.
If a product (with id 1178) is active and visible in multiple stores (say 1, 5 and 8) then it will appear three times in the feed (Or if Store Level Export is enabled the products is exported in 3 diffrent feeds) with ids: 100011178, 100051178 and 100081178.
The data on that product depends on the attribute values of the specific store. In short an entity is available in the feed as ``1000{store_id}{entity_id}``

The feed only contains products that are visible under your catalog configuration. If a product has children (say it is configurable) then the feed will also contain all the data from those children.
Child data is aggregated onto the "parent" product. 
The reason for this is that when a user searches for a t-shirt with size M then the configurable must show up in the results, therefor the configurable should be exported with all sizes available among its children. 

The feed contains only attributes which have bearing on search or navigation, check ``src/Model/ProductAttributes.php:45`` to see the criteria an attribute must meet in order to be exported.

The feed prices are exported in the default configured currency of the store (from v5.1.0 forward). If an exchange rate is available the prices for that currency are calculated. If no exchange rate is available, the original prices are used.

### Grouped export
If you have groupcode enabled all products are exported with their groupcode. All variants of a product (configurable, grouped, bundle) are linked together using the groupcode. If this is enabled all variants are separated products in Tweakwise. Use this if you want to filter out products based on variant data.
If you switch from to normal export to groupcode export, you will need to do the following:
1. Enable groupcode export in the configuration.
2. Run the tweakwise:export command to generate the feed.
3. Make sure the image urls are correct in Tweakwise.
4. Import the feed into Tweakwise and publish the catalog.
5. Enable Stores->configuration->catalog->tweakwise->general->Grouped products
6. Clear the cache

During the switch the catalog may be empty. If the image url are not correct no product images may be shown in magento.
If you use recommendations, add an attribute with the name "groupcode" in tweakwise and use it as an api attribute. Without this recommendations will not work.
Please contact Tweakwise support if you have any issues with the groupcode export.

### A note on the feed implementation
Magento's native interfaces and handlers for data retrieval were deemed to slow for a large catalog.
Since performance is essential we decided on our own queries for data retrieval. The consequence is that we need to keep track of the inner workings of magento and are subject to its changes.
If you find an issue with data retrieval please create an issue on github.

### Feed urls
https://yoursite.com/tweakwise/feed/export/key/{{feed_key}}
https://yoursite.com/tweakwise/feed/export/key/{{feed_key}}/type/stock //stock export
https://yoursite.com/tweakwise/feed/export/key/{{feed_key}}/type/price //price export
https://yoursite.com/tweakwise/feed/export/key/{{feed_key}}/store/storecode //store level export, only available if store level export is enabled

### Export Settings

All export settings can be found under Stores -> Configuration -> Catalog -> Tweakwise -> Export.

_(README truncated for .md surface. Full README on https://packagento.com/tweakwise/magento2-tweakwise-export.)_

## Recent Versions

| Version | Released |
|---|---|
| 7.8.3 | 2026-04-24 |
| 7.8.2 | 2026-03-24 |
| 7.8.1 | 2026-03-06 |
| 7.8.0 | 2025-12-09 |
| 7.7.0 | 2025-10-17 |
| 7.6.1 | 2025-09-03 |
| 7.6.0 | 2025-08-15 |
| 7.5.0 | 2025-08-06 |
| 7.4.0 | 2025-05-07 |
| 7.4.0-beta.1 | 2025-04-09 |

Showing 10 of 109 versions. Full release history on https://packagento.com/tweakwise/magento2-tweakwise-export.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| laminas/laminas-http | ^2.15.0 |
| php | ^8.0 |

### Require (dev)

| Package | Constraint |
|---|---|
| emico/code-quality | ~10.6.0 |
| fzaninotto/faker | ^1.7 |
| magento/framework | ^103.0 |

### Replace

| Package | Constraint |
|---|---|
| emico/tweakwise-export | v4.2.4 |

## Quality

Latest release (7.8.3) 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 | Pass | – |
| 2.4.9 | – | – | 1 | 1 |


### 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 | Warning | 15 | 15 warnings (ruleset: Magento2) — 7 auto-fixable with phpcbf |
| PHPMD | Warning | 9 | 9 rule violations (UnusedFormalParameter:9) |
| Cpd | Warning | 14 | 14 duplicated chunks spanning 1442 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Pass | 0 |  |

#### 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 | 26 | 26 | – | – |
| 2.4.8 | – | 26 | 33 | – |
| 2.4.9 | – | – | 34 | 34 |


### 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 | – | 23 | 23 | – |
| 2.4.9 | – | – | Error | not tested |


### 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 |
| 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=["tweakwise/magento2-tweakwise-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

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

