Explore Magic WP

What are you looking for?

Search services, articles, projects and more.

Popular searches
Website platforms
Searches every page and article↑ ↓ Browse Enter Open Esc Close
WooCommerce

How to Create Customer-Specific Pricing in WooCommerce

Design WooCommerce contract pricing with explicit precedence, account identity, quantity rules and consistent cart totals. Includes a sample pricing decision table.

One product connected to several customer accounts with different price tags.

At a glance

  • Define which price wins when contract, group, sale and coupon rules overlap.
  • Calculate the actual price server-side and test variations and cart changes.
  • Protect account-specific prices from shared caches and preserve order history.

Customer-specific WooCommerce pricing needs a clear rule for identifying the buyer and calculating the amount they should pay. A personalised label is only part of the feature. The same commercial rule must produce the product price, cart totals and saved order values.

Decide what identifies the customer

A contract may belong to an individual user, a company account or a customer group. Establish that identity before building the price table. If several employees order for one company, decide how they join the account and who can manage their access.

Do not let an unapproved registration choose a privileged pricing group. Account approval and pricing assignment should follow an authorised workflow, with a record of important changes.

Make price precedence explicit

Define which rule wins when several match. Specify effective dates, currency, quantity thresholds, variations and whether coupons combine with a contract price. Avoid allowing the implementation’s execution order to decide a commercial policy by accident.

For a hypothetical supplier, the rules might be:

Matching condition Example decision
Active product-specific company contract Use that contract price
No company contract, approved wholesale group Use the group rule
Neither contract nor group rule Use the normal product price
Coupon presented Apply only if the contract policy allows it

These are illustrative choices. Another supplier may need a completely different policy, including quantity tiers or separate rules for sale items.

Choose an extension or a custom pricing module

A suitable existing extension may cover ordinary role-based or account-based rules. Compare its documented precedence and product support against your requirements. If an ERP supplies contracts or the rules are unusually specific, a focused custom module may be needed.

Keep data access and changes within supported WooCommerce APIs. Its CRUD objects provide an abstraction for reading and changing commerce data, helping avoid assumptions about internal storage.

Calculate rather than decorate

Use trusted server-side account information when determining the actual price. The browser should not submit its own authoritative contract price. Check every entry path, including add-to-cart requests, saved carts and any custom ordering interface.

Variations deserve particular attention: each may have its own contract price, while the parent product displays a range. Ensure the range reflects the buyer’s available options rather than a retail value left behind by another calculation.

Example: a contract changes after items enter the cart

Imagine a buyer adds an item before their contract expires and returns the following week. Decide whether the cart recalculates using the current agreement or preserves a time-limited offer. Communicate the result rather than silently changing the commercial terms at the last step.

Existing orders should retain their agreed line values. A later catalog price update should not rewrite completed order history. Refunds and staff-created orders also need an explicit policy.

Test identity and caching boundaries

Use two accounts with different prices, an unapproved applicant and a logged-out visitor. Test login, logout, changed roles, quantities, discounts and checkout. Check shared caches so one company’s response cannot be reused for another.

For implementation, explore e-commerce solutions and custom plugin development. If prices originate elsewhere, include integration work in the scope.

Frequently asked questions

Is changing the displayed product price enough?

No. The price charged in the cart and stored on the order must follow the same rule. Test variations, quantities, coupons and account changes as well as the product page.

Should negotiated prices be stored by user or company?

Use the entity named in the commercial agreement. If several employees buy for one company, a shared company-account model may be more appropriate than separate prices tied to individual logins.

How we can help

Explore the services related to this guide.

E-commerce Solutions →Custom Plugins →Integration Solutions →
← Back to all articles