Files
2026-09-15 10:35:56 +08:00

61 lines
3.5 KiB
XML

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="esun" translate="label" sortOrder="300">
<label>Esun</label>
</tab>
<section id="esun_cart" translate="label" type="text" sortOrder="930"
showInDefault="1" showInWebsite="1" showInStore="0">
<label>Cart</label>
<tab>esun</tab>
<resource>Esun_Cart::config</resource>
<group id="test_mode" translate="label" type="text" sortOrder="10"
showInDefault="1" showInWebsite="1" showInStore="0">
<label>Purchase Test Mode</label>
<field id="enabled" translate="label comment" type="select" sortOrder="10"
showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enable Test Mode</label>
<comment>When enabled, only the selected customer groups can add products to the cart.</comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="allowed_customer_groups" translate="label comment" type="multiselect" sortOrder="20"
showInDefault="1" showInWebsite="1" showInStore="0">
<label>Allowed Customer Groups</label>
<comment>Customers in these groups can use the complete purchase test flow. Leave empty to block all customers.</comment>
<source_model>Magento\Customer\Model\Config\Source\Group\Multiselect</source_model>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="popup_title" translate="label comment" type="text" sortOrder="30"
showInDefault="1" showInWebsite="1" showInStore="0">
<label>Popup Title</label>
<comment>Leave empty to use: Test Mode</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="popup_message" translate="label comment" type="textarea" sortOrder="40"
showInDefault="1" showInWebsite="1" showInStore="0">
<label>Popup Message</label>
<comment>Leave empty to use the default beta testing notice.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
</group>
<group id="recommendations" translate="label" type="text" sortOrder="20"
showInDefault="1" showInWebsite="1" showInStore="0">
<label>Cart Recommendations</label>
<field id="product_skus" translate="label comment" type="textarea" sortOrder="10"
showInDefault="1" showInWebsite="1" showInStore="0">
<label>Recommended Product SKUs</label>
<backend_model>Esun\Cart\Model\Config\Backend\RecommendedProductSkus</backend_model>
<comment>Enter one SKU per line. The order is the display order. Website scope inherits the default list unless Use Default is disabled.</comment>
</field>
</group>
</section>
</system>
</config>