This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
<?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_Catalog::catalog">
<resource id="Esun_Catalog::mix_step_pricing" title="Mix Step Pricing" sortOrder="80">
<resource id="Esun_Catalog::mix_step_pricing_import" title="Batch Import Mix Step Pricing" sortOrder="10"/>
<resource id="Esun_Catalog::mix_step_pricing_delete" title="Batch Delete Mix Step Pricing" sortOrder="20"/>
</resource>
<resource id="Esun_Catalog::product_recommendations" title="Product Recommendations" sortOrder="90">
<resource id="Esun_Catalog::product_recommendation_import"
title="Import Product Recommendations" sortOrder="10"/>
<resource id="Esun_Catalog::product_recommendation_save"
title="Save Product Recommendations" sortOrder="20"/>
</resource>
<resource id="Esun_Catalog::faqs" title="Product FAQ" sortOrder="30">
<resource id="Esun_Catalog::faqs_save" title="Save Product FAQ" sortOrder="10"/>
<resource id="Esun_Catalog::faqs_delete" title="Delete Product FAQ" sortOrder="20"/>
</resource>
<resource id="Esun_Catalog::certification_types" title="Product Certification Type" sortOrder="40">
<resource id="Esun_Catalog::certification_types_save" title="Save Product Certification Type" sortOrder="10"/>
<resource id="Esun_Catalog::certification_types_delete" title="Delete Product Certification Type" sortOrder="20"/>
</resource>
<resource id="Esun_Catalog::color_options" title="Color Option Management" sortOrder="45">
<resource id="Esun_Catalog::color_options_save" title="Save Color Option" sortOrder="10"/>
<resource id="Esun_Catalog::color_options_delete" title="Delete Color Option" sortOrder="20"/>
</resource>
<resource id="Esun_Catalog::download_specifications" title="Download Specifications Management" sortOrder="50">
<resource id="Esun_Catalog::specification_brands" title="Specification Brands" sortOrder="10">
<resource id="Esun_Catalog::specification_brands_save" title="Save Specification Brands" sortOrder="10"/>
<resource id="Esun_Catalog::specification_brands_delete" title="Delete Specification Brands" sortOrder="20"/>
</resource>
<resource id="Esun_Catalog::specification_imports" title="Specifications Management" sortOrder="20">
<resource id="Esun_Catalog::specification_imports_save" title="Save Specifications" sortOrder="10"/>
<resource id="Esun_Catalog::specification_imports_delete" title="Delete Specifications" sortOrder="20"/>
</resource>
</resource>
</resource>
<resource id="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="Esun_Catalog::config" title="Esun Catalog Configuration" sortOrder="90"/>
</resource>
</resource>
</resource>
</resource>
</resources>
</acl>
</config>
@@ -0,0 +1,36 @@
<?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="Esun\Catalog\Controller\Adminhtml\Product\Image\Upload">
<arguments>
<argument name="imageUploader" xsi:type="object">Esun\Catalog\ProductDetailImageUpload</argument>
</arguments>
</type>
<type name="Esun\Catalog\Controller\Adminhtml\Product\Certification\Upload">
<arguments>
<argument name="fileUploader" xsi:type="object">Esun\Catalog\Model\CertificationFileUploader</argument>
</arguments>
</type>
<type name="Magento\Catalog\Controller\Adminhtml\Product\Save">
<plugin name="esun_catalog_product_save_detail_content"
type="Esun\Catalog\Plugin\Adminhtml\ProductSaveDetailContentPlugin"/>
</type>
<type name="Magento\Catalog\Controller\Adminhtml\Product\Attribute\Save">
<plugin name="esun_catalog_color_attribute_save"
type="Esun\Catalog\Plugin\Adminhtml\ColorAttributeSavePlugin"/>
</type>
<virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Pool">
<arguments>
<argument name="modifiers" xsi:type="array">
<item name="esun-detail-content" xsi:type="array">
<item name="class" xsi:type="string">Esun\Catalog\Ui\DataProvider\Product\Form\Modifier\DetailContent</item>
<item name="sortOrder" xsi:type="number">165</item>
</item>
<item name="esun-product-recommendations" xsi:type="array">
<item name="class" xsi:type="string">Esun\Catalog\Ui\DataProvider\Product\Form\Modifier\Recommendations</item>
<item name="sortOrder" xsi:type="number">166</item>
</item>
</argument>
</arguments>
</virtualType>
</config>
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="controller_action_catalog_product_save_entity_after">
<observer name="esun_save_parent_mix_step_prices"
instance="Esun\Catalog\Observer\Adminhtml\SaveMixStepPrices"/>
<observer name="esun_save_product_recommendations"
instance="Esun\Catalog\Observer\Adminhtml\SaveProductRecommendations"/>
</event>
</config>
@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Esun_Catalog::mix_step_pricing" title="Mix Step Pricing" module="Esun_Catalog"
sortOrder="80" parent="Magento_Catalog::catalog"
resource="Esun_Catalog::mix_step_pricing"/>
<add id="Esun_Catalog::mix_step_pricing_import" title="Batch Import" module="Esun_Catalog"
sortOrder="10" parent="Esun_Catalog::mix_step_pricing"
action="esun_catalog/mixsteppricing/import" resource="Esun_Catalog::mix_step_pricing_import"/>
<add id="Esun_Catalog::mix_step_pricing_delete" title="Batch Delete" module="Esun_Catalog"
sortOrder="20" parent="Esun_Catalog::mix_step_pricing"
action="esun_catalog/mixsteppricing/delete" resource="Esun_Catalog::mix_step_pricing_delete"/>
<add id="Esun_Catalog::product_recommendations" title="Product Recommendations" module="Esun_Catalog"
sortOrder="90" parent="Magento_Catalog::catalog"
resource="Esun_Catalog::product_recommendations"/>
<add id="Esun_Catalog::product_recommendation_import" title="Excel Import" module="Esun_Catalog"
sortOrder="10" parent="Esun_Catalog::product_recommendations"
action="esun_catalog/productrecommendation/import"
resource="Esun_Catalog::product_recommendation_import"/>
<add id="Esun_Catalog::faqs" title="Product FAQ" module="Esun_Catalog"
sortOrder="30" parent="Esun_ImageManager::esun"
action="esun_catalog/faq/index" resource="Esun_Catalog::faqs"/>
<add id="Esun_Catalog::certification_types" title="Product Certification Type Management" module="Esun_Catalog"
sortOrder="40" parent="Esun_ImageManager::esun"
action="esun_catalog/certificationtype/index" resource="Esun_Catalog::certification_types"/>
<add id="Esun_Catalog::download_specifications" title="Download Specifications Management" module="Esun_Catalog"
sortOrder="50" parent="Esun_ImageManager::esun"
resource="Esun_Catalog::download_specifications"/>
<add id="Esun_Catalog::specification_brands" title="Brand Management" module="Esun_Catalog"
sortOrder="10" parent="Esun_Catalog::download_specifications"
action="esun_catalog/specificationbrand/index" resource="Esun_Catalog::specification_brands"/>
<add id="Esun_Catalog::specification_imports" title="Specifications Management" module="Esun_Catalog"
sortOrder="20" parent="Esun_Catalog::download_specifications"
action="esun_catalog/specificationimport/index" resource="Esun_Catalog::specification_imports"/>
</menu>
</config>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="admin">
<route id="esun_catalog" frontName="esun_catalog">
<module name="Esun_Catalog"/>
</route>
</router>
</config>
@@ -0,0 +1,26 @@
<?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_catalog" translate="label" type="text" sortOrder="930"
showInDefault="1" showInWebsite="0" showInStore="0">
<label>Catalog</label>
<tab>esun</tab>
<resource>Esun_Catalog::config</resource>
<group id="printing_parameter" translate="label" type="text" sortOrder="10"
showInDefault="1" showInWebsite="0" showInStore="0">
<label>Printing Parameter</label>
<field id="tds_excel" translate="label comment" type="file" sortOrder="10"
showInDefault="1" showInWebsite="0" showInStore="0">
<label>TDS Parameter Excel</label>
<backend_model>Esun\Catalog\Model\Config\Backend\PrintingParameterExcel</backend_model>
<upload_dir config="system/filesystem/media">esun/catalog/printing_parameter</upload_dir>
<comment>Upload an .xlsx file. The parsed JSON is written to app/code/Esun/Catalog/data/printing-parameters.json.</comment>
</field>
</group>
</section>
</system>
</config>
+208
View File
@@ -0,0 +1,208 @@
<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="esun_catalog_faq" resource="default" engine="innodb" comment="Esun Product FAQ">
<column xsi:type="int" name="faq_id" unsigned="true" nullable="false" identity="true" comment="FAQ ID"/>
<column xsi:type="varchar" name="title" nullable="false" length="255" comment="Title"/>
<column xsi:type="mediumtext" name="content" nullable="true" comment="Content"/>
<column xsi:type="varchar" name="store_ids" nullable="false" length="255" default="0" comment="Store IDs"/>
<column xsi:type="smallint" name="status" unsigned="true" nullable="false" default="1" comment="Status"/>
<column xsi:type="int" name="sort_order" nullable="false" default="0" comment="Sort Order"/>
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
<column xsi:type="timestamp" name="updated_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="true" comment="Updated At"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="faq_id"/>
</constraint>
<index referenceId="ESUN_CATALOG_FAQ_STATUS_SORT" indexType="btree">
<column name="status"/>
<column name="sort_order"/>
</index>
</table>
<table name="esun_catalog_product_gallery" resource="default" engine="innodb" comment="Esun Product Detail Gallery Mapping">
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
<column xsi:type="int" name="product_id" unsigned="true" nullable="false" comment="Product ID"/>
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" comment="Media Gallery Value ID"/>
<column xsi:type="varchar" name="section" nullable="false" length="64" default="detail_gallery" comment="Section"/>
<column xsi:type="smallint" name="status" unsigned="true" nullable="false" default="1" comment="Status"/>
<column xsi:type="int" name="sort_order" nullable="false" default="0" comment="Sort Order"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="entity_id"/>
</constraint>
<constraint xsi:type="unique" referenceId="ESUN_CATALOG_PRODUCT_GALLERY_UNQ">
<column name="product_id"/>
<column name="value_id"/>
<column name="section"/>
</constraint>
<index referenceId="ESUN_CATALOG_PRODUCT_GALLERY_PRODUCT_SECTION" indexType="btree">
<column name="product_id"/>
<column name="section"/>
<column name="status"/>
<column name="sort_order"/>
</index>
</table>
<table name="esun_catalog_certification_type" resource="default" engine="innodb" comment="Esun Product Certification Type">
<column xsi:type="int" name="type_id" unsigned="true" nullable="false" identity="true" comment="Type ID"/>
<column xsi:type="varchar" name="name" nullable="false" length="255" comment="Certification Type Name"/>
<column xsi:type="varchar" name="icon" nullable="true" length="1024" comment="Icon Path"/>
<column xsi:type="smallint" name="status" unsigned="true" nullable="false" default="1" comment="Status"/>
<column xsi:type="int" name="sort_order" nullable="false" default="0" comment="Sort Order"/>
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
<column xsi:type="timestamp" name="updated_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="true" comment="Updated At"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="type_id"/>
</constraint>
<index referenceId="ESUN_CATALOG_CERTIFICATION_TYPE_STATUS_SORT" indexType="btree">
<column name="status"/>
<column name="sort_order"/>
</index>
</table>
<table name="esun_catalog_specification_brand" resource="default" engine="innodb" comment="Esun Download Specification Brand">
<column xsi:type="int" name="brand_id" unsigned="true" nullable="false" identity="true" comment="Brand ID"/>
<column xsi:type="varchar" name="brand_name" nullable="false" length="255" comment="Brand Name"/>
<column xsi:type="varchar" name="brand_logo" nullable="true" length="1024" comment="Brand Logo"/>
<column xsi:type="smallint" name="is_product_specific" unsigned="true" nullable="false" default="1" comment="Is Product Specific"/>
<column xsi:type="smallint" name="status" unsigned="true" nullable="false" default="1" comment="Status"/>
<column xsi:type="int" name="sort_order" nullable="false" default="0" comment="Sort Order"/>
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
<column xsi:type="timestamp" name="updated_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="true" comment="Updated At"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="brand_id"/>
</constraint>
<index referenceId="ESUN_CATALOG_SPEC_BRAND_STATUS_SORT" indexType="btree">
<column name="status"/>
<column name="sort_order"/>
</index>
</table>
<table name="esun_catalog_specification_import" resource="default" engine="innodb" comment="Esun Download Specification Import">
<column xsi:type="int" name="import_id" unsigned="true" nullable="false" identity="true" comment="Import ID"/>
<column xsi:type="int" name="brand_id" unsigned="true" nullable="false" comment="Brand ID"/>
<column xsi:type="varchar" name="archive_file" nullable="true" length="1024" comment="Archive File"/>
<column xsi:type="int" name="file_count" unsigned="true" nullable="false" default="0" comment="File Count"/>
<column xsi:type="smallint" name="status" unsigned="true" nullable="false" default="1" comment="Status"/>
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
<column xsi:type="timestamp" name="updated_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="true" comment="Updated At"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="import_id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="ESUN_CATALOG_SPEC_IMPORT_BRAND_ID_SPEC_BRAND_BRAND_ID"
table="esun_catalog_specification_import" column="brand_id"
referenceTable="esun_catalog_specification_brand" referenceColumn="brand_id"
onDelete="CASCADE"/>
<index referenceId="ESUN_CATALOG_SPEC_IMPORT_BRAND" indexType="btree">
<column name="brand_id"/>
<column name="updated_at"/>
</index>
</table>
<table name="esun_catalog_specification_file" resource="default" engine="innodb" comment="Esun Download Specification File">
<column xsi:type="int" name="file_id" unsigned="true" nullable="false" identity="true" comment="File ID"/>
<column xsi:type="int" name="import_id" unsigned="true" nullable="false" comment="Import ID"/>
<column xsi:type="int" name="brand_id" unsigned="true" nullable="false" comment="Brand ID"/>
<column xsi:type="varchar" name="brand_name" nullable="false" length="255" comment="Brand Name"/>
<column xsi:type="varchar" name="brand_logo" nullable="true" length="1024" comment="Brand Logo"/>
<column xsi:type="varchar" name="model_name" nullable="false" length="255" comment="Model Name"/>
<column xsi:type="varchar" name="file_name" nullable="false" length="512" comment="File Name"/>
<column xsi:type="varchar" name="file_path" nullable="false" length="1024" comment="File Path"/>
<column xsi:type="varchar" name="product_name_key" nullable="false" length="512" comment="Product Name Key"/>
<column xsi:type="smallint" name="is_product_specific" unsigned="true" nullable="false" default="1" comment="Is Product Specific"/>
<column xsi:type="int" name="file_size" unsigned="true" nullable="false" default="0" comment="File Size"/>
<column xsi:type="timestamp" name="file_mtime" nullable="true" comment="File Modified At"/>
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="file_id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="ESUN_CATALOG_SPEC_FILE_IMPORT_ID_SPEC_IMPORT_IMPORT_ID"
table="esun_catalog_specification_file" column="import_id"
referenceTable="esun_catalog_specification_import" referenceColumn="import_id"
onDelete="CASCADE"/>
<index referenceId="ESUN_CATALOG_SPEC_FILE_PRODUCT_KEY" indexType="btree">
<column name="product_name_key"/>
</index>
<index referenceId="ESUN_CATALOG_SPEC_FILE_BRAND_MODEL" indexType="btree">
<column name="brand_id"/>
<column name="model_name"/>
</index>
</table>
<table name="esun_catalog_color_option" resource="default" engine="innodb" comment="Esun Catalog Color Option Display">
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
<column xsi:type="int" name="option_id" unsigned="true" nullable="false" comment="Color Attribute Option ID"/>
<column xsi:type="varchar" name="display_name" nullable="true" length="255" comment="Display Name"/>
<column xsi:type="text" name="swatch_colors" nullable="true" comment="Swatch Colors"/>
<column xsi:type="varchar" name="ball_image" nullable="true" length="1024" comment="Color Ball Image"/>
<column xsi:type="smallint" name="is_hot_sale" unsigned="true" nullable="false" default="0" comment="Is Hot Sale"/>
<column xsi:type="smallint" name="status" unsigned="true" nullable="false" default="1" comment="Status"/>
<column xsi:type="int" name="sort_order" nullable="false" default="0" comment="Sort Order"/>
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
<column xsi:type="timestamp" name="updated_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="true" comment="Updated At"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="entity_id"/>
</constraint>
<constraint xsi:type="unique" referenceId="ESUN_CATALOG_COLOR_OPTION_OPTION_ID">
<column name="option_id"/>
</constraint>
<index referenceId="ESUN_CATALOG_COLOR_OPTION_STATUS_SORT" indexType="btree">
<column name="status"/>
<column name="sort_order"/>
</index>
<index referenceId="ESUN_CATALOG_COLOR_OPTION_HOT_SALE" indexType="btree">
<column name="status"/>
<column name="is_hot_sale"/>
</index>
</table>
<table name="esun_product_recommendation_set" resource="default" engine="innodb"
comment="Esun Product Recommendation Set">
<column xsi:type="int" name="set_id" unsigned="true" nullable="false" identity="true" comment="Set ID"/>
<column xsi:type="int" name="product_id" unsigned="true" nullable="false" comment="Source Product ID"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" default="0"
comment="Website ID; 0 Is Default"/>
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
<column xsi:type="timestamp" name="updated_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="true"
comment="Updated At"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="set_id"/>
</constraint>
<constraint xsi:type="unique" referenceId="ESUN_PRODUCT_RECOMMENDATION_SET_PRODUCT_WEBSITE">
<column name="product_id"/>
<column name="website_id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="ESUN_PRD_RECOMMENDATION_SET_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID"
table="esun_product_recommendation_set" column="product_id"
referenceTable="catalog_product_entity" referenceColumn="entity_id" onDelete="CASCADE"/>
<constraint xsi:type="foreign" referenceId="ESUN_PRD_RECOMMENDATION_SET_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID"
table="esun_product_recommendation_set" column="website_id"
referenceTable="store_website" referenceColumn="website_id" onDelete="CASCADE"/>
</table>
<table name="esun_product_recommendation_item" resource="default" engine="innodb"
comment="Esun Product Recommendation Item">
<column xsi:type="int" name="item_id" unsigned="true" nullable="false" identity="true" comment="Item ID"/>
<column xsi:type="int" name="set_id" unsigned="true" nullable="false" comment="Set ID"/>
<column xsi:type="int" name="recommended_product_id" unsigned="true" nullable="false"
comment="Recommended Product ID"/>
<column xsi:type="int" name="sort_order" unsigned="true" nullable="false" default="0" comment="Sort Order"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="item_id"/>
</constraint>
<constraint xsi:type="unique" referenceId="ESUN_PRODUCT_RECOMMENDATION_ITEM_SET_PRODUCT">
<column name="set_id"/>
<column name="recommended_product_id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="ESUN_PRD_RECOMMENDATION_ITEM_SET_ID_RECOMMENDATION_SET_SET_ID"
table="esun_product_recommendation_item" column="set_id"
referenceTable="esun_product_recommendation_set" referenceColumn="set_id" onDelete="CASCADE"/>
<constraint xsi:type="foreign" referenceId="ESUN_PRD_RECOMMENDATION_ITEM_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID"
table="esun_product_recommendation_item" column="recommended_product_id"
referenceTable="catalog_product_entity" referenceColumn="entity_id" onDelete="CASCADE"/>
<index referenceId="ESUN_PRODUCT_RECOMMENDATION_ITEM_SET_SORT" indexType="btree">
<column name="set_id"/>
<column name="sort_order"/>
</index>
</table>
</schema>
+37
View File
@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<virtualType name="Esun\Catalog\ProductDetailImageUpload" type="Magento\Catalog\Model\ImageUploader">
<arguments>
<argument name="baseTmpPath" xsi:type="string">tmp/esun/catalog/product-detail</argument>
<argument name="basePath" xsi:type="string">esun/catalog/product-detail</argument>
<argument name="allowedExtensions" xsi:type="array">
<item name="jpg" xsi:type="string">jpg</item>
<item name="jpeg" xsi:type="string">jpeg</item>
<item name="gif" xsi:type="string">gif</item>
<item name="png" xsi:type="string">png</item>
<item name="webp" xsi:type="string">webp</item>
</argument>
<argument name="allowedMimeTypes" xsi:type="array">
<item name="jpg" xsi:type="string">image/jpg</item>
<item name="jpeg" xsi:type="string">image/jpeg</item>
<item name="gif" xsi:type="string">image/gif</item>
<item name="png" xsi:type="string">image/png</item>
<item name="webp" xsi:type="string">image/webp</item>
</argument>
</arguments>
</virtualType>
<type name="Esun\Catalog\Model\Product\Attribute\Backend\JsonRows">
<arguments>
<argument name="imageUploader" xsi:type="object">Esun\Catalog\ProductDetailImageUpload</argument>
</arguments>
</type>
<type name="Magento\Framework\Console\CommandListInterface">
<arguments>
<argument name="commands" xsi:type="array">
<item name="esunCatalogRebuildSpecificationArchive" xsi:type="object">Esun\Catalog\Console\Command\RebuildSpecificationArchiveCommand</item>
<item name="esunCatalogCopyConfigurableCategories" xsi:type="object">Esun\Catalog\Console\Command\CopyConfigurableCategoriesCommand</item>
</argument>
</arguments>
</type>
</config>
+20
View File
@@ -0,0 +1,20 @@
<?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="WeltPixel\LayeredNavigation\Helper\Data">
<plugin name="esun_force_price_slider"
type="Esun\Catalog\Plugin\WeltPixel\ForcePriceSliderPlugin"/>
</type>
<type name="WeltPixel\LayeredNavigation\Block\Navigation\FilterRenderer">
<plugin name="esun_price_step_counts"
type="Esun\Catalog\Plugin\WeltPixel\PriceStepCountsPlugin"/>
</type>
<type name="WeltPixel\LayeredNavigation\Block\LayeredNavigation\RenderLayered">
<plugin name="esun_hot_sale_color_swatch"
type="Esun\Catalog\Plugin\WeltPixel\HotSaleColorSwatchPlugin"/>
</type>
<type name="Magento\Wishlist\CustomerData\Wishlist">
<plugin name="esun_catalog_wishlist_product_ids"
type="Esun\Catalog\Plugin\Wishlist\CustomerDataWishlistPlugin"/>
</type>
</config>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="catalog_block_product_list_collection">
<observer name="esun_catalog_in_stock_product_list_filter"
instance="Esun\Catalog\Observer\InStockProductListFilter"/>
</event>
</config>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework/App/etc/routes.xsd">
<router id="standard">
<route id="wishlist" frontName="wishlist">
<module name="Esun_Catalog" before="Magento_Wishlist"/>
</route>
</router>
</config>
+18
View File
@@ -0,0 +1,18 @@
<?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_Catalog">
<sequence>
<module name="Magento_Catalog"/>
<module name="Magento_CatalogInventory"/>
<module name="Magento_ConfigurableProduct"/>
<module name="Magento_Cms"/>
<module name="Magento_PageBuilder"/>
<module name="Magento_Review"/>
<module name="Magento_Swatches"/>
<module name="Magento_Wishlist"/>
<module name="WeltPixel_LayeredNavigation"/>
<module name="Esun_Video"/>
</sequence>
</module>
</config>