1. Documenation
  2. WooCommerce Sales Trigger
  3. Low Stock

Low Stock

This trigger is used to show the stock status of a product. You can set it up in one of the two modes: Commitment or Scarcity.

Basic Setup

You need to have this basic setup to configure this trigger.

Step #1: Activate the ‘Low Stock’ trigger

Go to WooCommerce > Settings > Sales Triggers: XL Plugins

Place the cursor over the Low Stock trigger and hit the ‘Activate’ button to activate it.

You’ll notice the status changes from ‘Deactivated’ to ‘Activated’.

Step #2: Enable stock management and set the stock quantity

Go to WooCommerce > Products > Inventory

Enable the stock management at product level option here, and set the stock quantity as well.

Once you’re done, hit the ‘Update’ button.

So once you’ve activated the Low Stock trigger and enabled stock level management for your products, only then you’ll be able to see this trigger in action.

Take a look:

Modes

Commitment Mode is ideal when you have a large stock quantity. A message such as ‘In Stock’ re-affirms user that product is in stock.

Here’s how it appears:

Scarcity mode is ideal when you have low stock quantity. A message such as ‘Only two items left in stock. Almost Gone!’ creates an urgency to purchase the item.

Here’s how this mode works:

You can also choose to automatically switch from the ‘Commitment’ mode to the ‘Scarcity’ mode when few items are left in the stock.

Here’s how:

So when you enable this, the scarcity text will be displayed to the user when the stock reduces below a set threshold. This option takes care of informing customers about the stock scarcity at the right time.

Settings

Settings Overview of WooCommerce Low Stock Trigger

  1. Add a text to display when the mode is ‘Commitment’. You can use the merge tag {{stock_quantity_left}} which outputs the number of items left in stock.
  2. Add a text to display when the mode is ‘Scarcity’. You can use the {{stock_quantity_left}} merge tag here as well.
  3. Add a text to display when the item is out of stock, i.e., stock quantity is 0.
  4. Add a text to display when the item is in backorder.
  5. Choose the default mode of this trigger – Commitment or Scarcity.
  6. Specify the number of items left in stock when you want to automatically switch the mode from ‘Commitment’ to ‘Scarcity’.
  7. Choose the text colors for each of the mode.
  8. Select the font size.
  9. Select the position to display this message.

FAQ

Q. Will Low Stock trigger only work if stock management is enabled?
A. The Commitment mode works irrespective of whether stock management is enabled. However, Scarcity mode only works when stock management is enabled.

Q. What will be the output of the merge tag {{stock_quantity_left}} if stock management is disabled?
A. This merge tag will return no output.

How can we help?