| 开发者 |
wpulse
dasnitesh780 chadni54 |
|---|---|
| 更新时间 | 2026年3月25日 13:39 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/, or install directly from WordPress → Plugins → Add New.Yes. Create separate pricing rules — one for your wholesale role (e.g., "Wholesale Customer") and one for standard customers. Each role sees only its own price.
Yes, fully. You can apply pricing rules to all variations or to a specific variation. The pricing table on the product page updates in real time when the customer selects a variation.
Yes. Each rule supports unlimited pricing tiers. You can define as many quantity breakpoints as you need, using either a fixed dollar discount or a percentage discount per tier.
Yes. Each rule has optional Minimum Quantity, Maximum Quantity, and Step Quantity fields. These are enforced on the product page, in the cart, and at checkout.
Yes. Any role registered in WordPress — including those created by WooCommerce Memberships, Paid Memberships Pro, Ultimate Member, or User Role Editor — is automatically available in the role selector.
Yes. Every pricing rule has optional "Active From" and "Active Until" date fields. Rules outside their scheduled window are automatically skipped — no manual toggling needed. Use this for flash sales, seasonal wholesale rates, or limited-time B2B promotions.
Yes. Create a Global rule and enable the "Make it for guest user also" option. Guest users will see those prices and discounts without needing to log in.
Yes. There is a "Show Pricing Table" toggle on every product's Tiered Pricing panel. You can also control the default behavior globally from the Template Options settings.
No. The plugin uses transient caching for reports, pre-warms meta cache to eliminate N+1 queries, and uses bounded database queries to avoid timeouts on large catalogs.
Yes, all frontend strings are fully translatable. The plugin ships with a .pot file and is compatible with WPML, Polylang, and Loco Translate.
Yes. The pricing table templates use minimal HTML/CSS and inherit your theme's base styles. You can also override templates in your child theme.
Please open a support thread in the WordPress.org plugin support forum. We typically respond within 1–2 business days.
wtp-volume-card / wtp-tier-row structure; savings shown as a plain "Save N% / $X off" label; removed "Best" featured-tier badge and progress bar..quantity-badge, .price-unit, and .savings-info cell classes introduced for cleaner markup; table border changed from box-shadow to a solid border with rounded corners.Active From and Active Until date fields; rules outside their scheduled window are automatically excluded everywhere (product page, cart, checkout, quantity validation, discount messages).date_from/date_to were silently stripped by the AJAX sanitize function.WHTPRole_Pricing_Helper::get_rules_for_product().foreach error when rules were stored as a JSON string instead of a decoded array.return after security error in savings calculation handler, allowing code execution to continue after an auth failure.Show savings calculator toggle in Template Options settings — admins can now enable or disable the savings calculator widget per store.wc_get_products(limit: -1) and get_terms calls in global settings with capped queries (limit: 200) to prevent timeouts on large stores.plugins_loaded) for correct WordPress lifecycle behavior.get_wp_user_roles function to prefixed whtprole_get_wp_user_roles to avoid namespace collision with other plugins.find_applicable_tier() and getPrice() methods, stray second class instantiation that caused all hooks to register twice, and commented-out admin_head block.price_type key on cart and checkout page.