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
  • 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?

Edit on GitHub
  1. Developer Guides
  2. First Steps

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 customer, employee and product test data:

b2b:test-data:install-plugin // to install the extra shopware plugin

// after install and activate the B2bDemoData Plugin, you can call: 
bin/console b2b:test-data:create // create all test-data
bin/console b2b:test-data:reset -f // delete all 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 1 year ago

Was this helpful?

Use Test-Customers