开发者 | tagconcierge |
---|---|
更新时间 | 2025年9月8日 22:54 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
advanced-cogs-profit-for-woocommerce
to the /wp-content/plugins/
directory or install it from the WordPress plugins directory.WooCommerce > Settings > Advanced > COGS & Profit
to configure the settings.The plugin calculates COGS and profit for each order using a flexible rules engine. Instead of manually setting a COGS value for every single product, you can create global rules that apply costs automatically based on conditions you define. This saves you time and ensures consistency.
When creating a rule based on an attribute, you need to specify both the attribute's name and its value in the 'Matching value' field. Use the format attribute_name:attribute_value
. For example, to match a product with a "Color" attribute set to "Blue", you would enter color:blue
.
Yes, all matching for categories, tags, and attributes is case-sensitive. For example, a rule for the category Books
will not match products in a category named books
.