After translating products, some views show numerous instances of the same product

Created on 8 August 2023, about 1 year ago
Updated 12 March 2024, 7 months ago

Describe your bug or feature request.

When you have multiple languages enabled, after translating products, some views will show numerous instances of the same products.

If a bug, provide steps to reproduce it from a clean install.

On a website that uses commerce and has a few products:

  1. Enable multiple languages
  2. Add a few translations to some of the products
  3. Visit /admin/commerce/products to see that the products translated have multiple instances.
  4. Add a product that has translation to the cart. If you have the cart drop-down enabled, click it and you'll see multiple instances of the same product listed in the drop-down block.

Expected behavior

A product that has translations shouldn't show multiple instances in a view.

What I have tried?

I tried modifying the views by checking "Distinct" under Advanced > Query Options

This didn't solve the issue.

Locally, I deleted the translations and disabled the languages, but I still could see multiple instances of the product, apparently coming from revisions.

πŸ’¬ Support request
Status

Fixed

Version

2.36

Component

Views integration

Created by

πŸ‡ΊπŸ‡ΈUnited States jcmartinez Raleigh, NC, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024