B2Bsellers Suite
API Referenceswww.b2b-sellers.comPublic demoshopRoadmap
v1.X.X (Shopware 6.4)
v1.X.X (Shopware 6.4)
  • Home
  • Product Tour
    • Plans & Plugin Concept
    • Public Demoshops
    • Get a personal B2B demo store?
  • User Guide
    • Installation & Setup
      • Installation
      • Requirements
      • Easy activate all Addons and Features
      • Use Test-Customers
      • License Settings
    • Configuration
      • License, purchaseable Addons and Features configuration
      • Configuration of the CORE
        • Express checkout setup
      • How to add „Menü Item“ on B2BPlattform
      • E-Mail Templates
      • B2B Rules
      • B2B Flow/Business Events
      • Customer specific prices
      • Registration process
      • PDP variant list
    • Configuration of purchasable Addons
      • Offer Function for Sales Agents
      • Spare Parts Shop
      • Subscription Article
      • Copper and brass product surcharges
      • Rating groups
      • B2B Platform Theme
      • E-Procurement (OCI-Punchout)
      • E-Procurement (cXML Purchase Order / Ariba)
      • Register Requests (wip)
      • Order lists
      • Bonus program
      • Product Request
      • URL Authentication
      • Cost centers
      • Discount Rate
      • Mobile sales portal (app)
      • Customer-specific assortments
      • Eventmanager (Beta)
      • Employee budgets
      • Order entry for Sales representatives (Beta)
    • Third Party Extensions
      • You want to provide a plugin?
    • Performance
    • FAQs
    • Support
  • Developer Guides
    • First Steps
      • Getting Started
      • Concept of Extensions
      • Dockware Setup (Docker)
      • How to start the b2b-platform vue.js watcher
      • How to build the b2b-platform (vue.js)
      • Protection of the Store-API
      • How to develop your first extensions
      • CLI-Commands
        • Migration of existing Shopware Customers
      • Cronjobs
      • Development Helpers
      • Example Plugins
    • Smart developer helpers
      • B2bPlatformContext
      • B2bContextTrait
      • EmployeePermissionTrait
      • B2B Body Classes
      • UseCustomer URL Parameter
      • Useful Vue.js Components for the B2B Platform
      • Useful Storefront Shopping World Elements
      • How to import external orders and offers?
    • How to's
      • Using B2Bsellers Suite with Shopware frontends
    • Guides for ERP-Interface
      • Overview - Full integrated ERP-Systems
      • Integration of ERP orders to Shopware 6
      • Integration Customers and Employees from ERP
    • Tips for Deployment / Continuous Integration
    • Typical errors
  • API-References
    • Database Schema
    • Entities
      • Custom Fields for existing Shopware Entities
      • Budget
      • BudgetEmployee
      • CollectionAccount
      • CustomerPrice
      • Employee
        • EmployeeCustomer
        • EmployeePermission
        • EmployeeRole
      • CustomerActivity
        • CustomerActivityType
      • Offer
        • OfferAddress
        • OfferCustomer
        • OfferItem
        • OfferStatus
      • ProductSubscription
      • ProductSubscriptionOrder
      • PasswordlessLogin
      • PaymentCondition
      • ProductExplodedView
      • B2bProductList
        • B2bProductListItem
        • B2bProductListType
      • RegisterRequest
        • RegisterRequestStatus
        • RegisterRequestActivity
      • SalesRepresentativeCustomer
    • Store-API
      • Account Request
      • Customer Activity
      • Customer Activity Type
      • Customer Last Orders
      • Customer List
      • Customer Price
      • Customer Sales Ranking
      • Customer Search
      • Delivery Interval
      • Delete Product Subscription
      • Document
      • Employee
      • Employee Permission
      • Employee Role
      • Employee Order
      • Event Product
      • Login Target List
      • Offer Document
      • Offer
      • Offer Mail
      • Offer Order
      • Offer Status
      • Ordered Products
      • Payment Condition
      • Platform Cms
      • Product List
      • Product Table Listing
      • Product Subscription
      • Product Subscription List
      • Sales Statistic
      • Snippet
    • Admin API
      • General Admin-API Info
      • Order Import Endpoint
      • Order Extension
  • Release Notes
    • B2BsellersCore
      • Version v1.1.4 - security update
      • Version v1.1.3
      • Version v1.1.2
      • Version v1.1.1
      • Version v1.1.0
      • Version v1.0.4
      • Version v1.0.3
      • Version v1.0.2
      • Version v1.0.1 - Hotfix
      • Version v1.0.0
      • Version v0.9.6
      • Version v0.9.5
      • Version v0.9.4
      • Version v0.9.3
      • Version v0.9.2
      • Version v0.9.1
