Skip to content

Commit 09f4fe4

Browse files
authored
Merge pull request #5 from magefan/7972-update-config
Update system.xml & config.xml
2 parents a613d08 + e6349c6 commit 09f4fe4

File tree

2 files changed

+59
-4
lines changed

2 files changed

+59
-4
lines changed

etc/adminhtml/system.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<tab id="magefan" sortOrder="110" translate="label" class="magefan-tab">
1111
<label>Magefan Extensions</label>
1212
</tab>
13-
<section id="mf_crowdin_sync_settings" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label">
13+
<section id="mf_crowdin_sync_settings" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10026401600" translate="label">
1414
<label>Crowdin Integration</label>
1515
<tab>magefan</tab>
1616
<resource>Magefan_Crowdin::config_integration</resource>
@@ -37,19 +37,19 @@
3737
<group id="mapped" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
3838
<label>Synchronize To Crowdin</label>
3939
<attribute type="expanded">1</attribute>
40-
<field id="fields" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
40+
<field id="fields" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
4141
<frontend_model>Magefan\Crowdin\Block\Adminhtml\Form\Field\Mapped</frontend_model>
4242
<backend_model>Magefan\Crowdin\Model\System\Config\Backend\Mapped</backend_model>
4343
<comment>If some field won't be selected in mapping, it will be enabled by default. If you remove all mappings, all fields will be enable to sync to Crowdin</comment>
4444
</field>
4545
</group>
4646
<group id="catalog_synchronization" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1">
4747
<label>Catalog Synchronization</label>
48-
<field id="synchronize_categories_and_products" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
48+
<field id="synchronize_categories_and_products" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
4949
<label>Synchronize Categories And Products</label>
5050
<source_model>Magefan\Crowdin\Model\Config\Source\SynchronizationType</source_model>
5151
</field>
52-
<field id="specific_categories_and_products" translate="label comment" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
52+
<field id="specific_categories_and_products" translate="label comment" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
5353
<label><![CDATA[Specific Сategories and Products]]></label>
5454
<source_model>Magefan\Crowdin\Model\Config\Source\CategoryList</source_model>
5555
<frontend_model>Magefan\Crowdin\Block\Adminhtml\Form\Multiselect</frontend_model>

etc/config.xml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magefan (support@magefan.com). All rights reserved.
5+
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
9+
<default>
10+
<mf_crowdin_sync_settings>
11+
<mapped>
12+
<fields>
13+
{
14+
"block\/content":"1",
15+
"block\/title":"1",
16+
"category\/assign_product_with_attributes":"1",
17+
"category\/description":"1",
18+
"category\/meta_description":"1",
19+
"category\/meta_keywords":"1",
20+
"category\/meta_title":"1",
21+
"category\/name":"1",
22+
"category\/url_key":"1",
23+
"email\/template_code":"1",
24+
"email\/template_subject":"1",
25+
"email\/template_text":"1",
26+
"page\/content":"1",
27+
"page\/content_heading":"1",
28+
"page\/meta_description":"1",
29+
"page\/meta_keywords":"1",
30+
"page\/meta_title":"1",
31+
"page\/title":"1",
32+
"product\/accessory_custom_engraving_text":"1",
33+
"product\/accessory_description_detailed_extra":"1",
34+
"product\/accessory_description_extra":"1",
35+
"product\/accessory_description_pagebuilder_extra":"1",
36+
"product\/description":"1",
37+
"product\/description_extra":"1",
38+
"product\/meta_description":"1",
39+
"product\/meta_keyword":"1",
40+
"product\/meta_title":"1",
41+
"product\/mfdc_reviews_count":"1",
42+
"product\/name":"1",
43+
"product\/short_description":"1",
44+
"product\/url_key":"1",
45+
"product\/video_file":"1"
46+
}
47+
</fields>
48+
</mapped>
49+
<catalog_synchronization>
50+
<synchronize_categories_and_products>0</synchronize_categories_and_products>
51+
<specific_categories_and_products/>
52+
</catalog_synchronization>
53+
</mf_crowdin_sync_settings>
54+
</default>
55+
</config>

0 commit comments

Comments
 (0)