Setup WooCommerce “Back in Stock” notifications (free method)

Learn how to add a simple “back in stock” subscribe form on out of stock WooCommerce products.

Easily notify customers when your out-of-stock products become available. You may have been trying to find a solid and reliable back-in-stock plugin for your WooCommerce store.

I recently have been using the Back in Stock Notifier plugin. The best part? It’s free and does a great job!

Custom CSS

Below is some simple CSS I used to add my own site’s colors to the subscribe form.

.cwginstock-subscribe-form .panel-primary>.panel-heading {
	background-color: #2e9a9c;
	border-color: #2e9a9c;
}

.cwginstock-subscribe-form .panel-primary {
	border-color: #2e9a9c;
}

How to customize the color of the Subscribe Now button?

Add the snippet below to the bottom of your CSS file. Change the background-color value to match your branding.

.cwgstock_button {
	background-color: #2e9a9c !important;
}
Simon Gondeck

I’m a big fan of WordPress + WooCommerce (especially WooCommerce Subscriptions). Check out my YouTube channel.

17 thoughts on “Setup WooCommerce “Back in Stock” notifications (free method)”

  1. hey , when i add stock customers are not getting back in stock email automatically . i have to manually send instock email. Is there a way when i restock the product , the mail automatically get sent and not have to manually do it.

    Reply
  2. Is there anyway of making the spacing between the top and the bottom of the heading text “Email when available” equal?

    For some reason after installing the plugin the spacing from the top of the heading is half the size of the spacing from the bottom of the heading. (I’m talking about the colored space that is holding the heading text).

    Reply
  3. Hello Simon.

    Thank you for the tips. Is there a way to hide the first section with the “Email when available” and leave only the name, email, button fields?

    Reply
  4. Thanks for this! I really liked this plugin until I found out that an easy way to change the styles was NOT included (you had to purchase an additional plugin). I really appreciate that you provided the necessary CSS to add in order to have this form match our site styles! Great post and video!

    Reply
  5. Hi Simon,

    The Plugin works well for us, only the areas where you have to leave your data and the button are narrow gray strips. Not a nice fill area and button like you have. The font at the top is also normal and not bold.

    Reply
  6. Hello, I’m trying to change the background of the in stock notifier and the button to #DC3232 unfortunately its not working, can you help?

    Reply
    • Did you try clearing your cache or CDN after making these changes to your CSS file? For example, try opening up your site in a private or incognito window to see the change.

      If the color still has not changed try adding “!important” to the ending. Reference the code snippet above.

      Reply
    • Try adding margin-top to the button class. For example, like this:

      .cwgstock_button {
      background-color: #0693e3 !important;
      margin-top: 25px;
      }

      Reply
  7. Hi Simon,

    Thank you for the explanation. Unfortunately the css code to adjust the color doesn’t work for me 🙁
    I copied and pasted your code. What could be the cause of this?

    Reply

Leave a Comment