Linux 软件免费装
Banner图

Out of Stock Affiliate Redirect

开发者 discgolfshopping
更新时间 2025年12月7日 10:33
PHP版本: 7.2 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

affiliate woocommerce out of stock inventory external link

下载

1.1.2 1.1.3 1.0.0 1.1.0 1.1.1

详情介绍:

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 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!

安装:

  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.

屏幕截图:

  • Add your Alternative Buying URL directly in the WooCommerce product settings.
  • When a product is out of stock, the redirect button appears automatically.
  • Example of a standard out-of-stock product before enabling a redirect.

常见问题:

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.

更新日志:

1.1.0 1.0.0