| 开发者 | discgolfshopping |
|---|---|
| 更新时间 | 2025年12月7日 10:33 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
woocommerce_single_product_summary) to display correctly on most themes./wp-content/plugins/out-of-stock-affiliate-redirect directory, or install the plugin through the WordPress plugins screen directly.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.
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.
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.
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.