How to Add a WooCommerce Stock Progress Bar in Divi

See how to add WooCommerce stock progress bar in Divi to show shoppers the remaining quantity or percentage on your product pages.

Nazmul Asif

Published: November 26, 2026

Table of Contents

To add a WooCommerce stock progress bar in Divi, you’ll need a module that turns inventory data into a visual bar. Divi’s built-in Woo Stock module displays stock as text, such as 15 in stock.

DiviMerc, a plugin that adds WooCommerce modules to Divi Builder, has a Product Stock Progress Bar module for this. It compares your current stock with the starting quantity you set. If 15 of 50 units remain, shoppers see a bar that’s 30% full.

In this guide, we’ll show you how to add a WooCommerce stock progress bar in Divi to help shoppers see how much stock is left at a glance.

Step 1: Enable the Initial Stock Extension and Module

Make sure WooCommerce, Divi 5, and DiviMerc are installed and active. Then enable these two features from your WordPress dashboard:

  • Go to DiviMerc > Extensions and turn on Initial Stock.
  • Go to DiviMerc > Modules and turn on Product Stock Progress Bar. (This will make the module available in Divi Builder.)

Step 2: Set the Stock Quantities for Your Product

With both features enabled, the next step is to give the bar the numbers it needs. The progress bar uses two numbers:

  • Stock quantity: How many units are available now.
  • Initial Number in Stock: How many units you started with.

To set these numbers:

  • Go to Products > All Products and edit your product.
  • Open Product data > Inventory and enable stock management.
  • Enter your current quantity in Stock quantity and your starting quantity in Initial Number in Stock. For the example above, enter 12 and 50.
  • Click Update.

For variable products, choose how stock is tracked:

  • Separate stock for each size or color: Go to Product data > Variations, open each variation, enable stock management, and enter its current and starting quantities.
  • Shared stock across all variations: Set both quantities on the main product under Product data > Inventory.

Click Update to save your changes.

Step 3: Set a Default Starting Quantity (Optional)

If several products start with the same quantity, you don’t have to enter the starting quantity for each one. Set a default in DiviMerc instead:

  • Go to DiviMerc > Extensions > Initial Stock and click Configure.
  • Turn on Enable Global Default.
  • Enter a Global Default Quantity, such as 50.

DiviMerc uses the variation’s starting quantity first, then the product’s starting quantity, and then the global default. WooCommerce still supplies the current stock quantity.

Step 4: Add the Stock Progress Bar to Your Product Page

Once your stock quantities are set, open the product page in Divi Builder. After that:

  • Add the Stock Progress Bar module wherever you want the bar to appear.
  • Go to Content tab > Content > Product and select This Product to display stock for the product shoppers are viewing.

Next, choose what to show alongside the bar, such as Only 12 left in stock or 24%

Step 5: Add a Stock Label

A stock label turns the bar into a clear message. Here is how to set it:

  • Turn on Show Label under Content tab > Settings.
  • Then open Content tab > Text and set up your message:
  • Prefix Text: Goes before the stock value. Enter “Only.”
  • Infix: The stock value itself. Choose Stock Quantity for the number of units left or Stock Quantity Percentage for the percentage left.
  • Suffix Text: Goes after the stock value. Enter “left in stock.”

With Stock Quantity selected and 12 units remaining, shoppers see “Only 12 left in stock.”

Step 6: Show the Stock Value (Optional)

You can also show the stock count or percentage next to the bar. Turn on Show Value under Content  tab > Settings, then choose what to display and where:

  • Value Type: Show the remaining stock as a Stock Count or Percentage.
  • Hide Total Quantity: Show only the remaining count, such as 12. Leave it off to show 12 / 50.
  • Value Position: Place the value above, below, before, after, or inside the bar. Choose Follow Fill to keep it at the edge of the fill, or Show on Tooltip to display it in a tooltip.

Tip: If your label already shows the remaining count, leave Show Value off to avoid repeating it.

Step 7: Style the Stock Progress Bar

Once the bar shows the right information, style it to match your store. Open the Design tab:

  • Progress Bar: Adjust the height and corner radius. Choose a Fill Color that stands out against the Track Color so shoppers can see how much stock remains.
  • Label: Style the full stock message.
  • Infix Text: Highlight the number or percentage within the label, such as 12 in “Only 12 left in stock.”
  • Value: Style the separate count or percentage. (Available when Show Value is on.)
  • Tooltip: Style the tooltip. (Available when Value Position is set to Show on Tooltip.)

To add an icon or image beside the bar:

  • Under Content > Image & Icon, turn on Use Icon and choose an icon. To use an image, leave Use Icon off and upload one.
  • Under Design > Image & Icon, adjust the icon’s size and color or the image’s width. Use Placement to position it on the left or right.

Save the page or template when you’re done.

Final Thoughts

Once you’ve added a WooCommerce stock progress bar in Divi, start with one product where the remaining quantity helps shoppers make a decision. A limited batch or a size that often sells out is a good place to start.

Try a short label like Only 15 left and check it against the product’s inventory. Once the display works the way you want, use it on other product pages and set starting quantities that reflect each product’s stock.

0 Comments

Submit a Comment

Add Divimerc as a preferred source on Google.

Get the Latest Features of DiviMerc

Free tutorials, exclusive contents & more.

Tips, Updates & Exclusive Releases

Save Up to 60% Before the Black Friday Sale Ends!

Get It Now

Save Up to 60% Before the Black Friday Sale Ends!

Get It Now