ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
|
||||
<acl>
|
||||
<resources>
|
||||
<resource id="Magento_Backend::admin">
|
||||
<resource id="Plumrocket_Base::elements">
|
||||
<resource id="Plumrocket_CookieConsent::pr_menu" title="Cookie Consent" sortOrder="1547904">
|
||||
<resource id="Plumrocket_CookieConsent::cookie_categories" title="Cookie Categories" sortOrder="10"/>
|
||||
<resource id="Plumrocket_CookieConsent::cookies" title="Cookies" sortOrder="20"/>
|
||||
<resource id="Plumrocket_CookieConsent::consent_log" title="Cookie Consent Log" sortOrder="30"/>
|
||||
</resource>
|
||||
</resource>
|
||||
<resource id="Magento_Backend::stores">
|
||||
<resource id="Magento_Backend::stores_settings">
|
||||
<resource id="Magento_Config::config">
|
||||
<resource id="Plumrocket_CookieConsent::configuration" title="Cookie Consent Section" />
|
||||
</resource>
|
||||
</resource>
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</config>
|
||||
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Plumrocket Inc.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the End-user License Agreement
|
||||
* that is available through the world-wide-web at this URL:
|
||||
* http://wiki.plumrocket.net/wiki/EULA
|
||||
* If you are unable to obtain it through the world-wide-web, please
|
||||
* send an email to support@plumrocket.com so we can send you a copy immediately.
|
||||
*
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
|
||||
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
|
||||
*/
|
||||
-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<preference for="Plumrocket\CookieConsent\Ui\Locator\CategoryLocatorInterface" type="Plumrocket\CookieConsent\Ui\Locator\CategoryContainerLocator" />
|
||||
<preference for="Plumrocket\CookieConsent\Ui\Locator\CookieLocatorInterface" type="Plumrocket\CookieConsent\Ui\Locator\CookieContainerLocator" />
|
||||
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\Eav">
|
||||
<arguments>
|
||||
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CategoryLocatorInterface</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\System">
|
||||
<arguments>
|
||||
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CategoryLocatorInterface</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\Eav">
|
||||
<arguments>
|
||||
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CookieLocatorInterface</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\System">
|
||||
<arguments>
|
||||
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CookieLocatorInterface</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\Duration">
|
||||
<arguments>
|
||||
<argument name="locator" xsi:type="object">Plumrocket\CookieConsent\Ui\Locator\CookieLocatorInterface</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
<virtualType name="CookieCategoryFormModifierPool" type="Magento\Ui\DataProvider\Modifier\Pool">
|
||||
<arguments>
|
||||
<argument name="modifiers" xsi:type="array">
|
||||
<item name="eav" xsi:type="array">
|
||||
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\Eav</item>
|
||||
<item name="sortOrder" xsi:type="number">100</item>
|
||||
</item>
|
||||
<item name="system" xsi:type="array">
|
||||
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\System</item>
|
||||
<item name="sortOrder" xsi:type="number">200</item>
|
||||
</item>
|
||||
<item name="key" xsi:type="array">
|
||||
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\Modifier\Key</item>
|
||||
<item name="sortOrder" xsi:type="number">300</item>
|
||||
</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Category\Form\DataProvider">
|
||||
<arguments>
|
||||
<argument name="pool" xsi:type="object">CookieCategoryFormModifierPool</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
<virtualType name="CookieFormModifierPool" type="Magento\Ui\DataProvider\Modifier\Pool">
|
||||
<arguments>
|
||||
<argument name="modifiers" xsi:type="array">
|
||||
<item name="eav" xsi:type="array">
|
||||
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\Eav</item>
|
||||
<item name="sortOrder" xsi:type="number">100</item>
|
||||
</item>
|
||||
<item name="system" xsi:type="array">
|
||||
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\System</item>
|
||||
<item name="sortOrder" xsi:type="number">200</item>
|
||||
</item>
|
||||
<item name="duration" xsi:type="array">
|
||||
<item name="class" xsi:type="string">Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\Modifier\Duration</item>
|
||||
<item name="sortOrder" xsi:type="number">300</item>
|
||||
</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<type name="Plumrocket\CookieConsent\Ui\DataProvider\Cookie\Item\Form\DataProvider">
|
||||
<arguments>
|
||||
<argument name="pool" xsi:type="object">CookieFormModifierPool</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Plumrocket Inc.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the End-user License Agreement
|
||||
* that is available through the world-wide-web at this URL:
|
||||
* http://wiki.plumrocket.net/wiki/EULA
|
||||
* If you are unable to obtain it through the world-wide-web, please
|
||||
* send an email to support@plumrocket.com so we can send you a copy immediately.
|
||||
*
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
|
||||
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
|
||||
<menu>
|
||||
<add module="Plumrocket_CookieConsent" parent="Plumrocket_Base::elements" id="Plumrocket_CookieConsent::pr_menu" resource="Plumrocket_CookieConsent::pr_menu" title="Cookie Consent" translate="title" sortOrder="1547904"/>
|
||||
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_menu" id="Plumrocket_CookieConsent::cookie_categories" resource="Plumrocket_CookieConsent::cookie_categories" action="pr_cookie/category/index" title="Cookie Categories" translate="title" sortOrder="10"/>
|
||||
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_menu" id="Plumrocket_CookieConsent::cookies" resource="Plumrocket_CookieConsent::cookies" action="pr_cookie/item/index" title="Cookies" translate="title" sortOrder="20"/>
|
||||
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_menu" id="Plumrocket_CookieConsent::consent_log" resource="Plumrocket_CookieConsent::consent_log" action="pr_cookie/consent_log/index" title="Cookie Consent Log" translate="title" sortOrder="30"/>
|
||||
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_menu" id="Plumrocket_CookieConsent::configuration" resource="Plumrocket_CookieConsent::configuration" action="adminhtml/system_config/edit/section/pr_cookie" title="Configuration" translate="title" sortOrder="60"/>
|
||||
|
||||
<add module="Plumrocket_CookieConsent" parent="Magento_Customer::customer" id="Plumrocket_CookieConsent::pr_group_icon_customer" resource="Plumrocket_CookieConsent::pr_menu" title="Cookie Consent" translate="title" sortOrder="1547904"/>
|
||||
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_group_icon_customer" id="Plumrocket_CookieConsent::customer__cookie_categories" resource="Plumrocket_CookieConsent::cookie_categories" action="pr_cookie/category/index" title="Cookie Categories" translate="title" sortOrder="10"/>
|
||||
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_group_icon_customer" id="Plumrocket_CookieConsent::customer__cookies" resource="Plumrocket_CookieConsent::cookies" action="pr_cookie/item/index" title="Cookies" translate="title" sortOrder="20"/>
|
||||
<add module="Plumrocket_CookieConsent" parent="Plumrocket_CookieConsent::pr_group_icon_customer" id="Plumrocket_CookieConsent::customer__consent_log" resource="Plumrocket_CookieConsent::consent_log" action="pr_cookie/consent_log/index" title="Cookie Consent Log" translate="title" sortOrder="30"/>
|
||||
</menu>
|
||||
</config>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
|
||||
* Plumrocket Inc.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the End-user License Agreement
|
||||
* that is available through the world-wide-web at this URL:
|
||||
* http://wiki.plumrocket.net/wiki/EULA
|
||||
* If you are unable to obtain it through the world-wide-web, please
|
||||
* send an email to support@plumrocket.com so we can send you a copy immediately.
|
||||
*
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
|
||||
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
|
||||
|
||||
-->
|
||||
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="admin">
|
||||
<route id="pr_cookie" frontName="prcookie">
|
||||
<module name="Plumrocket_CookieConsent" />
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
@@ -0,0 +1,421 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://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" translate="label" type="text" sortOrder="1547904" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<class>separator-top</class>
|
||||
<label>Cookie Consent</label>
|
||||
<tab>plumrocket</tab>
|
||||
<resource>Plumrocket_CookieConsent::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">CookieConsent</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" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Enable Extension</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
<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">CookieConsent</attribute>
|
||||
</field>
|
||||
</group>
|
||||
<group id="main_settings" translate="label" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Main Settings</label>
|
||||
|
||||
<field id="use_cookie_before_opt_in" translate="label" type="select" sortOrder="400" showInDefault="1" showInWebsite="1" showInStore="0">
|
||||
<label>Enable Cookies Before Customer Opt-In</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Enable all cookies until the customer accepts or declines them. We recommend enabling this feature for CCPA law where consent is not required for collecting personal data.</comment>
|
||||
</field>
|
||||
<field id="consent_expiry" translate="label" type="text" sortOrder="500" showInDefault="1" showInWebsite="1" showInStore="0">
|
||||
<label>Consent Expiration (days)</label>
|
||||
<comment>Set number of days when the consent cookies are set to expire.</comment>
|
||||
</field>
|
||||
<field id="block_unknown_cookie" translate="label" type="select" sortOrder="600" showInDefault="1" showInWebsite="1" showInStore="0">
|
||||
<label>Block Unknown Cookies</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Block all cookies that are not listed in the "Manage Cookies" grid until a visitor clicks on the "Accept All Cookies" button.</comment>
|
||||
</field>
|
||||
<field id="reload_after_accept" translate="label" type="select" sortOrder="700" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Reload Page After Accept Button Click</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Reloading a page after "Accept Cookies Button" is clicked helps to enable certain javascripts and third-party cookies. We recommend setting this option to "Yes" if "Enable Cookies Before Customer Opt-In" option above is set to "No".</comment>
|
||||
</field>
|
||||
<field id="reload_after_decline" translate="label" type="select" sortOrder="800" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Reload Page After Decline Button Click</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Reloading a page after "Decline Cookies Button" is clicked helps to disable certain javascripts and third-party cookies. We recommend setting this option to "Yes" if "Enable Cookies Before Customer Opt-In" option above is set to "Yes".</comment>
|
||||
</field>
|
||||
</group>
|
||||
<group id="cookie_notice" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Cookie Consent Banner</label>
|
||||
|
||||
<field id="display_style" translate="label" type="Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Element\ImageRadioButtons" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Display Style</label>
|
||||
<source_model>Plumrocket\CookieConsent\Model\Config\Source\BannerDisplayStyle</source_model>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\CustomisableField</frontend_model>
|
||||
<comment>Select the design of the cookie notice. Please note, the option “Full-Screen Cookie Wall”, unlike other options, prevents visitors from using the website until they agree to enable cookies.</comment>
|
||||
</field>
|
||||
<field id="hide_on_urls" type="textarea" sortOrder="30" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Hide On Urls</label>
|
||||
<comment>You can disable cookie consent banner on specific pages. Enter each URL in new line. Both the absolute or relative path is allowed.</comment>
|
||||
</field>
|
||||
<field id="title" type="text" sortOrder="55" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Title</label>
|
||||
<depends>
|
||||
<field id="display_style" separator=",">wall,popup</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text" translate="label" type="editor" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Notice Text</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Editor</frontend_model>
|
||||
<attribute type="pr_editor_height">200px</attribute>
|
||||
</field>
|
||||
<field id="title_color" translate="label" type="text" sortOrder="65" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Title Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="display_style" separator=",">wall,popup</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text_color" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="background_color" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="overlay_background_color" translate="label" type="text" sortOrder="85" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Overlay Background Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="display_style" separator=",">wall,popup</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="overlay_blur" translate="label" type="select" sortOrder="87" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Overlay Background Blur</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<depends>
|
||||
<field id="display_style" separator=",">wall,popup</field>
|
||||
</depends>
|
||||
</field>
|
||||
<group id="accept_button" translate="label" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Accept Button</label>
|
||||
|
||||
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Label</label>
|
||||
<comment><![CDATA[Enter here "Allow Cookies", "Accept", etc.]]></comment>
|
||||
</field>
|
||||
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
</group>
|
||||
<group id="decline_button" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Decline Button</label>
|
||||
|
||||
<field id="enabled" type="select" sortOrder="5" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Show</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Label</label>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
</group>
|
||||
<group id="settings_button" translate="label" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Settings Button</label>
|
||||
|
||||
<field id="enabled" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Show</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
<field id="label" type="text" sortOrder="20" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Label</label>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="type" type="select" sortOrder="30" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Type</label>
|
||||
<source_model>Plumrocket\CookieConsent\Model\Config\Source\SettingsButtonType</source_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="type">button</field>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="type">button</field>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="background_color" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="type">button</field>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="background_color_on_hover" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="type">button</field>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="link_color" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Link Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="type">link</field>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="link_color_on_hover" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Link Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="type">link</field>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
</group>
|
||||
</group>
|
||||
<group id="settings_bar" translate="label" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Cookie Settings Panel</label>
|
||||
<field id="display_style" translate="label" type="Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Element\ImageRadioButtons" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Display Style</label>
|
||||
<source_model>Plumrocket\CookieConsent\Model\Config\Source\SettingsPanelDisplayStyle</source_model>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\CustomisableField</frontend_model>
|
||||
</field>
|
||||
<field id="overview_title" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Title</label>
|
||||
</field>
|
||||
<field id="overview_text" translate="label" type="editor" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Overview</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\Editor</frontend_model>
|
||||
<attribute type="pr_editor_height">200px</attribute>
|
||||
</field>
|
||||
<field id="text_color" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="background_color" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
|
||||
<group id="consent_preferences" translate="label" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Consent Preferences</label>
|
||||
<field id="header" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Header</label>
|
||||
<config_path>pr_cookie/settings_bar/header</config_path>
|
||||
</field>
|
||||
<field id="essential_category_status" translate="label" type="text" sortOrder="20" showInWebsite="1" showInDefault="1" showInStore="1">
|
||||
<label>Essential Category Status</label>
|
||||
<config_path>pr_cookie/settings_bar/essential_category_status</config_path>
|
||||
</field>
|
||||
<field id="show_details" type="select" sortOrder="30" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Show Information About Each Cookie</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Show info about a cookie (domain, type, duration, description, etc.) listed in "Manage Cookies" grid.</comment>
|
||||
<config_path>pr_cookie/settings_bar/show_details</config_path>
|
||||
</field>
|
||||
<field id="cookie_details_link" translate="label" type="text" sortOrder="35" showInStore="1" showInDefault="1" showInWebsite="1">
|
||||
<label>Cookie Details Link</label>
|
||||
<depends>
|
||||
<field id="show_details">1</field>
|
||||
</depends>
|
||||
<config_path>pr_cookie/settings_bar/cookie_details_link</config_path>
|
||||
</field>
|
||||
</group>
|
||||
<group id="accept_button" translate="label" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Accept Button</label>
|
||||
|
||||
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Label</label>
|
||||
<comment><![CDATA[Enter here "Allow Cookies", "Accept", etc.]]></comment>
|
||||
</field>
|
||||
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
</group>
|
||||
<group id="decline_button" translate="label" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Decline Button</label>
|
||||
|
||||
<field id="enabled" type="select" sortOrder="5" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Show</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
</field>
|
||||
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Label</label>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
</group>
|
||||
<group id="confirm_button" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Confirm Button</label>
|
||||
|
||||
<field id="label" type="text" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Label</label>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text_color" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="text_color_on_hover" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Text Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
</field>
|
||||
<field id="background_color" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
<field id="background_color_on_hover" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Background Color On Hover</label>
|
||||
<frontend_model>Plumrocket\ExtendedAdminUi\Block\Adminhtml\System\Config\Form\ColorPicker</frontend_model>
|
||||
<depends>
|
||||
<field id="enabled">1</field>
|
||||
</depends>
|
||||
</field>
|
||||
</group>
|
||||
</group>
|
||||
<group id="settings_link" translate="label" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Cookie Settings Link</label>
|
||||
|
||||
<field id="show_footer_link" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Add Footer Link</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<comment>Automatically add the "Cookie Settings" link in the website footer. By clicking on this link your customers and guest visitors can manage their cookie settings at any time. If you want to add this link manually, please use the widget code below.</comment>
|
||||
</field>
|
||||
<field id="widget_code" translate="label" type="textarea" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Widget Code</label>
|
||||
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\WidgetCode</frontend_model>
|
||||
<comment>Use this Magento widget to insert the "Cookie Settings" link anywhere across your store. Widgets are useful when you need to manually display the cookie settings button in the website footer, Privacy Policy or Cookie Policy page, etc.</comment>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<include path="Plumrocket_CookieConsent::system/integrations.xml"/>
|
||||
</section>
|
||||
</system>
|
||||
</config>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
/**
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://www.plumrocket.com)
|
||||
* @license https://www.plumrocket.com/license/ End-user License Agreement
|
||||
*/
|
||||
-->
|
||||
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
|
||||
<group id="integrations" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Integrations</label>
|
||||
<attribute type="expanded">1</attribute>
|
||||
|
||||
<group id="pr_gpc" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Global Privacy Control (GPC) – Available in Pro Version</label>
|
||||
<attribute type="expanded">0</attribute>
|
||||
<field id="upgrade_to_pro_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice</frontend_model>
|
||||
<attribute type="notice_intro">
|
||||
<![CDATA[This configuration is available in the Cookie Consent Pro version. Upgrade today to automatically detect users’ browser-level consent preferences and stay compliant with the latest data privacy regulations.]]>
|
||||
</attribute>
|
||||
</field>
|
||||
</group>
|
||||
<group id="gtm" translate="label" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Google Tag Manager</label>
|
||||
|
||||
<field id="enabled" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Enable</label>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<config_path>prgdpr/gtm/enabled</config_path>
|
||||
</field>
|
||||
<field id="container_id" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Container Id</label>
|
||||
<depends>
|
||||
<field id="*/*/*/enabled">1</field>
|
||||
</depends>
|
||||
<config_path>prgdpr/gtm/container_id</config_path>
|
||||
<comment>Enter your container ID formatted as "GTM-XXXXXX".</comment>
|
||||
</field>
|
||||
<field id="server_side_tagging" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Use Server-Side Tagging</label>
|
||||
<depends>
|
||||
<field id="*/*/*/enabled">1</field>
|
||||
</depends>
|
||||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||||
<config_path>pr_cookie/gtm/server_side_tagging</config_path>
|
||||
<comment><![CDATA[Enable server-side tagging to serve the Google Tag Manager script from your own infrastructure, as recommended by Google for advanced configurations to serve data within a first-party context. See the <a href="https://developers.google.com/tag-platform/tag-manager/server-side/dependency-serving?tag=gtm" target="_blank">server-side tagging documentation</a> for details on script dependency serving.]]></comment>
|
||||
</field>
|
||||
<field id="server_url" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Server Container URL</label>
|
||||
<depends>
|
||||
<field id="*/*/*/enabled">1</field>
|
||||
<field id="*/*/*/server_side_tagging">1</field>
|
||||
</depends>
|
||||
<config_path>pr_cookie/gtm/server_url</config_path>
|
||||
</field>
|
||||
<field id="consent_mode" type="select" sortOrder="50" translate="label" showInDefault="1"
|
||||
showInWebsite="1" showInStore="1">
|
||||
<label>Enable Consent Mode</label>
|
||||
<options>
|
||||
<option label="Yes">1</option>
|
||||
<option label="No (Deprecated)">0</option>
|
||||
</options>
|
||||
<depends>
|
||||
<field id="*/*/*/enabled">1</field>
|
||||
</depends>
|
||||
<config_path>pr_cookie/gtm/consent_mode</config_path>
|
||||
<comment><![CDATA[Consent mode is a <a href="https://support.google.com/analytics/answer/9976101" target="_blank">GTM build-in feature</a>, allowing to control Google Tags based on user consent in Magento.]]></comment>
|
||||
</field>
|
||||
<field id="consent_types" translate="label" sortOrder="60" showInDefault="1" showInWebsite="1"
|
||||
showInStore="1">
|
||||
<label>Consent Types</label>
|
||||
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\ConsentTypes\MappingTable</frontend_model>
|
||||
<backend_model>Plumrocket\CookieConsent\Model\Config\Backend\ConsentTypes</backend_model>
|
||||
<depends>
|
||||
<field id="*/*/*/enabled">1</field>
|
||||
<field id="*/*/*/consent_mode">1</field>
|
||||
</depends>
|
||||
<config_path>pr_cookie/gtm/consent_types</config_path>
|
||||
<comment><![CDATA[To learn more about consent types, please check official <a href="https://support.google.com/tagmanager/answer/10718549" target="_blank">consent configuration article</a>.]]></comment>
|
||||
</field>
|
||||
<field id="category" type="select" sortOrder="70" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Associated Cookie Category</label>
|
||||
<source_model>Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey</source_model>
|
||||
<depends>
|
||||
<field id="*/*/*/enabled">1</field>
|
||||
<field id="*/*/*/consent_mode">0</field>
|
||||
</depends>
|
||||
<config_path>pr_cookie/gtm/category</config_path>
|
||||
<comment>Assign Google Tag Manager Script to a specific cookie category. This allows enabling/disabling Google Tag Manager when a visitor enables/disables the corresponding cookie category.</comment>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="no_cookie_youtube" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>YouTube</label>
|
||||
<field id="category" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Associated Cookie Category</label>
|
||||
<source_model>Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey</source_model>
|
||||
<config_path>pr_cookie/no_cookie_youtube/category</config_path>
|
||||
<comment><![CDATA[Assign YouTube script to a specific cookie category. This allows enabling/disabling the YouTube <a href="https://support.google.com/youtube/answer/171780" target="_blank">privacy-enhanced mode</a> when the visitor enables/disables the corresponding cookie category.]]></comment>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="adobe_commerce_data_collection" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Adobe Commerce Data Collection</label>
|
||||
<field id="category" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Associated Cookie Category</label>
|
||||
<source_model>Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey</source_model>
|
||||
<comment><![CDATA[Specify a cookie category for the Data Collection service, which directly influences the accuracy of <a href="https://experienceleague.adobe.com/en/docs/commerce-merchant-services/product-recommendations/guide-overview" target="_blank">Product Recommendations</a>. Event tracking operates in accordance with the extension's main settings.]]></comment>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="microsoft_ads" translate="label" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Microsoft Ads (UET Consent Mode) – Available in Pro Version</label>
|
||||
<attribute type="expanded">0</attribute>
|
||||
<field id="upgrade_to_pro_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice</frontend_model>
|
||||
<attribute type="notice_intro">
|
||||
<![CDATA[This configuration is available in the Cookie Consent Pro version. Upgrade today to stay compliant with data privacy regulations and ensure your Microsoft Ads tracking respects user consent choices.]]>
|
||||
</attribute>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
<group id="microsoft_clarity" translate="label" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<label>Microsoft Clarity – Available in Pro Version</label>
|
||||
<attribute type="expanded">0</attribute>
|
||||
<field id="upgrade_to_pro_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||||
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice</frontend_model>
|
||||
<attribute type="notice_intro">
|
||||
<![CDATA[This configuration is available in the Cookie Consent Pro version. Upgrade today to stay compliant with data privacy regulations and ensure your Microsoft Clarity tracking respects user consent choices.]]>
|
||||
</attribute>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
</group>
|
||||
</include>
|
||||
@@ -0,0 +1,119 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
|
||||
<default>
|
||||
<pr_cookie>
|
||||
<general>
|
||||
<enable>0</enable>
|
||||
<serial></serial>
|
||||
</general>
|
||||
<main_settings>
|
||||
<use_cookie_before_opt_in>0</use_cookie_before_opt_in>
|
||||
<block_unknown_cookie>0</block_unknown_cookie>
|
||||
<consent_expiry>365</consent_expiry>
|
||||
<reload_after_accept>1</reload_after_accept>
|
||||
<reload_after_decline>0</reload_after_decline>
|
||||
</main_settings>
|
||||
<cookie_notice>
|
||||
<display_style>bottom</display_style>
|
||||
<title>We use cookies</title>
|
||||
<text><![CDATA[<p>This website requires cookies to provide all of its features. For more information on what data is contained in the cookies, please see our <a href="{{store url="privacy-policy-cookie-restriction-mode"}}" target="_blank">Cookie Policy</a> page. To accept cookies from this site, please click the Accept Cookies button below.</p>]]></text>
|
||||
<title_color>#f6f6f6</title_color>
|
||||
<text_color>#e6e6e6</text_color>
|
||||
<background_color>#002244E3</background_color>
|
||||
<overlay_blur>0</overlay_blur>
|
||||
<accept_button>
|
||||
<label>Accept Cookies</label>
|
||||
</accept_button>
|
||||
<decline_button>
|
||||
<enabled>1</enabled>
|
||||
<label>Decline</label>
|
||||
</decline_button>
|
||||
<settings_button>
|
||||
<enabled>1</enabled>
|
||||
<type>link</type>
|
||||
<label>Customize Settings</label>
|
||||
</settings_button>
|
||||
</cookie_notice>
|
||||
<settings_bar>
|
||||
<display_style>left_bar</display_style>
|
||||
<show_details>1</show_details>
|
||||
<overview_title>Privacy and Cookies</overview_title>
|
||||
<overview_text><![CDATA[<p>A cookie is information stored on your computer by a website you visit. Cookies provide a way for the site to recognize you and keep track of your preferences. Ecommerce websites place cookies on visitors' browsers to retain login credentials, identify customers, and provide a customized shopping experience.</p><p>We respect the privacy of individuals and recognize the importance of personal data entrusted to us by our customers. Any website visitor may choose not to allow some types of cookies. Click on cookie category headings and cookie details to find out more and change our default settings. However, blocking some types of cookies may impact your website experience and prevent you from using all the features on our store.</p>]]></overview_text>
|
||||
<text_color>inherit</text_color>
|
||||
<background_color>inherit</background_color>
|
||||
<accept_button>
|
||||
<label>Accept All</label>
|
||||
</accept_button>
|
||||
<decline_button>
|
||||
<enabled>1</enabled>
|
||||
<label>Decline All</label>
|
||||
</decline_button>
|
||||
<confirm_button>
|
||||
<label>Confirm My Choices</label>
|
||||
</confirm_button>
|
||||
<header>Manage Consent Preferences</header>
|
||||
<essential_category_status>Always Active</essential_category_status>
|
||||
<cookie_details_link>Cookie Details</cookie_details_link>
|
||||
</settings_bar>
|
||||
<settings_link>
|
||||
<widget_code><![CDATA[{{widget type="Plumrocket\CookieConsent\Block\Widget\CookieSettingsButton" title="Cookie Settings" template="widget/cookie_settings_button.phtml"}}]]></widget_code>
|
||||
</settings_link>
|
||||
<gtm>
|
||||
<server_side_tagging>0</server_side_tagging>
|
||||
<server_url>https://www.googletagmanager.com</server_url>
|
||||
<consent_mode>1</consent_mode>
|
||||
<consent_types>
|
||||
<item1>
|
||||
<consent_type>ad_storage</consent_type>
|
||||
<status>denied</status>
|
||||
<cookie_category>marketing</cookie_category>
|
||||
</item1>
|
||||
<item2>
|
||||
<consent_type>analytics_storage</consent_type>
|
||||
<status>denied</status>
|
||||
<cookie_category>statistics</cookie_category>
|
||||
</item2>
|
||||
<item3>
|
||||
<consent_type>functionality_storage</consent_type>
|
||||
<status>denied</status>
|
||||
<cookie_category>necessary</cookie_category>
|
||||
</item3>
|
||||
<item4>
|
||||
<consent_type>personalization_storage</consent_type>
|
||||
<status>denied</status>
|
||||
<cookie_category>preferences</cookie_category>
|
||||
</item4>
|
||||
<item5>
|
||||
<consent_type>security_storage</consent_type>
|
||||
<status>denied</status>
|
||||
<cookie_category>necessary</cookie_category>
|
||||
</item5>
|
||||
<item6>
|
||||
<consent_type>ad_user_data</consent_type>
|
||||
<status>denied</status>
|
||||
<cookie_category>marketing</cookie_category>
|
||||
</item6>
|
||||
<item7>
|
||||
<consent_type>ad_personalization</consent_type>
|
||||
<status>denied</status>
|
||||
<cookie_category>marketing</cookie_category>
|
||||
</item7>
|
||||
</consent_types>
|
||||
<category>marketing</category>
|
||||
</gtm>
|
||||
<no_cookie_youtube>
|
||||
<category>marketing</category>
|
||||
</no_cookie_youtube>
|
||||
<integrations>
|
||||
<adobe_commerce_data_collection>
|
||||
<category>marketing</category>
|
||||
</adobe_commerce_data_collection>
|
||||
</integrations>
|
||||
</pr_cookie>
|
||||
</default>
|
||||
</config>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
|
||||
<policies>
|
||||
<policy id="script-src">
|
||||
<values>
|
||||
<value id="googletagmanager.com" type="host">*.googletagmanager.com</value>
|
||||
</values>
|
||||
</policy>
|
||||
</policies>
|
||||
</csp_whitelist>
|
||||
@@ -0,0 +1,171 @@
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2022 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="plumrocket_eav_attribute_additional" resource="default" engine="innodb" comment="Plumrocket PrivateSale EAV Attributes">
|
||||
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="true" comment="Attribute ID"/>
|
||||
<column xsi:type="smallint" name="is_global" unsigned="true" nullable="false" identity="false" comment="Is Global"/>
|
||||
<column xsi:type="smallint" name="is_visible" unsigned="true" nullable="false" identity="false" comment="Is Visible"/>
|
||||
<constraint xsi:type="foreign" referenceId="PLUMROCKET_EAV_ATTRIBUTE_ADDITIONAL_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID"
|
||||
table="plumrocket_eav_attribute_additional" column="attribute_id"
|
||||
referenceTable="eav_attribute" referenceColumn="attribute_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="attribute_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="pr_cookie_category_entity" resource="default" engine="innodb">
|
||||
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true" comment="Record Identifier"/>
|
||||
<column xsi:type="boolean" name="status" nullable="false" comment="Status"/>
|
||||
<column xsi:type="boolean" name="is_essential" nullable="false" comment="Is Essential"/>
|
||||
<column xsi:type="varchar" name="key" nullable="false" length="20" comment="Category key"/>
|
||||
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="false" comment="Creation Time"/>
|
||||
<column xsi:type="timestamp" name="updated_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="true" comment="Update Time"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="entity_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="PR_COOKIE_CATEGORY_ENTITY_KEY">
|
||||
<column name="key"/>
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="pr_cookie_entity" resource="default" engine="innodb">
|
||||
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true" comment="Record Identifier"/>
|
||||
<column xsi:type="varchar" name="category_key" nullable="false" length="20" comment="Category key"/>
|
||||
<column xsi:type="varchar" name="type" nullable="false" length="10" comment="Cookie Type"/>
|
||||
<column xsi:type="varchar" name="domain" nullable="true" length="255" comment="Cookie Domain"/>
|
||||
<column xsi:type="varchar" name="name" nullable="false" length="255" comment="Cookie Name"/>
|
||||
<column xsi:type="int" name="duration" nullable="false" comment="Cookie Duration (Lifetime)"/>
|
||||
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="false" comment="Creation Time"/>
|
||||
<column xsi:type="timestamp" name="updated_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="true" comment="Update Time"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="entity_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="PR_COOKIE_ENTITY_NAME">
|
||||
<column name="name"/>
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="pr_cookie_category_entity_int" resource="default" engine="innodb" comment="Plumrocket Cookie Consent INT Value Table">
|
||||
<column xsi:type="int" name="value_id" nullable="false" identity="true" comment="Value ID"/>
|
||||
<column xsi:type="smallint" name="attribute_id" nullable="false" unsigned="true" default="0" comment="Attribute ID"/>
|
||||
<column xsi:type="smallint" name="store_id" nullable="false" unsigned="true" default="0" comment="Store ID"/>
|
||||
<column xsi:type="int" name="entity_id" nullable="false" unsigned="true" default="0" comment="Entity ID"/>
|
||||
<column xsi:type="int" name="value" comment="Value"/>
|
||||
<index referenceId="PR_COOKIE_CATEGORY_ENTITY_INT_ENTITY_ID" indexType="btree">
|
||||
<column name="entity_id"/>
|
||||
</index>
|
||||
<index referenceId="PR_COOKIE_CATEGORY_ENTITY_INT_ATTRIBUTE_ID" indexType="btree">
|
||||
<column name="attribute_id"/>
|
||||
</index>
|
||||
<index referenceId="PR_COOKIE_CATEGORY_ENTITY_INT_STORE_ID" indexType="btree">
|
||||
<column name="store_id"/>
|
||||
</index>
|
||||
<constraint xsi:type="unique" referenceId="PR_COOKIE_CATEGORY_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
|
||||
<column name="entity_id"/>
|
||||
<column name="attribute_id"/>
|
||||
<column name="store_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="PR_COOKIE_CATEGORY_ENTITY_INT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID"
|
||||
table="pr_cookie_category_entity_int" column="attribute_id"
|
||||
referenceTable="eav_attribute" referenceColumn="attribute_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="foreign" referenceId="PR_COOKIE_CATEGORY_ENTITY_INT_ENTITY_ID"
|
||||
table="pr_cookie_category_entity_int" column="entity_id"
|
||||
referenceTable="pr_cookie_category_entity" referenceColumn="entity_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="foreign" referenceId="PR_COOKIE_CATEGORY_ENTITY_INT_STORE_ID"
|
||||
table="pr_cookie_category_entity_int" column="store_id"
|
||||
referenceTable="store" referenceColumn="store_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="value_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="pr_cookie_category_entity_text" resource="default" engine="innodb" comment="Plumrocket Cookie Consent TEXT Value Table">
|
||||
<column xsi:type="int" name="value_id" nullable="false" identity="true" comment="Value ID"/>
|
||||
<column xsi:type="smallint" name="attribute_id" nullable="false" unsigned="true" default="0" comment="Attribute ID"/>
|
||||
<column xsi:type="smallint" name="store_id" nullable="false" unsigned="true" default="0" comment="Store ID"/>
|
||||
<column xsi:type="int" name="entity_id" nullable="false" unsigned="true" default="0" comment="Entity ID"/>
|
||||
<column xsi:type="text" name="value" comment="Value"/>
|
||||
<index referenceId="PR_COOKIE_CATEGORY_ENTITY_TEXT_ENTITY_ID" indexType="btree">
|
||||
<column name="entity_id"/>
|
||||
</index>
|
||||
<index referenceId="PR_COOKIE_CATEGORY_ENTITY_TEXT_ATTRIBUTE_ID" indexType="btree">
|
||||
<column name="attribute_id"/>
|
||||
</index>
|
||||
<index referenceId="PR_COOKIE_CATEGORY_ENTITY_TEXT_STORE_ID" indexType="btree">
|
||||
<column name="store_id"/>
|
||||
</index>
|
||||
<constraint xsi:type="unique" referenceId="PR_COOKIE_CATEGORY_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
|
||||
<column name="entity_id"/>
|
||||
<column name="attribute_id"/>
|
||||
<column name="store_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="PR_COOKIE_CATEGORY_ENTITY_TEXT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID"
|
||||
table="pr_cookie_category_entity_text" column="attribute_id"
|
||||
referenceTable="eav_attribute" referenceColumn="attribute_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="foreign" referenceId="PR_COOKIE_CATEGORY_ENTITY_TEXT_ENTITY_ID"
|
||||
table="pr_cookie_category_entity_text" column="entity_id"
|
||||
referenceTable="pr_cookie_category_entity" referenceColumn="entity_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="foreign" referenceId="PR_COOKIE_CATEGORY_ENTITY_TEXT_STORE_ID"
|
||||
table="pr_cookie_category_entity_text" column="store_id"
|
||||
referenceTable="store" referenceColumn="store_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="value_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="pr_cookie_entity_text" resource="default" engine="innodb" comment="Plumrocket Cookie Consent TEXT Value Table">
|
||||
<column xsi:type="int" name="value_id" nullable="false" identity="true" comment="Value ID"/>
|
||||
<column xsi:type="smallint" name="attribute_id" nullable="false" unsigned="true" default="0" comment="Attribute ID"/>
|
||||
<column xsi:type="smallint" name="store_id" nullable="false" unsigned="true" default="0" comment="Store ID"/>
|
||||
<column xsi:type="int" name="entity_id" nullable="false" unsigned="true" default="0" comment="Entity ID"/>
|
||||
<column xsi:type="text" name="value" comment="Value"/>
|
||||
<index referenceId="PR_COOKIE_ENTITY_TEXT_ENTITY_ID" indexType="btree">
|
||||
<column name="entity_id"/>
|
||||
</index>
|
||||
<index referenceId="PR_COOKIE_ENTITY_TEXT_ATTRIBUTE_ID" indexType="btree">
|
||||
<column name="attribute_id"/>
|
||||
</index>
|
||||
<index referenceId="PR_COOKIE_ENTITY_TEXT_STORE_ID" indexType="btree">
|
||||
<column name="store_id"/>
|
||||
</index>
|
||||
<constraint xsi:type="unique" referenceId="PR_COOKIE_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
|
||||
<column name="entity_id"/>
|
||||
<column name="attribute_id"/>
|
||||
<column name="store_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="PR_COOKIE_ENTITY_TEXT_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID"
|
||||
table="pr_cookie_entity_text" column="attribute_id"
|
||||
referenceTable="eav_attribute" referenceColumn="attribute_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="foreign" referenceId="PR_COOKIE_ENTITY_TEXT_ENTITY_ID_PR_COOKIE_ENTITY_ID"
|
||||
table="pr_cookie_entity_text" column="entity_id"
|
||||
referenceTable="pr_cookie_entity" referenceColumn="entity_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="foreign" referenceId="PR_COOKIE_ENTITY_TEXT_STORE_ID_STORE_STORE_ID"
|
||||
table="pr_cookie_entity_text" column="store_id"
|
||||
referenceTable="store" referenceColumn="store_id" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="value_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
|
||||
<table name="pr_cookie_consent_log" resource="default" engine="innodb" comment="Log of Customer Consents">
|
||||
<column xsi:type="int" name="consent_id" unsigned="true" nullable="false" identity="true" comment="Record Identifier"/>
|
||||
<column xsi:type="int" name="customer_id" nullable="true" unsigned="true" comment="Customer entity Id"/>
|
||||
<column xsi:type="varchar" name="guest_email" nullable="true" length="254" comment="Customer and Guest Email"/>
|
||||
<column xsi:type="smallint" name="website_id" nullable="false" unsigned="true" comment="Website Id"/>
|
||||
<column xsi:type="varchar" name="ip_address" nullable="false" length="255" comment="Customer IP Address"/>
|
||||
<column xsi:type="varchar" name="user_agent" nullable="true" length="255" comment="Customer User Agent"/>
|
||||
<column xsi:type="text" name="url" nullable="true" comment="Url"/>
|
||||
<column xsi:type="varchar" name="settings" nullable="false" length="255" comment="Customer Consent Settings"/>
|
||||
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="false" comment="Creation Time"/>
|
||||
<index referenceId="PR_COOKIE_CONSENT_LOG_CUSTOMER_ID" indexType="btree">
|
||||
<column name="customer_id"/>
|
||||
</index>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="consent_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
</schema>
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2021 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<preference for="Plumrocket\CookieConsent\Api\CanManageCookieInterface" type="Plumrocket\CookieConsent\Model\CanManageCookie" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\CookieRepositoryInterface" type="Plumrocket\CookieConsent\Model\CookieRepository" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\CategoryRepositoryInterface" type="Plumrocket\CookieConsent\Model\CategoryRepository" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\Data\CookieSearchResultsInterface" type="Magento\Framework\Api\SearchResults" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\Data\CategorySearchResultsInterface" type="Magento\Framework\Api\SearchResults" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\Data\CookieInterface" type="Plumrocket\CookieConsent\Model\Cookie" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\Data\CategoryInterface" type="Plumrocket\CookieConsent\Model\Category" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\GetCookieToCategoryMappingInterface" type="Plumrocket\CookieConsent\Model\GetCookieToCategoryMapping" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\GetEssentialCategoryKeysInterface" type="Plumrocket\CookieConsent\Model\Category\GetEssentialKeys" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\GetCategoryIdByKeyInterface" type="Plumrocket\CookieConsent\Model\ResourceModel\Category\GetIdByKey" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\GetCookieIdByNameInterface" type="Plumrocket\CookieConsent\Model\ResourceModel\Cookie\GetIdByName" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\KnownCookieRegistryInterface" type="Plumrocket\CookieConsent\Model\Cookie\KnownCookieRegistry" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\GetUserConsentInterface" type="Plumrocket\CookieConsent\Model\User\GetConsent" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\IsUserOptInInterface" type="Plumrocket\CookieConsent\Model\User\IsOptIn" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\IsAllowedCategoryInterface" type="Plumrocket\CookieConsent\Model\Category\IsAllowed" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\IsAllowedCookieInterface" type="Plumrocket\CookieConsent\Model\Cookie\IsAllowed" />
|
||||
<preference for="Plumrocket\CookieConsent\Api\Data\ConsentLogInterface" type="Plumrocket\CookieConsent\Model\Consent\Log" />
|
||||
|
||||
<virtualType name="Plumrocket\CookieConsent\Model\Api\SearchCriteria\CollectionProcessor" type="Magento\Eav\Model\Api\SearchCriteria\CollectionProcessor">
|
||||
<arguments>
|
||||
<argument name="processors" xsi:type="array">
|
||||
<item name="filters" xsi:type="object">Magento\Eav\Model\Api\SearchCriteria\CollectionProcessor\FilterProcessor</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<type name="Plumrocket\CookieConsent\Model\CategoryRepository">
|
||||
<arguments>
|
||||
<argument name="collectionProcessor" xsi:type="object">Plumrocket\CookieConsent\Model\Api\SearchCriteria\CollectionProcessor</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Plumrocket\CookieConsent\Model\CookieRepository">
|
||||
<arguments>
|
||||
<argument name="collectionProcessor" xsi:type="object">Plumrocket\CookieConsent\Model\Api\SearchCriteria\CollectionProcessor</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
<type name="Magento\Framework\EntityManager\MetadataPool">
|
||||
<arguments>
|
||||
<argument name="metadata" xsi:type="array">
|
||||
<item name="Plumrocket\CookieConsent\Api\Data\CategoryInterface" xsi:type="array">
|
||||
<item name="entityTableName" xsi:type="string">pr_cookie_category_entity</item>
|
||||
<item name="eavEntityType" xsi:type="string">pr_cookie_category</item>
|
||||
<item name="identifierField" xsi:type="string">entity_id</item>
|
||||
</item>
|
||||
<item name="Plumrocket\CookieConsent\Api\Data\CookieInterface" xsi:type="array">
|
||||
<item name="entityTableName" xsi:type="string">pr_cookie_entity</item>
|
||||
<item name="eavEntityType" xsi:type="string">pr_cookie</item>
|
||||
<item name="identifierField" xsi:type="string">entity_id</item>
|
||||
</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
|
||||
<arguments>
|
||||
<argument name="collections" xsi:type="array">
|
||||
<item name="pr_cookie_category_listing_data_source" xsi:type="string">Plumrocket\CookieConsent\Model\ResourceModel\Category\Collection</item>
|
||||
<item name="pr_cookie_item_listing_data_source" xsi:type="string">Plumrocket\CookieConsent\Model\ResourceModel\Cookie\Grid\Collection</item>
|
||||
<item name="pr_cookie_consent_log_listing_data_source" xsi:type="string">Plumrocket\CookieConsent\Model\ResourceModel\ConsentLog\Grid\Collection</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Plumrocket\CookieConsent\Model\Cookie\IsAllowed">
|
||||
<arguments>
|
||||
<argument name="systemCookies" xsi:type="array">
|
||||
<item name="php-session-id" xsi:type="string">PHPSESSID</item>
|
||||
<item name="pr-cookie-consents" xsi:type="const">Plumrocket\CookieConsent\Api\GetUserConsentInterface::COOKIE_CONSENT_NAME</item>
|
||||
<item name="magento-cookie-consents" xsi:type="const">Magento\Cookie\Helper\Cookie::IS_USER_ALLOWED_SAVE_COOKIE</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
<virtualType name="Plumrocket\CookieConsent\Model\Cookie\Config\SchemaLocator" type="Magento\Framework\Config\SchemaLocator">
|
||||
<arguments>
|
||||
<argument name="realPath" xsi:type="string">urn:magento:module:Plumrocket_CookieConsent:etc/pr-cookies.xsd</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<virtualType name="PrCookiesConfigReader" type="Magento\Framework\Config\Reader\Filesystem">
|
||||
<arguments>
|
||||
<argument name="idAttributes" xsi:type="array">
|
||||
<item name="/cookies/cookie" xsi:type="string">name</item>
|
||||
</argument>
|
||||
<argument name="fileName" xsi:type="string">pr-cookies.xml</argument>
|
||||
<argument name="converter" xsi:type="object">Plumrocket\CookieConsent\Model\Cookie\Config\Converter</argument>
|
||||
<argument name="schemaLocator" xsi:type="object">Plumrocket\CookieConsent\Model\Cookie\Config\SchemaLocator</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
<virtualType name="PrCookiesConfigData" type="Magento\Framework\Config\Data">
|
||||
<arguments>
|
||||
<argument name="reader" xsi:type="object">PrCookiesConfigReader</argument>
|
||||
<argument name="cacheId" xsi:type="string">pr_cookie_consent_cookies</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
|
||||
<type name="Plumrocket\CookieConsent\Model\Cookie\KnownCookieRegistry">
|
||||
<arguments>
|
||||
<argument name="cookieConfig" xsi:type="object">PrCookiesConfigData</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Cookie\Helper\Cookie">
|
||||
<plugin name="pr-cookie-restriction-mode"
|
||||
type="Plumrocket\CookieConsent\Plugin\Cookie\RestrictionMode" sortOrder="10"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\Stdlib\CookieManagerInterface">
|
||||
<plugin name="pr-cookie-filter"
|
||||
type="Plumrocket\CookieConsent\Plugin\CookieManagerPlugin" sortOrder="10"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\View\Result\Page">
|
||||
<plugin name="pr-youtube-no-cookie-plugin"
|
||||
type="Plumrocket\CookieConsent\Plugin\YouTubeNoCookiePlugin" sortOrder="-10"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\App\Response\Http">
|
||||
<plugin name="pr-cookie-update-head-scripts-tags"
|
||||
type="\Plumrocket\CookieConsent\Plugin\Html\HeadScripts"/>
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
<event name="layout_load_before">
|
||||
<observer name="pr_cookie_remove_magento_notice" instance="Plumrocket\CookieConsent\Observer\RemoveMagentoNotice"/>
|
||||
</event>
|
||||
<event name="pr_cookie_consent_update">
|
||||
<observer name="pr_cookie_log_consent" instance="Plumrocket\CookieConsent\Observer\LogConsent"/>
|
||||
<observer name="pr_cookie_clear_rejected_cookie" instance="Plumrocket\CookieConsent\Observer\ClearRejectedCookie"/>
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="standard">
|
||||
<route id="pr_cookie" frontName="pr-cookie-consent">
|
||||
<module name="Plumrocket_CookieConsent" />
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Plumrocket_CookieConsent">
|
||||
<sequence>
|
||||
<module name="Plumrocket_Base"/>
|
||||
<module name="Magento_Customer"/>
|
||||
<module name="Magento_Eav"/>
|
||||
<module name="Magento_Catalog"/>
|
||||
</sequence>
|
||||
</module>
|
||||
</config>
|
||||
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<cookies xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Plumrocket_CookieConsent:etc/pr-cookies.xsd">
|
||||
<cookie name="pr-cookie-notice-status" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>Stores close status of cookie notice.</description>
|
||||
</cookie>
|
||||
<cookie name="pr-can-manage-cookie" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_YEAR</duration>
|
||||
<description>Stores IP geolocation-based permission indicating whether consent restrictions can be managed for the visitor.</description>
|
||||
</cookie>
|
||||
<cookie name="user_allowed_save_cookie" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_YEAR</duration>
|
||||
<description>Stores built-in cookie consent per website.</description>
|
||||
</cookie>
|
||||
<cookie name="guest-view" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>Stores the Order ID that guest shoppers use to retrieve their order status. Guest orders view. Used in “Orders and Returns” widgets.</description>
|
||||
</cookie>
|
||||
<cookie name="login_redirect" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>Preserves the destination page the customer was loading before being directed to log in.</description>
|
||||
</cookie>
|
||||
<cookie name="mage-messages" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_YEAR</duration>
|
||||
<description>Tracks error messages and other notifications that are shown to the user, such as the cookie consent message, and various error messages. The message is deleted from the cookie after it is shown to the shopper.</description>
|
||||
</cookie>
|
||||
<cookie name="section_data_ids" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>Stores customer-specific information related to shopper-initiated actions such as display wish list, checkout information, etc.</description>
|
||||
</cookie>
|
||||
<cookie name="store" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_YEAR</duration>
|
||||
<description>Tracks the specific store view / locale selected by the shopper.</description>
|
||||
</cookie>
|
||||
<cookie name="amz_auth_err" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_YEAR</duration>
|
||||
<description>Used if Enable Login with Amazon is enabled. Value 1 indicates an authorization error.</description>
|
||||
</cookie>
|
||||
<cookie name="amz_auth_logout" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_DAY</duration>
|
||||
<description>Used if Enable Login with Amazon is enabled. Value 1 indicates that the user should be logged out.</description>
|
||||
</cookie>
|
||||
<cookie name="mage-cache-sessid" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>The value of this cookie triggers the cleanup of local cache storage. When the cookie is removed by the backend application, the Admin cleans up local storage, and sets the cookie value to true.</description>
|
||||
</cookie>
|
||||
<cookie name="mage-cache-storage" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>Local storage of visitor-specific content that enables ecommerce functions.</description>
|
||||
</cookie>
|
||||
<cookie name="stf" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>Records the time messages are sent by the SendFriend (Email a Friend) module.</description>
|
||||
</cookie>
|
||||
<cookie name="recently_viewed_product" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::FOR_LOCAL_STORAGE_COOKIE</duration>
|
||||
<description>Stores product IDs of recently viewed products for easy navigation.</description>
|
||||
</cookie>
|
||||
<cookie name="recently_viewed_product_previous" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::FOR_LOCAL_STORAGE_COOKIE</duration>
|
||||
<description>Stores product IDs of recently previously viewed products for easy navigation.</description>
|
||||
</cookie>
|
||||
<cookie name="mage-translation-storage" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::FOR_LOCAL_STORAGE_COOKIE</duration>
|
||||
<description>Stores translated content when requested by the shopper. Used when Translation Strategy is configured as "Dictionary (Translation on Storefront side)".</description>
|
||||
</cookie>
|
||||
<cookie name="mage-translation-file-version" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::FOR_LOCAL_STORAGE_COOKIE</duration>
|
||||
<description>Tracks the version of translations in local storage. Used when Translation Strategy is configured as Dictionary (Translation on Storefront side).</description>
|
||||
</cookie>
|
||||
<cookie name="product_data_storage" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::FOR_LOCAL_STORAGE_COOKIE</duration>
|
||||
<description>Stores configuration for product data related to Recently Viewed / Compared Products.</description>
|
||||
</cookie>
|
||||
<cookie name="recently_compared_product" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::FOR_LOCAL_STORAGE_COOKIE</duration>
|
||||
<description>Stores product IDs of recently compared products.</description>
|
||||
</cookie>
|
||||
<cookie name="recently_compared_product_previous" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::FOR_LOCAL_STORAGE_COOKIE</duration>
|
||||
<description>Stores product IDs of previously compared products for easy navigation.</description>
|
||||
</cookie>
|
||||
<cookie name="mage-cache-storage-section-invalidation" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::FOR_LOCAL_STORAGE_COOKIE</duration>
|
||||
<description>Forces local storage of specific content sections that should be invalidated.</description>
|
||||
</cookie>
|
||||
<cookie name="_ga" category="statistics">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::TWO_YEARS</duration>
|
||||
<description>Used to distinguish users.</description>
|
||||
</cookie>
|
||||
<cookie name="_ga_*" category="statistics">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::TWO_YEARS</duration>
|
||||
<description>Used to persist session state.</description>
|
||||
</cookie>
|
||||
<cookie name="_gid" category="statistics">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::ONE_DAY</duration>
|
||||
<description>Used to distinguish users.</description>
|
||||
</cookie>
|
||||
<cookie name="_gat" category="statistics">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::FOR_LOCAL_STORAGE_COOKIE</duration>
|
||||
<description>Used to throttle request rate.</description>
|
||||
</cookie>
|
||||
<cookie name="_dc_gtm_*" category="statistics">
|
||||
<duration xsi:type="number">60</duration>
|
||||
<description>Used to throttle request rate.</description>
|
||||
</cookie>
|
||||
<cookie name="mg_dnt" category="necessary">
|
||||
<duration xsi:type="const">Plumrocket\CookieConsent\Model\Cookie\Duration::SESSION</duration>
|
||||
<description>Used to restrict Adobe Commerce data collection functionality if the user has opted out of tracking.</description>
|
||||
</cookie>
|
||||
</cookies>
|
||||
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:element name="cookies">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="cookie" type="cookieDeclaration" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:unique name="uniqueCookieName">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Cookie name must be unique.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:selector xpath="cookie" />
|
||||
<xs:field xpath="@name" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="cookieDeclaration">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Cookie declaration.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="duration" type="durationType" />
|
||||
<xs:element name="description" type="xs:string" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="cookieNameDeclaration" use="required" />
|
||||
<xs:attribute name="category" type="categoryKeyDeclaration" use="required" />
|
||||
<xs:attribute name="type" type="cookieTypeDeclaration" default="first" />
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="cookieNameDeclaration">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Cookie Name contain only [a-zA-Z0-9_\-*].
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[a-zA-Z0-9_\-*]+" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="categoryKeyDeclaration">
|
||||
<xs:annotation>
|
||||
<xs:documentation>
|
||||
Cookie category key contain only [a-zA-Z0-9_\-].
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[a-zA-Z0-9_\-]+" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="cookieTypeDeclaration">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="first"/>
|
||||
<xs:enumeration value="third"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="durationType" abstract="true" mixed="true"/>
|
||||
|
||||
<xs:complexType name="const">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="durationType" />
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="number">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="durationType"/>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2022 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<locations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Plumrocket_DataPrivacy:etc/pr_data_privacy_consent_location.xsd">
|
||||
<location key="cookie"
|
||||
name="Cookie Notice"
|
||||
type="1"
|
||||
description="Plumrocket Cookie Consent - Cookie Notice"
|
||||
visible="false"/>
|
||||
</locations>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2021 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Plumrocket_Base:etc/pr_extensions.xsd">
|
||||
<extension name="CookieConsent"
|
||||
title="Cookie Consent"
|
||||
config_section="pr_cookie"
|
||||
is_enabled_path="pr_cookie/general/enabled"
|
||||
documentation="https://plumrocket.com/docs/magento-cookie-consent/v1"
|
||||
url="https://plumrocket.com/magento-cookie-consent"
|
||||
marketplace_url="https://marketplace.magento.com/plumrocket-cookie-consent-metapackage.html"
|
||||
>
|
||||
<customer key="18771d78aa85ca47851fca7fdf3dd545bad4a02358"/>
|
||||
</extension>
|
||||
</extensions>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
/**
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
*/
|
||||
-->
|
||||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
|
||||
<route method="GET" url="/V1/pr_cookie/can-manage-cookie">
|
||||
<service class="Plumrocket\CookieConsent\Api\CanManageCookieInterface" method="execute"/>
|
||||
<resources>
|
||||
<resource ref="anonymous"/>
|
||||
</resources>
|
||||
</route>
|
||||
</routes>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
* @package Plumrocket_CookieConsent
|
||||
* @copyright Copyright (c) 2021 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
-->
|
||||
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
|
||||
<widget class="Plumrocket\CookieConsent\Block\Widget\CookieSettingsButton" id="pr-settings-button">
|
||||
<label>Cookie Settings Button</label>
|
||||
<description>Allow visitors to manage their cookie consents. Use this widget to display the "Cookie Settings" link anywhere across your store (e.g., website footer, Privacy Policy, Cookie Policy, etc.).</description>
|
||||
<parameters>
|
||||
<parameter name="title" xsi:type="text" visible="true" sort_order="10">
|
||||
<label>Title</label>
|
||||
<value>Cookie Settings</value>
|
||||
</parameter>
|
||||
<parameter name="template" xsi:type="select" visible="true" required="true" sort_order="20">
|
||||
<label translate="true">Template</label>
|
||||
<options>
|
||||
<option name="default" value="widget/cookie_settings_button.phtml" selected="true">
|
||||
<label translate="true">Button Template</label>
|
||||
</option>
|
||||
<option name="link" value="widget/cookie_settings_link.phtml">
|
||||
<label translate="true">Link Template</label>
|
||||
</option>
|
||||
</options>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</widget>
|
||||
</widgets>
|
||||
Reference in New Issue
Block a user