Drupal is a registered trademark of Dries Buytaert

commerce_field_per_store

3 sites No security coverage
View on drupal.org

The module provides a custom field type that allows to set arbitrary fields per commerce store for commerce product, product variation or any other entity type.

Example Usage

Suppose a product variation might have a feature available for specific stores only, and the feature description can differ between stores. To achieve that, create a new paragraph type and add a feature description text field there. Now add a "Field per store" field to your variation type, and select the new paragraph type as a target entity. You will see a list of checkboxes per store, and when one enabled, the description field will be visible. Check the checkboxes and populate the descriptions as required. When variation is rendered, the value for current store will be displayed.

Installation

Install the module with composer and enable as usual.

Post-Installation

  1. Make sure to create an entity bundle (e.g. paragraph type) to refer to. It should contain all fields you need per store.
  2. Add the field to any entity type.
  3. Set the field to have unlimited cardinality.
  4. Select the target entity type (e.g. paragraphs).
  5. Select a single target entity bundle (if more selected, the first one will be used).
  6. Configure display and view modes as needed (the field has its own widget and formatter).

Activity

Total releases
7
First release
Apr 2025
Latest release
5 months ago
Release cadence
27 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
1.0.0-beta1 Pre-release Sep 16, 2025
1.0.0-alpha5 Pre-release May 2, 2025
1.0.0-alpha4 Pre-release May 1, 2025
1.0.0-alpha3 Pre-release Apr 8, 2025
1.0.0-alpha2 Pre-release Apr 8, 2025
1.0.0-alpha1 Pre-release Apr 8, 2025
1.0.x-dev Dev Apr 8, 2025