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

165 lines
12 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_homepage" translate="label" type="text" sortOrder="910" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Homepage</label>
<tab>esun</tab>
<resource>Esun_Homepage::config</resource>
<group id="catalog_rule_deal" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Catalog Price Rule Deal</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enable Module</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="rule_id" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Catalog Price Rule</label>
<comment>The rule must be active, assigned to the current website and indexed. It's To Date is used by the countdown. </comment>
<source_model>Esun\Homepage\Model\Config\Source\CatalogRule</source_model>
</field>
<field id="title" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Heading</label>
<comment>Falls back to the Catalog Price Rule name when left empty.</comment>
</field>
<field id="accent_title" translate="label comment" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Green Heading Text</label>
<comment>Optional highlighted text displayed after the heading.</comment>
</field>
<field id="products_limit" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Number of Products</label>
<comment>Maximum: 12.</comment>
<validate>validate-number validate-greater-than-zero</validate>
</field>
</group>
<group id="hot_sale_filament" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Hot Sale Filament</label>
<field id="subtitle" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Subtitle</label>
<comment>Displayed below the Hot Sale Filaments heading.</comment>
</field>
<field id="explore_all_url" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Explore All URL</label>
<comment>URL used by the Explore All link. Leave empty to disable the link.</comment>
</field>
<field id="skus" translate="label comment" type="textarea" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product SKUs</label>
<comment>Enter multiple SKUs separated by commas or new lines. Products are displayed in the entered order.</comment>
</field>
</group>
<group id="accessories" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Accessories</label>
<field id="background_image" translate="label comment" type="image" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Image</label>
<backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
<upload_dir config="system/filesystem/media" scope_info="1">esun/homepage/accessories</upload_dir>
<base_url type="media" scope_info="1">esun/homepage/accessories</base_url>
<comment>Allowed file types: jpg, jpeg, gif and png.</comment>
</field>
<field id="explore_all_url" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Explore All URL</label>
<comment>URL used by the Explore All link. Leave empty to disable the link.</comment>
</field>
<field id="skus" translate="label comment" type="textarea" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product SKUs</label>
<comment>Enter multiple SKUs separated by commas or new lines. Products are displayed in the entered order.</comment>
</field>
</group>
<group id="resin" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>3D Resin</label>
<field id="background_image" translate="label comment" type="image" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Background Image</label>
<backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
<upload_dir config="system/filesystem/media" scope_info="1">esun/homepage/resin</upload_dir>
<base_url type="media" scope_info="1">esun/homepage/resin</base_url>
<comment>Allowed file types: jpg, jpeg, gif and png.</comment>
</field>
<field id="explore_all_url" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Explore All URL</label>
<comment>URL used by the Explore All link. Leave empty to disable the link.</comment>
</field>
<field id="skus" translate="label comment" type="textarea" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product SKUs</label>
<comment>Enter multiple SKUs separated by commas or new lines. Products are displayed in the entered order.</comment>
</field>
</group>
<group id="create_anything" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Create Anything You Imagine</label>
<field id="items" translate="label comment" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Items</label>
<frontend_model>Esun\Homepage\Block\Adminhtml\System\Config\Form\Field\CreateAnythingItems</frontend_model>
<backend_model>Esun\Homepage\Model\Config\Backend\CreateAnythingItems</backend_model>
<comment>Video ID refers to an enabled video in the Esun video library. Empty or invalid rows are not displayed.</comment>
</field>
</group>
<group id="application" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Application</label>
<field id="category_id" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Category</label>
<source_model>Esun\Homepage\Model\Config\Source\ImageCategory</source_model>
<comment>Select the Image Manager category used by the Application block.</comment>
</field>
<field id="subtitle" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Subtitle</label>
<comment>Displayed below the Application heading.</comment>
</field>
<field id="explore_all_url" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Explore All URL</label>
<comment>URL used by the Explore All link. Leave empty to disable the link.</comment>
</field>
</group>
<group id="innovative_materials" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Innovative Materials</label>
<field id="category_id" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Category</label>
<source_model>Esun\Homepage\Model\Config\Source\ImageCategory</source_model>
<comment>Select the Image Manager category used by the Innovative Materials block.</comment>
</field>
</group>
<group id="landscape_video" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Landscape Video</label>
<field id="video_id" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Video ID</label>
<comment>Enter the ID of an enabled video from Video Management.</comment>
<validate>validate-number validate-greater-than-zero</validate>
</field>
<field id="product_sku" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product SKU</label>
<comment>Enter one enabled and visible product SKU.</comment>
</field>
</group>
<group id="awards_reviews" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Awards &amp; Reviews</label>
<field id="category_id" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Category</label>
<source_model>Esun\Homepage\Model\Config\Source\ImageCategory</source_model>
<comment>Select the Image Manager category used by the Awards &amp; Reviews block.</comment>
</field>
</group>
<group id="resources_downloads" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Resources &amp; Downloads</label>
<field id="category_id" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Image Category</label>
<source_model>Esun\Homepage\Model\Config\Source\ImageCategory</source_model>
<comment>Select the Image Manager category used by the Resources &amp; Downloads block.</comment>
</field>
</group>
<group id="news_room" translate="label" type="text" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1">
<label>News Room</label>
<field id="ids" translate="label comment" type="textarea" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>News IDs</label>
<comment>Enter Mageplaza Blog post IDs separated by commas, spaces or new lines. Posts are displayed by Publish Date descending.</comment>
</field>
</group>
<group id="new_product" translate="label" type="text" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="1">
<label>New Product</label>
<field id="skus" translate="label comment" type="textarea" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product SKUs</label>
<comment>Enter multiple SKUs separated by commas or new lines. Products are displayed in the entered order.</comment>
</field>
</group>
</section>
</system>
</config>