Force stock availability
By default, if an SKU has zero stock in the store catalog, it is not possible to sell that SKU with inStore. However, there are cases where — even if the stock is zero — the SKU exists and is available in the physical store. And you may want to give your sales associates the ability to sell SKUs in this situation.
inStore allows this through a customization in the checkout-instore-custom.js
file that enables the Force Stock Availability feature. Check out the How to customize VTEX Sales App guide for further information on how to access this file.
Edit the checkout-instore-custom.js
file
- To activate this feature, you need to include the
sellWithoutStockInHands
property in thewindow.INSTORE_CONFIG
object, with the valuetrue
.
The code should look like the example below:
_10window.INSTORE_CONFIG = {_10sellWithoutStockInHands: true,_10};
Do not remove any of the other properties present in the
window.INSTORE_CONFIG
object, to avoid breaking other functionalities.
- After making changes in the code, make sure you press the
Save
button.