Documentation Woo Sold Out Badge
Woocommerce Sold Out Badge
Version 4.0.0
Introduction
Woocommerce Sold Out Badge is a powerful and flexible badge system for WooCommerce that allows you to create and manage professional “Sold Out” badges for out-of-stock products. Create eye-catching badges that clearly communicate stock status to your customers.
- Creating professional SOLD OUT badges for out-of-stock products
- “Back Soon” or “Restocking” badges for restocking items
- Category-specific sold out badges
- Variable product support with real-time badge switching
Requirements
- WordPress: 6.5 or higher
- WooCommerce: 5.0 or higher (tested up to 10.0.5)
- PHP: 7.4 or higher
Features
Professional Sold Out Badges
- Create unlimited sold out badges
- Global or category-specific badges
- Shows on catalog and single product pages
- Real-time updates for variable products
Preset Library
- 12 professionally designed SVG badges
- Various “SOLD OUT” designs and styles
- Options: “GONE”, “ALL GONE”, “BACK SOON”, and more
- Instant preview and selection
Smart Stock Logic
- Simple Products: Shows badge when out of stock
- Variable Products: Shows badge only when ALL variations are out of stock
- Real-time updates when variations are selected
Custom Design Options
- Custom text (e.g., “Sold Out”, “Gone”, “Back Soon”)
- Custom colors for text and background
- Adjustable padding and margins
- Border radius controls for rounded corners
- Opacity settings
- Custom image upload
Live Preview
- Real-time design updates
- Drag to position the badge
- See changes instantly before publishing
Variable Product Support
- Real-time badge switching
- Shows badge only when ALL variations are out of stock
- Updates instantly on variation selection
Performance Optimized
- Built-in caching system
- Minimal database queries
- Optimized for block and classic themes
- Lightweight CSS and JavaScript
Theme Compatibility
The plugin automatically detects your theme type and uses the appropriate display method:
- Classic Themes: Storefront, Astra, Flatsome, OceanWP, and all traditional WooCommerce themes
- Block Themes: Twenty Twenty-Four, Twenty Twenty-Five, and all Full Site Editing (FSE) themes
HPOS Compatibility
Fully compatible with WooCommerce High-Performance Order Storage.
Installation
Standard Installation
- Download the plugin ZIP file from CodeCanyon
- Go to WordPress Admin → Plugins → Add New
- Click “Upload Plugin” and select the downloaded ZIP file
- Click “Install Now” and then “Activate”
- The plugin will automatically check for WooCommerce
- A new menu item “Sold Out Badges” will appear in your admin sidebar
FTP Installation
- Extract the plugin ZIP file on your computer
- Upload the
soldout-badgesfolder to/wp-content/plugins/ - Go to WordPress Admin → Plugins
- Find “Woocommerce Sold Out Badge” and click “Activate”
Getting Started
Quick Start Guide
-
Create Your First Sold Out Badge
Go to Sold Out Badges → Add New. Give your badge a title (e.g., “Default Sold Out Badge”).
-
Choose Assignment Type
Select “Global” to show on all out-of-stock products, or “Specific Categories” to limit to certain categories.
-
Design Your Badge
Choose a preset image, upload a custom image, or create a text badge with custom colors and styling.
-
Publish Your Badge
Click Publish and the badge will automatically appear on applicable out-of-stock products.
Creating a Simple Sold Out Badge – Step by Step
- Go to Sold Out Badges → Add New in your WordPress admin.
- Enter a title for the badge (internal name, e.g., “Standard Sold Out Badge”).
- In the Badge Assignment section, choose:
– Global – Shows on all out-of-stock products
– Specific Categories – Shows only in selected categories
- In the Badge Types section, choose “Use Custom Design” for a text badge.
- Set your badge text (e.g., “SOLD OUT”, “GONE”, “BACK SOON”), colors, padding, and border radius.
- Adjust the badge position by dragging the live preview or entering top/left values.
- Click Publish to save your badge.
Creating an Image Badge
- Follow steps 1-3 above.
- In the Badge Types section, choose “Use Preset Image” to select from 12 pre-designed badges.
- Click on any preset badge to select it.
- Alternatively, choose “Use Custom Design” and upload your own image in the “Custom Badge Image” section.
- Publish your badge.
Badge Types & Assignment
| Assignment Type | Description | Use Case |
|---|---|---|
| Global | Shows on all out-of-stock products | One consistent sold out badge for your entire store |
| Specific Categories | Shows only on out-of-stock products in selected categories | Different badges for different departments (e.g., “SOLD OUT” for clothing, “DISCONTINUED” for electronics) |
How Category Selection Works
When you select “Specific Categories”, you can choose multiple categories. The badge will appear on any product that belongs to at least one of the selected categories.
- ✓ Clothing (selected) – Badge appears on out-of-stock items
- ├── Men’s Clothing – Badge appears (inherits from parent)
- │ ├── Shirts – Badge appears
- │ └── Pants – Badge appears
- └── Women’s Clothing – Badge appears
- ✗ Electronics (not selected) – No badge on out-of-stock items
- └── Phones – No badge
Note: Category hierarchy is respected automatically. Selecting a parent category applies the badge to all child categories.
Stock Status Logic
The plugin intelligently determines when to show sold out badges based on product type and stock status.
Simple Products
- Out of Stock: Badge appears
- In Stock: No badge appears
Variable Products
| Scenario | Badge Display |
|---|---|
| Catalog – All variations out of stock | ✅ Badge appears |
| Catalog – At least one variation in stock | ❌ No badge appears |
| Product view – Customer selects an out-of-stock variation | ✅ Badge appears (real-time update) |
| Product view – Customer selects an in-stock variation | ❌ Badge disappears (real-time update) |
Catalog vs Single Product Views
- Catalog/Shop Pages: Shows badge based on overall product stock status
- Single Product Page: Shows badge with real-time updates when variations are selected
Display Settings
Access via Sold Out Badge → Display Settings
| Setting | Options | Description |
|---|---|---|
| Display in Catalog View | Yes/No | Show sold out badges on shop, category, and archive pages |
| Display in Single Product View | Yes/No | Show sold out badges on individual product pages |
Badge Creation Settings
When creating/editing a badge, you’ll find these options:
| Field | Description |
|---|---|
| Badge Assignment | Global (all products) or Specific Categories |
| Badge Types | Use Custom Design or Use Preset Image |
| Preset Images | Choose from 12 professionally designed sold out badges |
| Text Color | Customize text color |
| Background Color | Customize background color (default: #c9326c) |
| Badge Text | Custom text (e.g., “SOLD OUT”, “GONE”, “BACK SOON”) |
| Padding | Top, Bottom, Left, Right padding in pixels |
| Border Radius | Individual corner radius settings for rounded corners |
| Position | Top and Left position (draggable preview) |
| Opacity | 0-10 opacity setting |
| Custom Image | Upload your own badge image |
Frequently Asked Questions
General Questions
Q: How many badges can I create?
A: Unlimited! Create as many sold out badges as you need for different categories or styles.
Q: Can I use my own images for badges?
A: Absolutely! You can upload any image (JPG, PNG, GIF, SVG) from your media library, or choose from our 12 preset SVG badges.
Q: Will this work with my theme?
A: Yes! The plugin automatically detects whether you’re using a classic or block theme and loads the appropriate display methods. It works with Storefront, Astra, Flatsome, Twenty Twenty-Four, and all popular WooCommerce themes.
Q: Will this slow down my site?
A: No – the plugin is optimized with caching, minified assets, and conditional loading. It only loads scripts and styles where needed, ensuring minimal performance impact.
Stock Logic Questions
Q: How does the badge work with variable products?
A: The badge appears only when ALL variations are out of stock. If any variation is available, no badge is shown. When a customer selects a variation, the badge updates in real-time based on that variation’s stock status.
Q: Can I show a “Low Stock” badge instead of “Sold Out”?
A: Yes! You can customize the badge text to anything you want, such as “Only X Left!”, “Low Stock”, or “Hurry Up!”. The badge will appear based on stock status (out of stock). For low stock thresholds, you would need to customize the logic.
Q: Does it work with backordered products?
A: Yes. If a product is marked as “in stock” but on backorder, no badge will appear. If it’s out of stock, the badge will appear.
Troubleshooting
| Issue | Solution |
|---|---|
| Badge Not Showing |
|
| Badge Showing When Product is In Stock |
|
| Variable Badge Not Updating |
|
| Radius/Padding Not Applying to Variable Products |
|
Support
For support, please contact us through CodeCanyon:
- Author: Gema75
- CodeCanyon Profile: https://codecanyon.net/user/gema75
- Check that you meet all system requirements
- Ensure WooCommerce is active and up to date
- Verify your products are out of stock (or check variable products)
- Try disabling other plugins to test for conflicts
- Check your PHP error logs for clues