craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
215 stars 169 forks source link

[5.x]: Can't create product without variant #3524

Closed grasmachien closed 1 month ago

grasmachien commented 1 month ago

What happened?

Description

Since our client does not need variants they don't understand the interface to manage the products. In Commerce 4 I was able to create a product without variants. How can I enable this feature again in Commerce 5? It was super easy to have all info in the details panel of the product page instead having to open the variant that does not actually exist at the bottom of the page.

Steps to reproduce

  1. Go to the product type you want to edit
  2. Set Max Variants to 0 => this gives no errors but does not save the value
  3. Set Max Variants to 1 => this saves correctly
  4. The products still show the layout for variants and I even see the button to add more variants even though I have set it to a maximum of 1 when there already is 1 variant.

Expected behavior

There should only be 1 variant possible and the layout should be made easier in this case.

Actual behavior

The user is super confused why he needs open another sidebar to edit the most crucial information of this product while it was accessible in the details panel in Commerce 4.

Craft CMS version

5.1.7

Craft Commerce version

5.0.7

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

linear[bot] commented 1 month ago

PT-1772 [5.x]: Can't create product without variant