Linux 软件免费装
Banner图

WRN Pricing Rules for WooCommerce

开发者 yariko0529
webreadynow
更新时间 2026年6月26日 03:59
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce price list b2b wholesale role-based pricing

下载

1.0.7 1.0.6 1.0.1 1.0.2 1.0.3 1.0.8 1.0.4 1.0.5 1.1.0 1.2.3

详情介绍:

WRN Pricing Rules gives you full control over who pays what in your WooCommerce store. Instead of applying a single sale price to everyone, you create named price lists and assign each one to a user role. Any customer who logs in with that role automatically sees the prices from their list — no shortcodes, no visible price switchers. How it works
  1. Create a price list — give it a name and choose how prices are set.
  2. Assign user roles to the list (e.g. "Wholesale Buyer", "VIP Member").
  3. Done. Logged-in users with those roles see your custom prices everywhere in the store: product pages, shop archive, cart, checkout, and order emails.
Two ways to set prices Key features Free vs Pro | Feature | Description | Free | Pro | |---|---|:---:|:---:| | Role-based price lists | Assign different prices to wholesale, VIP, retail, or any custom user role | ✅ | ✅ | | Formula pricing | Set prices as % off, fixed amount off, or % of base price — applies to all products automatically | ✅ | ✅ | | Inline price editor & CSV import/export | Edit product prices directly in the admin table or bulk-manage via spreadsheet | ✅ | ✅ | | Strikethrough pricing | Show the original price crossed out next to the list price in cart, minicart, and checkout | ✅ | ✅ | | Hide prices for guests | Replace prices with a login prompt for non-logged-in visitors | ✅ | ✅ | | Variable product support | Price rules apply correctly to all variations, with per-variation badge display | ✅ | ✅ | | Discount rules engine | Layer percent or fixed discounts on top of price lists — by role, product, category, or cart total | — | ✅ | | Scheduled promotions | Set start and end dates for flash sales; prices revert automatically when the window closes | — | ✅ | | Quantity tier pricing | "Buy 10+ get 15% off" — define quantity breaks that stack with your price lists | — | ✅ | | Per-customer pricing | Assign a specific price list to individual customers with optional expiry dates and email reminders | — | ✅ | | Cart savings breakdown | Show a "You save" row in cart and checkout totals so customers see their discount clearly | — | ✅ | | Pricing inspector | Admin-bar panel that shows exactly which list, rules, and tiers produced a price — debug in seconds | — | ✅ | Upgrade to Pro → Developer hooks Filters: wrn_plm_feature_available, wrn_plm_feature_value, wrn_plm_rule_types, wrn_plm_apply_custom_rule WooCommerce price hooks used (all at priority 20): woocommerce_product_get_price, woocommerce_product_get_regular_price, woocommerce_product_get_sale_price, woocommerce_product_variation_get_price, woocommerce_product_variation_get_regular_price, woocommerce_product_variation_get_sale_price, woocommerce_variation_prices, woocommerce_get_variation_prices_hash

安装:

  1. Upload the plugin folder to /wp-content/plugins/ or install via Plugins > Add New.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to WRN Pricing Rules in the WordPress admin sidebar.
  4. The Overview tab explains the three steps. Start by clicking Price Lists.
Requirements

屏幕截图:

  • Price Lists tab — create or edit a list with the radio-based form. Choose automatic rule or manual prices, then tick the roles that should see this list.
  • Products tab — inline price editor with DataTables search and pagination. Rule prices show a yellow "rule" badge; overrides show a green checkmark.
  • Settings tab — hide prices from guests, set a custom message, and export/import prices via CSV.

升级注意事项:

1.2.3 Fixes a bug where expired or scheduled price lists could leak WooCommerce sale prices when using the "regular" price base setting. Also adds date validation and status badges to the Price Lists sidebar. 1.1.0 Major update. The Roles tab has been removed — assign roles directly in the Price Lists form. All existing role assignments and price data are preserved automatically. Requires WooCommerce 7.0+ and PHP 7.4+.

常见问题:

Does this work with variable products?

Yes. Both individual variation prices and the price range displayed on the shop page (e.g. "$10 – $50") reflect your list prices.

Can a user be in more than one price list?

No. Each role is assigned to exactly one price list. Roles without a custom list fall back to the Default WooCommerce prices.

What happens to guest visitors?

Guests always see the Default WooCommerce prices unless you enable "Hide prices from guests" in the Settings tab, which replaces all prices with a custom message and disables Add to Cart.

Can I still run WooCommerce sale prices alongside list prices?

Yes. On automatic rule lists, the plugin applies your rule to both the regular price and the sale price. On manual lists, you enter both a regular price and an optional sale price per product.

What is a "per-product override" on a rule list?

When a list uses an automatic rule, every product's price is calculated on the fly. If you need a specific product to have a different price, click the price cell in the Products tab and enter a value. That stored value takes priority over the rule. Set it back to 0 to remove the override and return to the rule-calculated price.

Can I seed a new list from an existing list?

Yes. When creating a manual price list you can select any existing list as a starting point and apply a percentage factor (e.g. 80% of your wholesale prices). This is a one-time copy — the lists are independent after that.

Will this slow down my store?

The plugin performs one database query per page load to look up the current user's assigned list, then caches the result in memory for the rest of the request. There are no extra queries per product.

Is the plugin compatible with WooCommerce HPOS?

Yes. The plugin explicitly declares compatibility with WooCommerce High-Performance Order Storage (custom order tables).

更新日志:

1.2.3 1.2.2 1.2.1 1.2.0 1.1.1 1.1.0 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.0