Powered by GitBook
On this page
  • Adding customer specific prices
  • via Shopware Admin
  • via API
  • Create customer specific prices without UUID's (Product and Customer)
  • Special features
  • The customer individual price overwrites all other calculated prices
  • Graduated prices in connection with customer-specific prices
  • Performance / big data with customized prices
  • Time-based validity of customer-specific prices
  • How are customer-specific prices displayed in the storefront?

Was this helpful?

Edit on GitHub
  1. User Guide
  2. Configuration

Customer specific prices

Last updated 2 years ago

Was this helpful?

Adding customer specific prices

via Shopware Admin

You can easily provide new custom prices manually via Shopware admin area.

via API

You can easily create new custom prices via Shopware Admin API (Shopware Standard).

Or ... just use the "admin-api/sync-api" of shopware for batch-process.

Entity: b2b_customer_price

Create customer specific prices without UUID's (Product and Customer)

We know that a lot of ERP vendors or interface providers still provide data using traditional methods. For example, also via an SQL insert. For this reason we have provided you with two optional fields: customer_number and product_number.

You can fill these two fields and leave the customer_id + product_id fields (which require a UUID) blank.

Then you can use our provided command to convert customer_number's and product_number's to uuids.

// command
php bin/console b2b:entity:map

You can also fill the customer_id and product_id directly if you have the data available.

Special features

The customer individual price overwrites all other calculated prices

You should know that if a customer individual price is stored, this is drawn last and is therefore the last level of the price calculation. Even if you have stored a customer discount rate (addon), this is not taken into account and overwritten by the customer-specific price.

Graduated prices in connection with customer-specific prices

A big advantage of our custom prices is the possibility of full scale pricing, even in combination with Shopware standard prices. Thus, even such a configuration is possible:

  • 1-5 pieces - Shopware calculated price via extended prices

  • 6-15 pieces - customer individual price

  • 16-30 pieces - Shopware calculated price via extended prices

  • from 31 pieces - ccustomer individual price

This graduated price calculation is a key advantage over other suppliers

Performance / big data with customized prices

Basically, all sizes of customer individual prices can be covered! In our Highlast-Demoshop more than 3 million customer individual prices are maintained. Our approach in the background is designed for large amounts of data.

Time-based validity of customer-specific prices

You can specify a validity of individual customer prices. Period of validity from/until. This means that a custom price is valid only in this period.

Attention, you have to set in B2Bsellers Suite -> CORE plugin configuration that the validity period should be respected. (This setting is necessary for performance reasons)

Use the following command to remove the prices that are no longer valid from the database:

php bin/console b2b:clean:expired-customer-prices --force

How are customer-specific prices displayed in the storefront?

Example: Customer individual price of piece 1 to X

Since there is only one price here, the complete price is exceeded and a label is added so that the customer knows that this is a special arrangement.

Special case when discount rate and customer-specific prices are available for a product

Endpoint: POST json

Here you'll find more informations about the sync-api (bulk / batch payload)

More information:

https://your-domain.com/api/b2b-customer-price
https://docs.b2b-sellers.com/b2b-platform/api-references/admin-api/general-admin-api-info#bulk-payloads
https://docs.b2b-sellers.com/b2b-platform/developer-guides/first-steps/cli-commands#entity-mapping-command
Add Customer specific prices via shopware admin