| 开发者 | wpcentrics |
|---|---|
| 更新时间 | 2026年3月24日 08:05 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
On the admin side, go to WooCommerce > Coming Soon Badges
The plugin doesn’t do this yet. There are two ways in WooCommerce to prevent a product from being purchased:
Open a product for editing and activate the checkbox labeled "Show Coming Soon badge", located just below the publication date. Then save the product.
We can’t be 100% sure, but the plugin was coded following the standard WooCommerce template system and should work well with any theme. In any case, it was designed carefully to ensure it doesn’t break the layout if it isn’t fully compatible. Please write to us on the support forum to let us know whether the plugin works well with your theme or not. Your feedback will help us and other users, and we will try to make it work for you if it doesn’t.
Coming Soon for WooCommerce works with the actions found in the standard product loop and single product templates. The used actions to print the badge code are: For single product: do_action( 'woocommerce_before_template_part' ); For product loop: do_action( 'woocommerce_shop_loop_item_title' ); You can find this actions in the templates: wp-content/plugins/woocommerce/templates/single-product.php (single product template) wp-content/plugins/woocommerce/templates/content-product.php (print each product on loop) ...if you want to override these files in your WooCommerce child theme, or if you’re coding a theme from scratch, you may have the same file names in your theme folder: wp-content/themes/your-theme/woocommerce/content-product.php wp-content/themes/your-theme/woocommerce/single-product.php in this case, simply check you've this actions on your code: For single product: do_action( 'woocommerce_after_main_content' ); For product loop: do_action( 'woocommerce_shop_loop_item_title' ); ...and Coming Soon for WooCommerce will do the rest :)
First, ensure you're logged as admin, otherwise the plugin will not show any information. Then add this parameter to the end of any page URL: ?coming-soon-wc=1 In this way: www.mywebsite.com/?coming-soon-wc=1 Look into the code for: log info
The plugin can't guess your theme font-family or product thumbnail size, so maybe you should adjust a bit the text and badge size.