Products currently have a single value store_id reference field declared in baseFieldDefinitions.
However, we need an unlimited value “stores” reference field instead, because a product will be able to belong to multiple stores.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbolinovski created an issue. See original summary.

dbolinovski’s picture

dbolinovski’s picture

  • bojanz committed adf096d on 8.x-2.x authored by dbolinovski
    Issue #2547555 by dbolinovski: Allow products to belong to multiple...
bojanz’s picture

Status: Active » Fixed

Committed in https://github.com/commerceguys/commerce/commit/adf096d159989a9c5570420d...

I cleaned up the tests a bit, expanded the test coverage to include getStores(), added a setStoreIds() setter, reworded the docblocks on the interface with rszrama's suggestions.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.