Files
ltsecurityinc/app/code/Plumrocket/CookieConsentPro/etc/adminhtml/system.xml
T

53 lines
3.0 KiB
XML

<?xml version="1.0"?>
<!--
/**
* @package Plumrocket_CookieConsentPro
* @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_cookie">
<label>Cookie Consent Pro</label>
<group id="toolbox" >
<field id="version">
<attribute type="pr_extension_name">CookieConsentPro</attribute>
</field>
</group>
<group id="general">
<field id="serial" translate="label comment" type="text" sortOrder="30" 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">CookieConsentPro</attribute>
</field>
</group>
<include path="Plumrocket_CookieConsentPro::system/integrations.xml"/>
</section>
<section id="pr_gpc">
<group id="cookie_consent_management">
<field id="behavior" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Cookie Consent Behavior on GPC Signal</label>
<source_model>Plumrocket\CookieConsentPro\Model\Config\Source\GlobalPrivacyControl\CookieConsentBehavior</source_model>
<comment>Choose the default behavior when GPC is detected.</comment>
</field>
<field id="categories_to_decline" translate="label comment" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Categories to Decline</label>
<source_model>Plumrocket\CookieConsentPro\Model\Config\Source\CookieCategories</source_model>
<frontend_model>Plumrocket\CookieConsentPro\Block\Adminhtml\System\Config\Form\GlobalPrivacyControl\CookieCategoriesToDecline</frontend_model>
<backend_model>Plumrocket\CookieConsentPro\Model\Config\Backend\GlobalPrivacyControl\CookieCategoriesToDecline</backend_model>
<comment>Select which categories of cookies to decline automatically when GPC is enabled. Please note: essential cookies cannot be selected to be automatically declined, as they are required for the core functionality of the website.</comment>
<depends>
<field id="behavior">decline_specific</field>
</depends>
</field>
<field id="addon_required_notice" showInDefault="0" showInWebsite="0" showInStore="0"/>
</group>
</section>
</system>
</config>