Skip to content

Related Products not working with Marketing Rules #28566

@magento-engcom-team

Description

@magento-engcom-team

Queries for Related Products like the one below only return values if the Related Products are added from the Product Settings. However, it is not accounting for Marketing Rules and it returning empty arrays. (Marketing / Related Products Rules) – This is how Related Products are set with Luma stock sample-data.

query ProductQuery {
  product: products(filter: \{ url_key: { eq: "chaz-kangeroo-hoodie" } }, pageSize: 1) {
    items {
      id
      related_products {
         id
         name
         url_key
      }
    }
  }
}

Response:

{
  "data": {
    "product": {
      "items": <
        {
          "id": 70,
          "related_products": []
        }
      >
    }
  }
}

Luma Theme:

!image-2020-06-02-16-10-01-234.png|width=1336,height=761!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedPAPPartners acceleration programPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneProject: GraphQLReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions