Search by

hryvinskyi / magento2-gdpr-wishlist

hryvinskyi

Wishlist provider for the Hryvinskyi data subject rights module: exports and deletes a customer wishlist

Package info

github.com/hryvinskyi/magento2-gdpr-wishlist

Type:magento2-module

pkg:composer/hryvinskyi/magento2-gdpr-wishlist

Statistics

Installs: 1

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-11-30 18:52 UTC

This package is auto-updated.

Last update: 2026-11-30 20:09:26 UTC


README

Adds the wishlist to the data-subject requests of hryvinskyi/magento2-gdpr. It contributes through di.xml only. The engine never names this package.

What it does for a store

  • Which items a subject covers. Every item of the wishlist of a customer subject's account, oldest first, whatever the status or visibility of its product. A guest subject covers none, even when an account has its e-mail address.
  • Export. One section, wishlist_item, lists each item's SKU, product name, quantity, comment, the date it was added and the store's name.
  • Delete only. An erase or an anonymise request deletes the account's wishlist together with its items and keeps the account. There is no anonymiser, so an anonymise request deletes the wishlist too.

Requirements

  • Magento Open Source or Adobe Commerce 2.4.8 or 2.4.9, PHP 8.3 to 8.5.
  • hryvinskyi/magento2-gdpr-api ^1.0 and hryvinskyi/magento2-gdpr ^1.0.
  • The platform's Store, Catalog and Wishlist modules.

Installation

Run from the Magento root. hryvinskyi/magento2-gdpr-pack installs this package with the rest of the suite.

composer require hryvinskyi/magento2-gdpr-wishlist
bin/magento module:enable Hryvinskyi_GdprApi Hryvinskyi_Clock Hryvinskyi_RateLimit Hryvinskyi_DocumentExport Hryvinskyi_Logger Hryvinskyi_Gdpr Hryvinskyi_GdprWishlist
bin/magento setup:upgrade
bin/magento setup:di:compile  # production mode only
bin/magento cache:flush

Verify with a dry-run plan for a customer who has wishlist items. It changes nothing.

bin/magento gdpr:erase --customer-id=<customer_id> --dry-run

The output lists wishlist with delete and the number of items.

Configuration

None of its own. The entity code is wishlist, its sort order is 700, its method is always delete, and it has no field to anonymise. The core's erasure rules need no entry for it.

Stored data

The package creates no table. It reads and deletes rows of the wishlist tables; the items go with their wishlist through the database's own cascade.

Limits

  • Only a customer account has a wishlist the module reaches. A guest request touches none.
  • A deleted wishlist cannot be restored.

Registrations

Where What
providers of Hryvinskyi\Gdpr\Model\Entity\EntityProviderPool wishlist, Hryvinskyi\GdprWishlist\Model\Provider\WishlistProvider

The package registers no route, command, cron job, event, plugin or preference.

Extension point

None of its own. The provider sets its anonymiser argument to null to say anonymisation is not supported. The core's README shows how another module adds its own entity provider.

Tests

Run from the Magento root.

  • Unit: vendor/bin/phpunit -c app/code/Hryvinskyi/GdprWishlist/phpunit.xml.dist. The package's rules are proved against a real database, so the unit suite holds no test.
  • Integration: the platform's harness in dev/tests/integration, against its own database, one run at a time. cd dev/tests/integration && php -d memory_limit=4G ../../../vendor/bin/phpunit -c phpunit.xml ../../../app/code/Hryvinskyi/GdprWishlist/Test/Integration.
  • Static analysis: PHPStan 2.x at level 10 with the package's phpstan.neon.dist (phpstan analyse -c app/code/Hryvinskyi/GdprWishlist/phpstan.neon.dist --level=10), and vendor/bin/phpcs --standard=app/code/Hryvinskyi/GdprWishlist/phpcs.xml.dist app/code/Hryvinskyi/GdprWishlist.

Translations

The labels the package shows in exports ship in en_US and 25 more locales: the official languages of the European Union, Norwegian Bokmål and Ukrainian. The translations are machine-made; have them read by a native speaker before a store relies on them, and override a phrase in a theme or a language pack.