This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<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="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="Esun_MegaMenu::config" title="Esun Mega Menu Configuration" sortOrder="90"/>
</resource>
</resource>
</resource>
</resource>
</resources>
</acl>
</config>
+43
View File
@@ -0,0 +1,43 @@
<?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_megamenu" translate="label" type="text" sortOrder="920" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Mega Menu</label>
<tab>esun</tab>
<resource>Esun_MegaMenu::config</resource>
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General Settings</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enable Mega Menu</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="title" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Fallback Menu Title</label>
<comment>Used only when the configured category is not already present in the Magento top menu.</comment>
</field>
<field id="root_category_ids" translate="label comment" type="textarea" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Mega Menu Root Category IDs</label>
<comment>Enter the top-level category IDs that should use the mega menu, separated by comma, space, semicolon, or new line. Example: 12, 38, 52.</comment>
</field>
<field id="root_category_id" translate="label comment" type="text" sortOrder="35" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Legacy Single Root Category ID</label>
<comment>Backward compatible single category ID. The new multi-ID field above is preferred.</comment>
<validate>validate-number validate-greater-than-zero</validate>
</field>
<field id="products_per_series" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Products Per Series</label>
<comment>Number of products displayed under each series category.</comment>
<validate>validate-number validate-greater-than-zero</validate>
</field>
<field id="series_limit" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Series Category Limit</label>
<comment>Maximum number of series categories displayed for the active Filament Category.</comment>
<validate>validate-number validate-greater-than-zero</validate>
</field>
</group>
</section>
</system>
</config>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<esun_megamenu>
<general>
<enabled>1</enabled>
<title>CLASSIFICATION</title>
<root_category_ids>38</root_category_ids>
<root_category_id>38</root_category_id>
<products_per_series>6</products_per_series>
<series_limit>8</series_limit>
</general>
</esun_megamenu>
</default>
</config>
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Theme\Block\Html\Topmenu">
<plugin name="esun_megamenu_topmenu_template" type="Esun\MegaMenu\Plugin\TopmenuTemplatePlugin"/>
</type>
</config>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Esun_MegaMenu" setup_version="1.0.0">
<sequence>
<module name="Magento_Theme"/>
<module name="Magento_Catalog"/>
<module name="Magento_Cms"/>
<module name="Magento_Config"/>
<module name="Esun_Catalog"/>
</sequence>
</module>
</config>