Files

108 lines
8.3 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0"?>
<!--
/**
* @package Plumrocket_GlobalPrivacyControl
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://www.plumrocket.com)
* @license https://www.plumrocket.com/license/ End-user License Agreement
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="pr_gpc" translate="label" type="text" sortOrder="3940412" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Global Privacy Control (GPC)</label>
<tab>plumrocket</tab>
<resource>Plumrocket_GlobalPrivacyControl::configuration</resource>
<group id="toolbox" translate="label" type="text" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\Base\Block\Adminhtml\System\Config\Form\ToolbarFieldset</frontend_model>
<field id="version" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\Base\Block\Adminhtml\System\Config\Form\Version</frontend_model>
<attribute type="pr_extension_name">GlobalPrivacyControl</attribute>
</field>
</group>
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<attribute type="expanded">1</attribute>
<field id="enabled" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Enable Extension</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Enable automatic GPC detection.</comment>
</field>
<field id="serial" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<frontend_model>Plumrocket\Base\Block\Adminhtml\System\Config\Form\Serial</frontend_model>
<label>Serial Key</label>
<attribute type="pr_extension_name">GlobalPrivacyControl</attribute>
</field>
<field id="geo_targeting" translate="label comment" type="multiselect" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Geo Targeting</label>
<source_model>Plumrocket\GeoIPLookup\Model\System\Config\Source\GeoTargeting</source_model>
<frontend_model>Plumrocket\GlobalPrivacyControl\Block\Adminhtml\System\Config\GeoTargetingMultiSelect</frontend_model>
<frontend_class>geoip-select-with-chosen prgdpr-coutry</frontend_class>
<comment>Limit GPC functionality to visitors from specified regions.</comment>
</field>
<field id="states_geo_targeting" translate="label comment" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>U.S. States</label>
<source_model>Plumrocket\GeoIPLookup\Model\System\Config\Source\GeoTargetingStates</source_model>
<frontend_class>geoip-select-with-chosen prgdpr-ccpa</frontend_class>
</field>
</group>
<group id="cookie_consent_management" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Cookie Consent Management</label>
<attribute type="expanded">1</attribute>
<field id="addon_required_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Notice</frontend_model>
<attribute type="pr_notice__level">note addon-required-notice</attribute>
<attribute type="pr_notice__text">
<![CDATA[<b>Cookie Consent Pro Extension Required.</b><br>Please make sure the Cookie Consent Pro extension is installed correctly.]]>
</attribute>
</field>
</group>
<group id="do_not_sell" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Do Not Sell or Share Request Management</label>
<attribute type="expanded">1</attribute>
<field id="addon_required_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Notice</frontend_model>
<attribute type="pr_notice__level">note addon-required-notice</attribute>
<attribute type="pr_notice__text">
<![CDATA[<div class="pr-gpc-notice-intro"><p><strong>US Privacy Laws Pro Extension Required.</strong> To recognize GPC signals for "Do Not Sell or Share My Personal Information" requests, the US Privacy Laws Pro extension by Plumrocket must be installed. Upgrade today for full compliance – <strong>pay only the difference</strong> with coupon code.</p></div><div class="pr-gpc-coupon-wrapper"><div class="pr-gpc-coupon">USPrivacyUpgrade</div></div><a href="https://plumrocket.com/magento-us-privacy-laws" target="_blank">Get US Privacy Laws Extension →</a>]]>
</attribute>
</field>
</group>
<group id="opt_out_notification" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>GPC Opt-Out Notification</label>
<field id="enabled" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>When enabled, a notification will appear to users on their initial visit, confirming that the opt-out preference signal has been honored. This aligns with privacy laws like CPRA and similar regulations in other regions, which recommend honoring user privacy preferences.</comment>
</field>
<field id="text" translate="label comment" type="editor" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Notification</label>
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Editor</frontend_model>
<comment>Enter the notification text to display to your visitors.</comment>
</field>
</group>
<group id="well_known" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
<label>GPC .well-known Settings</label>
<attribute type="expanded">1</attribute>
<field id="last_update" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Last Update Date</label>
<comment>Enter the date of the last update to the GPC settings. Please use the format YYYY-MM-DD. By default, this field is set to the date when the extension was installed.</comment>
<validate>required-entry validate-date</validate>
</field>
<field id="preview" translate="label comment" type="label" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Preview of .well-known/gpc.json File</label>
<comment>This is the content of the .well-known/gpc.json file, which informs browsers and other tools that your site supports Global Privacy Control (GPC). The file includes the GPC status and the last update date.</comment>
<frontend_model>Plumrocket\GlobalPrivacyControl\Block\Adminhtml\System\Config\WellKnownPreview</frontend_model>
</field>
</group>
</section>
</system>
</config>