Collapse AllExpand All

2.7. Out of Stock

The powerful integration between the ERP and the web portal allows for real-time inventory levels to impact a user's buying experience. If an item is in stock, the quantity field will be editable, and the user will be able to add the item to their cart. However, if the item is out of stock, the user experience may change, depending on how you configure the system to handle out-of-stock scenarios.

When deciding how to configure the web portal to handle out-of-stock scenarios, you have several options to choose from:

  1. Do nothing. In this case, users will be able to view out-of-stock items on your site but will not be able to purchase them—at least, not until stock levels return.

  2. Select the Accept Backorders option on the Attributes tab of the Item master. When this option is specified for an item, the item may be purchased online, even if it is currently out of stock.

  3. Choose the Always publish Inventory as "In Stock" option on the Site screen. This option will override any other settings, ensuring that customers can always purchase items on your portal, regardless of the stock levels.

Warning

To learn more about inventory levels for web portal customers, read the article Managing Unique Inventory Level Experiences within xTupleCommerce.

By default, if products are out of stock they will still be available for viewing on the web portal—both as listed products and as individual product pages. When stock runs out (unless you've configured the system otherwise), the color of the ADD TO CART button will change to an inactive default color. The cursor will also change, making it impossible to add product quantity to the cart. If particular items do not allow for back orders and inventory levels are getting low, the system will not allow customers to purchase more than what is in stock. A message will appear stating that inventory is low and explaining that the order quantity must be less than or equal to the quantity in stock, which is displayed to the customer. For example, if a product has 25 items remaining in stock and a customer attempts to enter a quantity of 26 or more, the system will notify them that they can only buy up to 25 items.

For items which accept backorders, you can customize the content of the out-of-stock message, as shown in the following screenshot:

Out of Stock

To create your own custom message, navigate to the Attributes tab on the Item master. There you will see the Display Message field. This is where you enter the desired message contents. When creating a message, if you simply write a long sentence or paragraph, the text will not wrap or go onto another line. Instead, use the pipe symbol (|) on your keyboard to separate parts of the message. The content before the | will appear at the top and the content after the | will appear below. Once you click SAVE on the Item screen, the message will appear on the individual product page.

Display Message