PHPackages                             scandiwebamasti/gdpr-scandipwa - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. scandiwebamasti/gdpr-scandipwa

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

scandiwebamasti/gdpr-scandipwa
==============================

Amasty GDPR integration for ScandiPWA

v1.0.1(4y ago)00OSL-3.0

Since Aug 17Compare

[ Source](https://github.com/akotikovs-sw/scandiweb-gdpr)[ Packagist](https://packagist.org/packages/scandiwebamasti/gdpr-scandipwa)[ RSS](/packages/scandiwebamasti-gdpr-scandipwa/feed)WikiDiscussions Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Scandiweb\_GdprScandiPWA
========================

[](#scandiweb_gdprscandipwa)

*Amasty GDPR integration for ScandiPWA*

Features
--------

[](#features)

- My Account page "Privacy Settings" tab gives the customer control over their privacy, just as the original Amasty extension
    - Download data
    - Anonymize data
    - Delete account
    - Manage consents
- Adds consent checkboxes to the registration component, as configured in the Amasty admin panel
- Replaces default checkout checkboxes with those configured in Amasty

Usage
-----

[](#usage)

### Installation

[](#installation)

- Install the Amasty GDPR extension. Tested with version 2.1.1
- Install the Scandiweb\_GdprScandiPWA extension
- Add the GdprScandiPWA extension to your scandipwa.json configuration

### Configuration

[](#configuration)

This extension uses the Amasty configuration. Consult the Amasty Documentation for configuration.

### Extension

[](#extension)

Since the default ScandiPWA theme does not implemente a "contact us" form nor a "subscribe to our newsletter" unlike Magento, this extension cannot automatically add consent checkboxes to these areas. If you have a custom implementation of these features, you can include checkboxes by following the steps described below.

#### Backend

[](#backend)

Add a field to the GraphQl query of type `[consentUpdate]!`. Pass the value of this field to `\Scandiweb\GdprScandiPWA\Helper\ConsentUpdater::processConsents`, along with the GraphQl `$context` and `$area` (one of `["registration", "checkout", "contactus", "subscription"]`).

#### Frontend

[](#frontend)

Use the `PrivacyConsentCheckboxes` component to wrap the submission button.

```
