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
If you create a new product and delete the initial blank variant you get an error
Argument 1 passed to craft\commerce\elements\Product::setVariants() must be of the type array, string given
The reason that I came across this because I basically want a product with all the product goodness and data but at a certain time it can't be purchased.
I would be able to do this but you can't disable a defaultVariant.
I understand this is an edge case so I have taken that into account.
Hmmm, would rather make the enabled and disabled status a publishing feature, and then add a separate 'enabled for sale' checkbox to variants. Will look to add it to the next release.
Description
If you create a new product and delete the initial blank variant you get an error
Argument 1 passed to craft\commerce\elements\Product::setVariants() must be of the type array, string given
The reason that I came across this because I basically want a product with all the product goodness and data but at a certain time it can't be purchased.
I would be able to do this but you can't disable a defaultVariant.
I understand this is an edge case so I have taken that into account.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: