Add help text to min and max order quantity fields

Created on 24 June 2025, 11 days ago

Problem/Motivation

With the addition of Entity traits don't show descriptions in their entity form fields. Active in Commerce Core, it is now possible to provide help text on fields added by traits.
We should show help text to indicate to the site content editors that if the min and max fields are left blank, then the order quantity will not be limited.

Steps to reproduce

Proposed resolution

Add a call to BundleFieldDefinition::setDescription() in the ::buildFieldDefinitions() method of the respective traits.
e.g.

      // .......
      $fields['maximum_order_quantity'] = BundleFieldDefinition::create('integer')
        ->setLabel(t('Maximum quantity per order'))
        ->setDescription(t('Leave blank for unlimited maximum quantity.'))
      // ......

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

User interface

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024