Title: Out of Stock Affiliate Redirect
Author: Local Site Builder
Published: <strong>December 3, 2025</strong>
Last modified: December 7, 2025

---

Search plugins

![](https://ps.w.org/out-of-stock-affiliate-redirect/assets/banner-772x250.png?rev
=3408672)

![](https://ps.w.org/out-of-stock-affiliate-redirect/assets/icon-256x256.png?rev
=3408672)

# Out of Stock Affiliate Redirect

 By [Local Site Builder](https://profiles.wordpress.org/discgolfshopping/)

[Download](https://downloads.wordpress.org/plugin/out-of-stock-affiliate-redirect.1.1.3.zip)

 * [Details](https://srd.wordpress.org/plugins/out-of-stock-affiliate-redirect/#description)
 * [Reviews](https://srd.wordpress.org/plugins/out-of-stock-affiliate-redirect/#reviews)
 *  [Installation](https://srd.wordpress.org/plugins/out-of-stock-affiliate-redirect/#installation)
 * [Development](https://srd.wordpress.org/plugins/out-of-stock-affiliate-redirect/#developers)

 [Support](https://wordpress.org/support/plugin/out-of-stock-affiliate-redirect/)

## Description

**Don’t let “Out of Stock” be a dead end for your customers.**

When you run out of inventory, you usually lose the customer. With **Out of Stock
Affiliate Redirect**, you can save that sale by sending the customer to an external
source (like Amazon, eBay, or a partner site) where they can still buy the item—
and you can earn an affiliate commission.

This lightweight plugin adds a simple field to your WooCommerce “Inventory” tab.
If the product stock reaches 0, the “Add to Cart” button disappears (standard WooCommerce
behavior), and our plugin inserts a call-to-action button linking to your backup
source.

#### Features

 * **Simple Setup:** Adds a URL field directly to the WooCommerce Product Data “
   Inventory” tab.
 * **Automatic Trigger:** The button only appears when the product status is “Out
   of Stock.”
 * **Custom Button Text:** Change “Buy on Amazon” to “Buy on eBay,” “Check Partner
   Stock,” or anything else per product.
 * **Affiliate Friendly:** Great for Amazon Associates or other affiliate programs
   to monetize out-of-stock traffic.
 * **Theme Compatible:** Uses standard WooCommerce hooks (`woocommerce_single_product_summary`)
   to display correctly on most themes.

#### How it Works

 1. Edit a Product in WooCommerce.
 2. Click the **Inventory** tab.
 3. Enter a URL in the **Alternative Buying URL** field.
 4. (Optional) Enter custom text for the button (Default is “Buy on Amazon”).
 5. When your stock hits 0, the button appears automatically!

## Screenshots

[⌊Quick guide showing how to set up the Out of Stock Affiliate Redirect plugin.⌉⌊
Quick guide showing how to set up the Out of Stock Affiliate Redirect plugin.⌉[

Quick guide showing how to set up the Out of Stock Affiliate Redirect plugin.

[⌊Add your Alternative Buying URL directly in the WooCommerce product settings.⌉⌊
Add your Alternative Buying URL directly in the WooCommerce product settings.⌉[

Add your Alternative Buying URL directly in the WooCommerce product settings.

[⌊When a product is out of stock, the redirect button appears automatically.⌉⌊When
a product is out of stock, the redirect button appears automatically.⌉[

When a product is out of stock, the redirect button appears automatically.

[⌊Example of a standard out-of-stock product before enabling a redirect.⌉⌊Example
of a standard out-of-stock product before enabling a redirect.⌉[

Example of a standard out-of-stock product before enabling a redirect.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/out-of-stock-affiliate-redirect`
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to any WooCommerce product, click the **Inventory** tab, and add your affiliate
    link.

## FAQ

### Where do I find the settings?

You can find the instructions and upgrade options by clicking **“Out of Stock Redirect”**
in your main WordPress admin sidebar. To use the plugin, go to **Products > Edit
Product**, click the **Inventory** tab, and enter your URL in the “Alternative Buying
URL” field.

### Does this work for Variable Products?

Currently, this plugin is optimized for **Simple Products**. While the fields may
appear on Variable products, the logic is designed to check the main product’s stock
status.

### Can I style the button?

Yes! The button has the CSS class `.oos-affiliate-btn`. You can target this class
in your theme’s “Additional CSS” section to change colors, fonts, or padding.

### What happens if I restock the item?

If you add stock (so the product is “In Stock” again), the Affiliate button automatically
disappears, and the standard WooCommerce “Add to Cart” button returns. You do not
need to delete the URL.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Out of Stock Affiliate Redirect” is open source software. The following people 
have contributed to this plugin.

Contributors

 *   [ Local Site Builder ](https://profiles.wordpress.org/discgolfshopping/)

[Translate “Out of Stock Affiliate Redirect” into your language.](https://translate.wordpress.org/projects/wp-plugins/out-of-stock-affiliate-redirect)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/out-of-stock-affiliate-redirect/),
check out the [SVN repository](https://plugins.svn.wordpress.org/out-of-stock-affiliate-redirect/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/out-of-stock-affiliate-redirect/)
by [RSS](https://plugins.trac.wordpress.org/log/out-of-stock-affiliate-redirect/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.0

 * Initial repository release.
 * Added admin sidebar menu.
 * Added support for custom button text.
 * Added sanitization and escaping for better security.

#### 1.0.0

 * Beta release.

## Meta

 *  Version **1.1.3**
 *  Last updated **11 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.9.11**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/out-of-stock-affiliate-redirect/)
 * Tags
 * [affiliate](https://srd.wordpress.org/plugins/tags/affiliate/)[external link](https://srd.wordpress.org/plugins/tags/external-link/)
   [inventory](https://srd.wordpress.org/plugins/tags/inventory/)[out of stock](https://srd.wordpress.org/plugins/tags/out-of-stock/)
   [woocommerce](https://srd.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://srd.wordpress.org/plugins/out-of-stock-affiliate-redirect/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/out-of-stock-affiliate-redirect/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/out-of-stock-affiliate-redirect/reviews/)

## Contributors

 *   [ Local Site Builder ](https://profiles.wordpress.org/discgolfshopping/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/out-of-stock-affiliate-redirect/)