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
Currently working on a site (with Craft multi-site enabled) where I've just switched off the 'multiple variants' setting for a product type, and now no new products can be created as they're failing to validate. The Craft flash notice says 'Couldn't save product.', then looking in the logs I find this:
2020-04-06 13:56:58 [-][1][6m88d4sbpo7e5a9l2pjukdkdmd][info][craft\services\Elements::_saveElementInternal] Element not saved due to validation error: Array
(
[variants] => Array
(
[0] => Error saving variants
)
)
Other notes:
New products do save if I mark them as disabled, but I can't ever enable them
Existing products can still be updated & are successfully saved without any issues
I tried creating a new product type with exactly the same fields and without multiple variants. Creating a new product under this product type successfully saved.
Steps to reproduce
Create a product type with multiple variants enabled
Description
Currently working on a site (with Craft multi-site enabled) where I've just switched off the 'multiple variants' setting for a product type, and now no new products can be created as they're failing to validate. The Craft flash notice says
'Couldn't save product.'
, then looking in the logs I find this:Other notes:
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: