193 lines
13 KiB
XML
Executable File
193 lines
13 KiB
XML
Executable File
<?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_GeoIPLookup
|
|
* @copyright Copyright (c) 2018 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_Config:etc/system_file.xsd">
|
|
<system>
|
|
<section id="prgeoiplookup" translate="label" type="text" sortOrder="3786959" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>IP Geolocation Lookup</label>
|
|
<tab>plumrocket</tab>
|
|
<resource>Plumrocket_GeoIPLookup::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">GeoIPLookup</attribute>
|
|
</field>
|
|
</group>
|
|
<!-- Begin of GENERAL 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">
|
|
<label>Serial Key</label>
|
|
<frontend_model>Plumrocket\Base\Block\Adminhtml\System\Config\Form\Serial</frontend_model>
|
|
<attribute type="pr_extension_name">GeoIPLookup</attribute>
|
|
</field>
|
|
</group>
|
|
<!-- End GENERAL -->
|
|
|
|
<!-- Begin of METHODS group -->
|
|
<group id="methods" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>Services</label>
|
|
<attribute type="expanded">1</attribute>
|
|
<field id="notice" translate="label comment" type="text" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Notice</frontend_model>
|
|
</field>
|
|
<!-- Begin of MAXMAINDGEOIP group -->
|
|
<group id="maxmindgeoip" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>Maxmind IP Geolocation Database</label>
|
|
<field id="enabled" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>Enable</label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Enable</frontend_model>
|
|
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
|
</field>
|
|
<field id="status" translate="label" type="note" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>Database Status</label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Status</frontend_model>
|
|
</field>
|
|
<field id="install_method" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>Installation Method</label>
|
|
<source_model>Plumrocket\GeoIPLookup\Model\System\Config\Source\Installmethods</source_model>
|
|
<frontend_class>install-method</frontend_class>
|
|
<comment><![CDATA[<span class="method_comment"></span>]]></comment>
|
|
</field>
|
|
<field id="install" translate="button_label" type="button" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<button_label>Install Database</button_label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Buttons\Install</frontend_model>
|
|
<depends>
|
|
<field id="install_method">automatic</field>
|
|
</depends>
|
|
</field>
|
|
</group>
|
|
<!-- End MAXMAINDGEOIP -->
|
|
|
|
<!-- Begin of IPTOCOUNTRY group -->
|
|
<group id="iptocountry" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>IpToCountry IP Geolocation Database</label>
|
|
<field id="enabled" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>Enable</label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Enable</frontend_model>
|
|
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
|
</field>
|
|
<field id="status" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>Database Status</label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Status</frontend_model>
|
|
</field>
|
|
<field id="install_method" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>Installation Method</label>
|
|
<source_model>Plumrocket\GeoIPLookup\Model\System\Config\Source\Installmethods</source_model>
|
|
<frontend_class>install-method</frontend_class>
|
|
<comment><![CDATA[<span class="method_comment"></span>]]></comment>
|
|
</field>
|
|
<field id="install" translate="button_label" type="button" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<button_label>Install Database</button_label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Buttons\Install</frontend_model>
|
|
<depends>
|
|
<field id="install_method">automatic</field>
|
|
</depends>
|
|
</field>
|
|
</group>
|
|
<!-- End IPTOCOUNTRY -->
|
|
|
|
<!-- Begin of Ipapi group -->
|
|
<group id="ipapigeoip" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>Ipapi.Com - IP Geolocation API</label>
|
|
<field id="enabled" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>Enable</label>
|
|
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
|
<comment><![CDATA[
|
|
The API is provided by: <a target="_blank" href="https://ipapi.com">https://ipapi.com</a>.<br>
|
|
Limits: 10,000 Lookups in Free Plan. You can get more IP lookups with paid plans.
|
|
]]></comment>
|
|
</field>
|
|
<field id="use_https" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>Use HTTPS Encryption</label>
|
|
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
|
<comment><![CDATA[HTTPS encryption is not available for the free plan, it can only be used with pro plans.]]></comment>
|
|
</field>
|
|
<field id="access_key" translate="label" type="password" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>Access Key</label>
|
|
</field>
|
|
<field id="connection_test" translate="button_label" type="button" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<button_label>Test Connection</button_label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Buttons\Connection</frontend_model>
|
|
</field>
|
|
</group>
|
|
<!-- End Ipapi -->
|
|
</group>
|
|
<!-- End METHODS -->
|
|
|
|
<!-- Begin of GEOIPTEST group -->
|
|
<group id="geoiptest" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>IP Geolocation Lookup Test</label>
|
|
<field id="ip_address" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>IP Address</label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Test\Ipaddress</frontend_model>
|
|
<comment><![CDATA[
|
|
Enter IP address to test IP geolocation lookup. Your own IP address is automatically populated in this field.
|
|
]]></comment>
|
|
</field>
|
|
<field id="test_geoip_lookup" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>Test IP Geolocation Lookup</label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Test\Button</frontend_model>
|
|
</field>
|
|
<field id="geoinfo" translate="label" type="textarea" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>IP Geolocation Information</label>
|
|
</field>
|
|
<field id="location_on_map" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>View Location on Map</label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Test\Map</frontend_model>
|
|
</field>
|
|
<field id="rest_ip" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
|
|
<label>REST API</label>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Data\Test\Api</frontend_model>
|
|
<comment><![CDATA[
|
|
Read more about REST API and other methods of retrieving Geolocation Lookup data in our <a target="_blank" href="https://plumrocket.com/docs/magento-geoip-lookup/v1">developer's guide</a>
|
|
]]></comment>
|
|
</field>
|
|
</group>
|
|
<!-- End GEOIPTEST -->
|
|
|
|
</section>
|
|
|
|
<section id="pr_cookie">
|
|
<group id="main_settings">
|
|
<field id="geo_targeting" translate="label comment" type="multiselect" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>Geo Targeting</label>
|
|
<source_model>Plumrocket\GeoIPLookup\Model\System\Config\Source\GeoTargeting</source_model>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Form\GeoTargetingMultiSelect</frontend_model>
|
|
<frontend_class>geoip-select-with-chosen prgdpr-coutry</frontend_class>
|
|
<comment>Show cookie consent notice only to visitors from the selected list of countries / states.</comment>
|
|
</field>
|
|
<field id="states_geo_targeting" translate="label comment" type="multiselect" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
<label>U.S. States</label>
|
|
<source_model>Plumrocket\GeoIPLookup\Model\System\Config\Source\GeoTargetingStates</source_model>
|
|
<frontend_model>Plumrocket\GeoIPLookup\Block\Adminhtml\System\Config\Form\StatesGeoTargetingMultiSelect</frontend_model>
|
|
<frontend_class>geoip-select-with-chosen prgdpr-ccpa</frontend_class>
|
|
<comment>You can select one or multiple U.S. states. For example, select "California" for CCPA law.</comment>
|
|
</field>
|
|
</group>
|
|
</section>
|
|
</system>
|
|
</config>
|