B2Bsellers Suite
API Referenceswww.b2b-sellers.comPublic demoshopRoadmap
Beta < 0.9.X
Beta < 0.9.X
  • Home
  • Products & Configuration
    • Plans & Plugin Concept
    • Demoshops
    • B2Bseller Suite - CORE Plugin
      • CORE-Plugin Configuration
      • B2B Flow/Business Events
      • B2B Rules
      • B2B Body Classes
      • B2bContextTrait
      • B2bPlatformContext
      • Registration process
      • UseCustomer URL Parameter
      • How to add „Menü Item“ on B2BPlattform
      • EmployeePermissionTrait
      • Express checkout setup
    • B2Bseller Suite - 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,EDI,Ariba, Punchout)
      • Register Requests
      • Order lists
      • Bonus program
      • Product Request
      • URL Authentication
      • Cost centers
      • Training or e-learning - event articles with attendee registration
    • B2Bsellers Suite - Connectors
      • Import Customers and Employees from an external REST-API OR CSV
      • Import Orders from an external REST-API (ERP)
      • Import Customer Prices from an external REST-API
      • POST Register Request to an external REST-API
    • Third Party Extensions
      • Parent products in the listing
  • Guides
    • Setup
      • Installation
      • Requirements
      • Dockware Setup (Docker)
      • Use Test-Customers
      • Cronjobs
      • CLI-Commands
      • How to start the b2b-platform vue.js watcher
    • Developer Onboarding
      • Development Helpers
    • Own Extensions
      • Concept of Extensions
      • How to develop your own extensions
      • How to extend the b2b platform
      • Example Plugins
    • Migration
    • Tips for Deployment / Continuous Integration
    • Performance
    • Guides for ERP-Interface
      • Overview - Full integrated ERP-Systems
      • Integration of ERP orders to Shopware 6
      • Integration Customers and Employees from ERP
  • Ressources
    • Usable Components
      • Vue.js - B2B Platform
      • Storefront
    • E-Mail Templates
    • FAQs
    • Support
  • API-References
    • Database Schema
    • 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
    • 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
    • Admin API
      • Order Import Endpoint
  • Release Notes
    • B2BsellersCore
      • Version v0.9.6
      • Version v0.9.5
      • Version v0.9.4
      • Version v0.9.3
      • Version v0.9.2
      • Version v0.9.1
    • B2BOffer (Archived)
      • Version v0.9.1
Powered by GitBook
On this page
  • B2bSellersCore
  • B2B-Platform Build-Command (Vue.Js)
  • Entity-Mapping Command
  • Migrate existing customers to B2B-customers & create first employee for all available b2b-customers
  • Reinstall Custom Fields
  • Rebuild the B2B Platform Menu
  • Create Test-Data
  • B2bProductSubscriptions

Was this helpful?

  1. Guides
  2. Setup

CLI-Commands

all available command are listed over bin/console and prefix b2b:

you can use following CLI Commands:

B2bSellersCore

B2B-Platform Build-Command (Vue.Js)

Following command build the Vue.js b2b-platform and make it available for production use.

bin/console b2b:platform:build

Entity-Mapping Command

E.g. at the customer prices, it is possible to fill customer prices with customer numbers and product numbers instead of UUIDs. Following command fill the necessary UUIDs for product UUIDand customer UUIDif the product or customer is available.

bin/console b2b:entity:map

we recommend this as cronjob every 1 or 5 minutes

Migrate existing customers to B2B-customers & create first employee for all available b2b-customers

If you setup our B2Bsellers to an existing shopware 6 shop, you might want all customers to be created directly as employees, so that the login remains and they are forwarded directly to the B2B platform. Then the following commands makes sense for you. Please check on a local environment which command makes sense.

// work through for migrating a normal shopware customer to a b2bplatform customer by filters and options.
bin/console b2b:migrate:customers

// create first employee (same data as customer) for all shopware-customers with custom field "b2b_platform_access" == true
bin/console b2b:create:first-employee-for-customer

// This command deletes all employees for the customers and resets all b2b custom fields for all customers
bin/console b2b:reset:customer

Reinstall Custom Fields

// Installs the CustomFields for Sales Representatives, Customers, Orders, ..
bin/console b2b:migrate:custom-fields

Rebuild the B2B Platform Menu

If you want to reset the B2B platform menu to the default, you can do this with this CLI command.

bin/console b2b:platform-menu:rebuild

Create Test-Data

Currently, it creates only customer and employee test-user, but further, we want to create test products for each function

b2b:create:test-data

please ensure, that your mail client is disabled.

B2bProductSubscriptions

Following command checks whether there are subscriptions for which an order must be triggered.

bin/console b2b:product-subscription:order

Last updated 2 years ago

Was this helpful?

Use Test-Customers