Skip to content

Saleor App: Cannot select product when store uses multi-channel #2793

@SudoCat

Description

@SudoCat

Describe the bug
When installing the Saleor app, and connecting it to a store with more than one channel, product lookups fail. The request returns the error: "More than one channel exists. Specify which channel to use."

To Reproduce
Steps to reproduce the behavior:

  1. Create a content type named "product"
  2. Add a short text field named "saleor product" to content type "product"
  3. Install Saleor app from marketplace
  4. Set the store API URL field to https://demo.saleor.io/graphql/
  5. In the section labelled Assign to fields, tick the checkbox for the short text field "saleor product" on content type "product"
  6. Navigate to the Content section, and create a new "product"
  7. Click the button labelled "select a product" next to the "saleor product" field
  8. See the error message "There was an error fetching the product list."

Expected behavior
At a bare minimum, a default channel should be used. This could be specified via the Configuration page.
Preferably, you should be able to either:

  • assign a channel to a locale for multi-channel multi-lingual sites
  • select a channel when searching for products

Screenshots
image
image

Desktop:

  • OS: OSX
  • Browser: Firefox
  • Version: Latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions