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
Describe the bug
When a new product is created, it cannot be used directly since it does not appear in the variantList or variants key of the API response. Only variants carry price and stock and other info for add-to-cart and checkout etc.
To Reproduce
Steps to reproduce the behavior:
Go to Admin UI
Add a new product without variant
Exercise relevant API (eg ProductList)
{
"id": "55",
"name": "New product A without variant",
"slug": "new-product-a-without-variant",
"description": "<p>This is a test for a new product being created in the Admin UI without variant being explicitly created. What will show in GraphQL?</p>",
"featuredAsset": null,
"variantList": {
"totalItems": 0
},
"variants": []
},
Expected behavior
When a new product is created, it would be good to have at least 1 variant created by default.
Environment (please complete the following information):
@vendure/core version: v2
Additional context
This seems to be an inadvertent change in v2. In the admin-ui in V1 the variant is prefilled when creating a product.
Describe the bug
When a new product is created, it cannot be used directly since it does not appear in the
variantList
orvariants
key of the API response. Only variants carry price and stock and other info for add-to-cart and checkout etc.To Reproduce
Steps to reproduce the behavior:
Expected behavior
When a new product is created, it would be good to have at least 1 variant created by default.
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: