INTRO

Personalized pricing, corporate accounts and bidirectional WooCommerce-ERP synchronization

Three Romanian companies in manufacturing and distribution used the SocrateCloud and Pluriva ERP systems to manage customers, products, inventory, pricing, and commercial rules. Their websites were built in WordPress, while expanding the digital sales channel required a B2B portal connected directly to the ERP.

A B2B store could not operate with the same pricing and commercial terms for every user. Each customer company had to be correctly identified and matched with the commercial conditions defined in the ERP - on product pages, in search results, in recommended-product sections, when selecting product variations and, finally, when placing an order.

OPTI designed and implemented an integration layer between the ERP and WooCommerce, allowing the ERP to remain the source of commercial rules while the website became a self-service portal for business customers.

The objective was to keep the ERP as the single source of truth while providing a simple and fast ordering experience for B2B customers.


WooCommerce
B2B eCommerce Portals Integrated with SocrateCloud and Pluriva

CHALLENGES

The B2B eCommerce portal had to preserve the ERP's commercial logic at every stage of the online customer experience.

  1. Personalized prices and discounts across all screens
    • The customer-specific price had to be displayed consistently in categories and product listings, search results, recommended and related products, product pages, cart and checkout.
  2. Variable products without page reload
    • The correct price had to be displayed immediately after selecting a variation, without refreshing the page, while preserving WooCommerce's fast standard behavior, and without a price calculated for one commercial price list being reused from cache for another customer.
  3. One customer company, multiple identities in the ERP
    • The integration had to recognize all related company identities and apply the special pricing associated with the entire customer group.
  4. Bidirectional synchronization without duplicates
    • A customer marked as eligible in the ERP and associated with an email address had to automatically receive an online store account, a new company registered through the website had to be created in the ERP, and the company's VAT ID had to be validated in real time during registration.
  5. Control over products, inventory and pricing
    • Synchronization of customers, prices, products and stock had to run manually or automatically via cron, and products priced in EUR had to be converted into RON using the daily National Bank of Romania exchange rate, with the option of a manual rate.
Daniel Curculescu
"In B2B, the challenge is not only synchronizing products. Pricing, company identity, and commercial rules must remain consistent at every point of the customer experience: catalog, product page, cart, order, and customer communications."
Daniel Curculescu, Data Engineer

SOLUTION

OPTI implemented custom B2B WooCommerce extensions and an integration layer adapted to each client's ERP environment.

The solution separated three essential responsibilities: company identity, commercial rules, and data synchronization.

  1. Automatic activation of B2B customers

    • Eligible customers can be marked in the ERP through a dedicated indicator. The integration automatically creates the WordPress user, associates it with the corresponding ERP company, stores the ERP identifiers and associated commercial price list, and activates access to B2B pricing. The website registration form creates both the WooCommerce account and the corresponding company record in the ERP.
  2. Prices and discounts retrieved from the ERP

    • The pricing engine identifies the authenticated user, the associated company, and its price list, then applies the correct value on product pages, categories, search, recommendations, simple and variable products, cart, and checkout.
  3. Company recognition by VAT ID

    • If several ERP records share the same VAT ID, the system groups the associated names and treats them as part of the same commercial entity. This allows a customer to receive the correct special pricing even when separate offices or operational locations are stored as different records in the ERP.
    Code: recognizing a customer company under multiple names associated with the same VAT ID
    The function that groups the names associated with the same VAT ID to apply the correct special pricing.
  4. Correct pricing for variable products

    • A customer should never see another customer's price, even temporarily. For this reason, the WooCommerce cache is also differentiated by commercial price list, preventing prices calculated for one customer from being reused for another.
    Code: differentiating the price cache by commercial price list for variable products
    The variation price cache is differentiated by the customer's commercial price list, without a page reload.
  5. Bidirectional synchronization and run control

    • Customers, prices, products, and stock synchronize both from the ERP to the website and from the website to the ERP, manually or automatically via cron. For products priced in EUR, conversion to RON uses the daily National Bank of Romania exchange rate, with a manual rate option and configurable update frequency.

This case study shows that a B2B portal only works correctly when the ERP remains the single source of truth for pricing, stock, and commercial rules, while WooCommerce becomes a synchronized self-service interface rather than a parallel data system.

ARCHITECTURE

The integration built by OPTI keeps commercial data in the systems where it is already managed and exposes to WooCommerce only the information required for the B2B purchasing experience.

The ERP remains the source of truth for customers, prices, products, and stock, while the integration layer translates that data to WooCommerce and synchronizes it back to the ERP whenever customers order or register online.

Architecture: data flow between the ERP, the OPTI integration layer, and the WooCommerce B2B portal
The ERP remains the source of truth, the OPTI integration layer applies the commercial rules, and WooCommerce delivers the online experience.

RESULTS

B2B PORTALS LAUNCHED WITHOUT DOWNTIME, ACROSS THREE COMPANIES

5,000+ B2B customers synchronized

Customers are synchronized between the ERP and the portal together with their identifiers and associated commercial terms.

Automatic activation of new customers

For new B2B customers, the website forms create both the online account and the corresponding company in the ERP.

1,000+ B2B orders / month

Orders use customer-specific pricing and populate the corresponding ERP data model.

On-demand currency rates

Administrators control the update frequency and can use a manual exchange rate whenever required.

Full control over sync

The team can synchronize customers, prices, products, and stock independently.

Launch without downtime

All B2B portals were launched without downtime and without affecting existing B2C orders.


Interested?

A similar B2B portal, integrated with your ERP, can be delivered in a few months of work. Let's talk.

TECHNOLOGIES AND METHODOLOGY

  • Services: business analysis, ERP-eCommerce integration, WooCommerce extension development, backend development, data synchronization, QA, controlled rollout and support.
  • Tech: WordPress, WooCommerce, PHP, MySQL, REST/API integration, cron, SocrateCloud / Pluriva, bank exchange-rate integration.
  • Methodologies: business-rule mapping, defining a single source of truth for each type of information, incremental implementation, B2B test matrix, regression testing, cache-isolation testing, controlled rollout.
  • Standards: ISO 9001 (quality), ISO 27001 (information security).

References

Quick Questions

What is a B2B eCommerce portal integrated with an ERP?

It is an online store (WooCommerce) that displays pricing, stock, and commercial rules identical to those in the ERP, for every authenticated business customer.

Why can't all B2B customers see the same prices?

Each customer company has its own negotiated price list and discounts in the ERP, which must be reflected identically in the store, on product pages, search, recommendations, and checkout.

How are companies with multiple ERP records recognized?

The system groups records by VAT ID and treats all related identities as part of the same commercial entity, applying the same special pricing.

How does bidirectional synchronization between the website and the ERP work?

A customer marked as eligible in the ERP automatically receives an account on the website, and a new company registered on the website is automatically created in the ERP, with real-time VAT ID validation.

Was the existing ERP (SocrateCloud / Pluriva) replaced?

No. The ERP remained the source of truth for pricing, stock, and commercial rules; WooCommerce became only the self-service interface for customers.

What results were achieved after implementation?

Over 5,000 B2B customers synchronized and over 1,000 B2B orders per month, with a launch free of downtime and no impact on existing B2C orders.

What is the TLDR (conclusion)?

This case study shows that a B2B portal only works correctly when the ERP remains the single source of truth for pricing, stock, and commercial rules, while WooCommerce becomes a synchronized self-service interface rather than a parallel data system.

What technologies and methodologies are involved?

Technologies: WordPress, WooCommerce, PHP, MySQL, SocrateCloud, Pluriva, REST API, cron, National Bank of Romania exchange rate
Methodologies: Business analysis, ERP-eCommerce integration, WooCommerce extension development, data synchronization, regression testing, controlled rollout

Daniel Curculescu

Article written by

Daniel Curculescu

Data Engineer (Google Cloud Certified Professional). CRM Automation, AI, mobile.

See on LinkedIn →

Read more

Interested?

Interested?

Let's talk

Similar stories


Case Study: HubSpot Integration for Sports Ticketing (100,000+ Tickets)
14.08.2026
NEW
Case Study: HubSpot Integration for Sports Ticketing (100,000+ Tickets)
How OPTI integrated the vivenu ticketing platform with HubSpot for a professional basketball club, consolidating over 100,000 tickets and building a 360° fan profile.
Case Study: Implementing schema.org / JSON-LD for GEO (AI Search) in B2B and eCommerce
31.03.2026
Case Study: Implementing schema.org / JSON-LD for GEO (AI Search) in B2B and eCommerce
Case Study: How we built reusable semantic graphs for three websites (B2B and e-commerce) using server-side schema.org / JSON-LD, achieving more stable indexing, ~70% GSC click growth, and the first AI Overviews.
Case Study: Price Intelligence - Monitoring Prices and Stock with Google Cloud and AI
14.07.2026
Case Study: Price and Stock Monitoring - A Price Intelligence Application for Thousands of Products
How we transformed commercial data from 20 sources into a unified catalog featuring history, alerts, dashboards, and conversational analysis.

News and Guides

More News