Linux 软件免费装
Banner图

Mad Cow Product Badges for WooCommerce

开发者 jrobie23
更新时间 2026年10月6日 04:27
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce badges product labels sale badge product badges

下载

1.0.3

详情介绍:

Add badges over your product images in the shop loop and on single product pages. Each badge can be plain text or an uploaded image, styled how you like, and shown only on the products you choose. Here is a quick overview: [youtube https://www.youtube.com/watch?v=Za4-uz0nwS4] Badge types Where a badge appears Each badge carries its own condition: Styling Other Requirements WooCommerce 7.0 or later must be installed and active.

安装:

  1. Upload the mad-cow-product-badges-for-woocommerce folder to /wp-content/plugins/, or install through the Plugins screen.
  2. Activate the plugin through the Plugins screen.
  3. Go to WooCommerce > MCW Product Badges to add your first badge.

屏幕截图:

  • An image badge, with its size, border, position and display condition.
  • Badges in the shop loop. WooCommerce's own "Sale!" flash still shows on sale products that are not badged.

升级注意事项:

1.0.1 Updates now come from WordPress.org. Corrects the plugin description and fixes the text domain so translations load.

常见问题:

Can I show more than one badge on the same product?

Yes. Every badge is evaluated independently, so a product can carry several at once. Give them different corner positions so they do not overlap.

Will this clash with WooCommerce's own "Sale!" badge?

Only if you want it to. The Default Sale Badge setting has three options: always show WooCommerce's flash, hide it everywhere, or hide it only on products where one of your badges is showing. The last option is usually what you want, since it leaves the built-in flash doing its job on products you have not badged.

Do badges appear on the shop page as well as the product page?

Yes, both. They render in the shop and archive loops and on single product pages.

How is "New" decided?

By the product's publish date, against a number of days you set on the badge. A product published inside that window gets the badge.

Can I style a badge beyond the built-in options?

Yes. Add your own CSS class to the badge and target it from your theme stylesheet.

Is there a filter for developers?

Two. mcwspb_should_show_badge decides whether a badge displays, and mcwspb_badge_html filters the markup before output.

更新日志:

1.0.3 1.0.2 1.0.1 1.0.0