123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?xml version="1.0"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
- <system>
- <section id="cataloginventory" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
- <label>Inventory</label>
- <tab>catalog</tab>
- <resource>Magento_CatalogInventory::cataloginventory</resource>
- <group id="options" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
- <label>Stock Options</label>
- <field id="can_subtract" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Decrease Stock When Order is Placed</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- </field>
- <field id="can_back_in_stock" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Set Items' Status to be In Stock When Order is Cancelled</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- </field>
- <field id="show_out_of_stock" translate="label comment" type="select" sortOrder="3" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Display Out of Stock Products</label>
- <comment>Products will still be shown by direct product URLs.</comment>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- <backend_model>Magento\CatalogInventory\Model\Config\Backend\ShowOutOfStock</backend_model>
- </field>
- <field id="stock_threshold_qty" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
- <label>Only X left Threshold</label>
- <validate>validate-number</validate>
- </field>
- <field id="display_product_stock_status" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
- <label>Display Products Availability in Stock on Storefront</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- </field>
- </group>
- <group id="item_options" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
- <comment>
- <![CDATA[Please note that these settings apply to individual items in the cart, not to the entire cart.]]>
- </comment>
- <label>Product Stock Options</label>
- <field id="manage_stock" translate="label comment" type="select" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Manage Stock</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- <backend_model>Magento\CatalogInventory\Model\Config\Backend\Managestock</backend_model>
- <comment>Changing can take some time due to processing whole catalog.</comment>
- </field>
- <field id="backorders" translate="label comment" type="select" sortOrder="3" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Backorders</label>
- <source_model>Magento\CatalogInventory\Model\Source\Backorders</source_model>
- <backend_model>Magento\CatalogInventory\Model\Config\Backend\Backorders</backend_model>
- <comment>Changing can take some time due to processing whole catalog.</comment>
- </field>
- <field id="max_sale_qty" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Maximum Qty Allowed in Shopping Cart</label>
- <validate>validate-number</validate>
- </field>
- <field id="min_qty" translate="label" type="text" sortOrder="5" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Out-of-Stock Threshold</label>
- <validate>validate-number</validate>
- <backend_model>Magento\CatalogInventory\Model\System\Config\Backend\Minqty</backend_model>
- </field>
- <field id="min_sale_qty" translate="label" sortOrder="6" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Minimum Qty Allowed in Shopping Cart</label>
- <frontend_model>Magento\CatalogInventory\Block\Adminhtml\Form\Field\Minsaleqty</frontend_model>
- <backend_model>Magento\CatalogInventory\Model\System\Config\Backend\Minsaleqty</backend_model>
- </field>
- <field id="notify_stock_qty" translate="label" type="text" sortOrder="7" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Notify for Quantity Below</label>
- <validate>validate-number</validate>
- </field>
- <field id="auto_return" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
- <label>Automatically Return Credit Memo Item to Stock</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- </field>
- <field id="enable_qty_increments" translate="label" type="select" sortOrder="8" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Enable Qty Increments</label>
- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- </field>
- <field id="qty_increments" translate="label" type="text" sortOrder="9" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
- <label>Qty Increments</label>
- <validate>validate-number validate-greater-than-zero</validate>
- <backend_model>Magento\CatalogInventory\Model\System\Config\Backend\Qtyincrements</backend_model>
- <depends>
- <field id="enable_qty_increments">1</field>
- </depends>
- </field>
- </group>
- </section>
- </system>
- </config>
|