Min and max quantity required in service api

Vote:
 

In Commerce the MinQuantity and MaxQuantity are nullable decimals. In carts there is also a check if on if a value is null, to see if the item can be ordered.

When creating a variant through the service api, you need to set a value for the MinQuantity and MaxQuantity. So you kinda need to "fake" it by setting min to 1 and max to a huge value. If set to 0 you cannot order anything.

You should be able to create a variant in the service api as the variant is in Commerce itself

#334068
Dec 09, 2024 8:14
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.