<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Shipping Restrictions for Magento 2
 */-->
<!--
/**
 * Copyright © 2015 Amasty. All rights reserved.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <section id="amshiprestriction" translate="label" type="text" sortOrder="190818" showInDefault="1" showInWebsite="1" showInStore="1">
            <resource>Amasty_Shiprestriction::config</resource>
            <class>separator-top</class>
            <label>Shipping Restrictions</label>
            <tab>amasty</tab>
            <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>General</label>
                <field id="tax" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Include tax in subtotal</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="discount" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Use subtotal after discount</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="msi_algorithm" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0">
                    <label>Select the MSI Selection Algorithm</label>
                    <source_model>Amasty\Shiprestriction\Model\Source\MsiAlgorithm</source_model>
                    <comment>This setting works only for shipping restrictions based on the Source condition.</comment>
                    <frontend_model>Amasty\Shiprestriction\Block\Adminhtml\System\Config\MsiAlgorithm</frontend_model>
                </field>
            </group>

        </section>
    </system>
</config>
