Add "Hide if there's only one product variation" also on product variation attributes widget

Created on 19 April 2025, 27 days ago

In my case I've some products with multiple attributes but some else not. For example it can happen that all the variations are out of stock except one.

To make a better user experience I'd like to hide the attribute selector widget.

There is a comment on ProductVariationAttributesWidget.php which says: "If there is 1 variation but there are attribute fields, then the customer should still see the attribute widgets, to know what they're buying (e.g a product only available in the Small size).", but this is not my case because the information about the variation is already available to the user.

I've created a simple patch to add this option.

Feature request
Status

Active

Version

3.0

Component

Product

Created by

🇮🇹Italy finex

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024