<?xml version="1.0"?>
<!--
/**
 * Copyright © MageWorx. All rights reserved.
 * See LICENSE.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <tab id="mageworx" translate="label" sortOrder="2010">
            <label>MageWorx</label>
        </tab>
        <section id="mageworx_customerprices" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
            <class>separator-top</class>
            <label>Prices per Customer</label>
            <tab>mageworx</tab>
            <resource>MageWorx_CustomerPrices::config_mageworx_customerprices</resource>
            <group id="main" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Prices per Customer Defaults:</label>
                <field id="enabled_customer_price_in_catalog_price_rule" translate="label" type="select" sortOrder="20"
                       showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Use Customer Price In Catalog Price Rule</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="sync" translate="label comment" type="button" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
                    <frontend_model>MageWorx\CustomerPrices\Block\Adminhtml\System\Config\Buttons\Sync</frontend_model>
                    <label><![CDATA[Sync Customer Prices Data]]></label>
                    <comment><![CDATA[Please, use this button to manually synchronize data in case you've changed prices but don't observe this on the frontend.
                    It can take a lot of time in case you have a lot of customer prices so you can use the following command 'php bin/magento mageworx-customer-prices:synchronize' to run this process in CLI.'.]]></comment>
                </field>
            </group>
        </section>
    </system>
</config>
