system.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  9. <system>
  10. <section id="cataloginventory" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
  11. <label>Inventory</label>
  12. <tab>catalog</tab>
  13. <resource>Magento_CatalogInventory::cataloginventory</resource>
  14. <group id="options" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
  15. <label>Stock Options</label>
  16. <field id="can_subtract" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  17. <label>Decrease Stock When Order is Placed</label>
  18. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  19. </field>
  20. <field id="can_back_in_stock" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  21. <label>Set Items' Status to be In Stock When Order is Cancelled</label>
  22. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  23. </field>
  24. <field id="show_out_of_stock" translate="label comment" type="select" sortOrder="3" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  25. <label>Display Out of Stock Products</label>
  26. <comment>Products will still be shown by direct product URLs.</comment>
  27. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  28. <backend_model>Magento\CatalogInventory\Model\Config\Backend\ShowOutOfStock</backend_model>
  29. </field>
  30. <field id="stock_threshold_qty" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
  31. <label>Only X left Threshold</label>
  32. <validate>validate-number</validate>
  33. </field>
  34. <field id="display_product_stock_status" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
  35. <label>Display Products Availability in Stock on Storefront</label>
  36. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  37. </field>
  38. </group>
  39. <group id="item_options" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  40. <comment>
  41. <![CDATA[Please note that these settings apply to individual items in the cart, not to the entire cart.]]>
  42. </comment>
  43. <label>Product Stock Options</label>
  44. <field id="manage_stock" translate="label comment" type="select" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  45. <label>Manage Stock</label>
  46. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  47. <backend_model>Magento\CatalogInventory\Model\Config\Backend\Managestock</backend_model>
  48. <comment>Changing can take some time due to processing whole catalog.</comment>
  49. </field>
  50. <field id="backorders" translate="label comment" type="select" sortOrder="3" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  51. <label>Backorders</label>
  52. <source_model>Magento\CatalogInventory\Model\Source\Backorders</source_model>
  53. <backend_model>Magento\CatalogInventory\Model\Config\Backend\Backorders</backend_model>
  54. <comment>Changing can take some time due to processing whole catalog.</comment>
  55. </field>
  56. <field id="max_sale_qty" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  57. <label>Maximum Qty Allowed in Shopping Cart</label>
  58. <validate>validate-number</validate>
  59. </field>
  60. <field id="min_qty" translate="label" type="text" sortOrder="5" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  61. <label>Out-of-Stock Threshold</label>
  62. <validate>validate-number</validate>
  63. <backend_model>Magento\CatalogInventory\Model\System\Config\Backend\Minqty</backend_model>
  64. </field>
  65. <field id="min_sale_qty" translate="label" sortOrder="6" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  66. <label>Minimum Qty Allowed in Shopping Cart</label>
  67. <frontend_model>Magento\CatalogInventory\Block\Adminhtml\Form\Field\Minsaleqty</frontend_model>
  68. <backend_model>Magento\CatalogInventory\Model\System\Config\Backend\Minsaleqty</backend_model>
  69. </field>
  70. <field id="notify_stock_qty" translate="label" type="text" sortOrder="7" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  71. <label>Notify for Quantity Below</label>
  72. <validate>validate-number</validate>
  73. </field>
  74. <field id="auto_return" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
  75. <label>Automatically Return Credit Memo Item to Stock</label>
  76. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  77. </field>
  78. <field id="enable_qty_increments" translate="label" type="select" sortOrder="8" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  79. <label>Enable Qty Increments</label>
  80. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  81. </field>
  82. <field id="qty_increments" translate="label" type="text" sortOrder="9" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  83. <label>Qty Increments</label>
  84. <validate>validate-number validate-greater-than-zero</validate>
  85. <backend_model>Magento\CatalogInventory\Model\System\Config\Backend\Qtyincrements</backend_model>
  86. <depends>
  87. <field id="enable_qty_increments">1</field>
  88. </depends>
  89. </field>
  90. </group>
  91. </section>
  92. </system>
  93. </config>