[5.x]: How to create a Product in Craft Commerce 5 (Controller) #3458
Unanswered
alex-brukhty
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please help, Craft Commerce 5 have new Inventory logic and I can figure out how to programmatically create new Products with one variant and 1 item in stock. Looks like after new Variant element is getting saved
InventoryItem
is not being created.and
$variant->getInventoryItem()
givesnull
.Beta Was this translation helpful? Give feedback.
All reactions