Problem/Motivation

The stock manager currently return the first stock service it references.
we should create a configuration interface and class that will determine this.
The one to be shipped with commerce will allow configuration by product type.

Remaining tasks

Create interface and class implementing a Default stock service.
Update the config class to have a by product type service - moved to #2715913: Allow for selecting a stock service by entity bundle
config form

Comments

guy_schneerson created an issue. See original summary.

  • guy_schneerson committed 32c0a24 on 8.x-1.x
    Issue #2714471: Stock Manager configuration with default configuration...
guy_schneerson’s picture

Issue summary: View changes
Status: Active » Needs work

I have implemented the interface and class. currently only one service can be used but later on we will look at adding a select service by product variation type.
The default service id is set for local stock and if that's not installed it will use the first one assigned and that will be the always in stock service.

  • guy_schneerson committed 3217556 on 8.x-1.x
    Issue #2714471: Stock Manager configuration - add config form
    
guy_schneerson’s picture

Issue summary: View changes
guy_schneerson’s picture

Issue summary: View changes
Status: Needs work » Fixed

I have moved the "Update the config class to have a by product type service" to a low priority feature request #2715913: Allow for selecting a stock service by entity bundle as it is far for needed for the first version of the module.

Status: Fixed » Closed (fixed)

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