commerce icon indicating copy to clipboard operation
commerce copied to clipboard

[5.x]: Product title no longer included in variant element selector

Open mcjackson18 opened this issue 3 months ago • 3 comments

What happened?

Description

After upgrading a site to Commerce 5 the variant element select field no longer includes the name of the product, it only displays the variant title. This can be confusing if there are multiple variants with the same title.

Here's an old PR referencing the same issue in Commerce 3 - https://github.com/craftcms/commerce/issues/333

Steps to reproduce

  1. Create a new discount and select Product Variants under the "Matching Items" tab.

Expected behavior

Both the product title and variant title displayed in the selected Product Variants.

Actual behavior

Only the variant title is displayed.

Image

Craft CMS version

Craft Pro 5.8.17

Craft Commerce version

5.4.6

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

mcjackson18 avatar Oct 30 '25 15:10 mcjackson18

COM-491

linear[bot] avatar Oct 30 '25 15:10 linear[bot]

Thanks for reporting this - we will look into a solution!

lukeholder avatar Nov 12 '25 13:11 lukeholder

We had a PR in #4178 but decided to not include it in Commerce 5.5 - we will instead look to support a UI label format for variants in the product type settings (like entry types in 5.9) in the near future. Stay tuned.

lukeholder avatar Dec 02 '25 07:12 lukeholder