You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a product type with max variant of 1. When I add or edit a product, I can still add as much variants as I want. Doesn't matter if I change the number. It will always be ignored.
Steps to reproduce
Having a product type with max. Variant value
Create a product and add variants
Expected behavior
When reaching the max. variant number, users shouldn't be able to add further variants.
Craft CMS version
5.5.9
Craft Commerce version
5.2.11
PHP version
8.2
Operating system and version
Linux 6.5.0-15-generic
Database type and version
MySQL 8.0.36
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered:
Update: It seems on save there is a validation. So that's fine. But I want to prevent users from being able to create another variant at all. For example, the button is disabled when reaching the maximum variant number.
What happened?
Description
I have a product type with max variant of 1. When I add or edit a product, I can still add as much variants as I want. Doesn't matter if I change the number. It will always be ignored.
Steps to reproduce
Expected behavior
When reaching the max. variant number, users shouldn't be able to add further variants.
Craft CMS version
5.5.9
Craft Commerce version
5.2.11
PHP version
8.2
Operating system and version
Linux 6.5.0-15-generic
Database type and version
MySQL 8.0.36
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: