system.xml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Mageplaza
  5. *
  6. * NOTICE OF LICENSE
  7. *
  8. * This source file is subject to the Mageplaza.com license that is
  9. * available through the world-wide-web at this URL:
  10. * https://www.mageplaza.com/LICENSE.txt
  11. *
  12. * DISCLAIMER
  13. *
  14. * Do not edit or add to this file if you wish to upgrade this extension to newer
  15. * version in the future.
  16. *
  17. * @category Mageplaza
  18. * @package Mageplaza_Search
  19. * @copyright Copyright (c) 2017 Mageplaza (http://www.mageplaza.com/)
  20. * @license https://www.mageplaza.com/LICENSE.txt
  21. */
  22. -->
  23. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  24. <system>
  25. <section id="mpsearch" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
  26. <label>Search</label>
  27. <tab>mageplaza</tab>
  28. <resource>Mageplaza_Search::configuration</resource>
  29. <group id="general" translate="label" type="text" sortOrder="500" showInDefault="1" showInWebsite="1" showInStore="1">
  30. <label>General</label>
  31. <field id="enabled" translate="label comment" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
  32. <label>Enable</label>
  33. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  34. </field>
  35. <field id="max_query_results" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  36. <label>Maximum Number of Search Results</label>
  37. <validate>validate-digits</validate>
  38. <comment><![CDATA[By Default, it shows 10 search results]]></comment>
  39. </field>
  40. <field id="max_letter_numbers" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  41. <label>Limit number of characters in description section</label>
  42. <validate>validate-digits</validate>
  43. <comment><![CDATA[Limit the length of short description.]]></comment>
  44. </field>
  45. <field id="display" translate="label" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
  46. <label>Information Display</label>
  47. <source_model>Mageplaza\Search\Model\Config\Source\Display</source_model>
  48. </field>
  49. <field id="reindex_search" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
  50. <label>Reindex Search database</label>
  51. <source_model>Mageplaza\Search\Model\Config\Source\Reindex</source_model>
  52. <comment><![CDATA[<strong>After product save</strong> option is good choice for store has less than 3,000 products.
  53. If your store has more than 3,000 SKUs, you should switch to Cron job, it runs daily at 0AM your server time.]]></comment>
  54. </field>
  55. <field id="btn_reindex" translate="button_label" sortOrder="55" showInDefault="1" showInWebsite="1" showInStore="1">
  56. <label></label>
  57. <button_label>Reindex Search Data</button_label>
  58. <button_url>mpsearch/search/generate</button_url>
  59. <frontend_model>Mageplaza\Search\Block\Adminhtml\System\Config\Button</frontend_model>
  60. </field>
  61. <group id="category" translate="label" showInDefault="1" sortOrder="100" showInWebsite="1" showInStore="1">
  62. <label>Search by category configuration</label>
  63. <field id="enable" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  64. <label>Enable Search By Category</label>
  65. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  66. </field>
  67. <field id="max_depth" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  68. <label>Maximal Depth</label>
  69. <depends>
  70. <field id="enable">1</field>
  71. </depends>
  72. </field>
  73. </group>
  74. </group>
  75. </section>
  76. </system>
  77. </config>