Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

B2B Commerce blocks

Company Credit

Company buyers view credit balances and transaction history through this block. Place it on company credit pages.

Company Credit block.

Company Credit block.

Requirements

Customers must log in to access this block. Enable company features and company credit in Stores > Configuration > General > B2B Features > Enable Company and Stores > Configuration > Customers > Company Configuration > Enable Company Credit.

Configuration

Add this table to your document to configure the block:

commerce-company-credit
Show Historytrue

Property descriptions

Show History: Controls whether to show company credit transaction history (‘true’) or only credit summary information (‘false’). Set to true to enable this feature. Default: true.

Important notes

  • Requires user authentication. Unauthenticated users are automatically redirected to the login page.

Page metadata

Configure page-level metadata in the document authoring table below:

metadata
TitleCompany Credit
Robotsnoindex, nofollow
Cache Controlno-store

Section metadata

Control the section styling, spacing, and layout that wraps your commerce block. All properties are optional:

section-metadata
Stylelight (optional)
Paddingmedium (optional)
Marginsmall (optional)
Column Width30% (optional)
Gapsmall (optional)

Learn more: See the Section Metadata guide for all available values and the Page Metadata guide for SEO and caching options.