Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Order
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 May 2017 at 07:21 UTC
Updated:
20 Jul 2017 at 12:30 UTC
Jump to comment: Most recent
Comments
Comment #2
bojanz commentedWe need to make that price field required, it seems.
Comment #3
thomas cysCopied from ProductionVariation class baseFieldDefinitions method:
// The price is not required because it's not guaranteed to be used
// for storage (there might be a price per currency, role, country, etc).
I accidentally forgot to add to price and ran into this issue but are there use cases where you don't want to add a price to a product? If there are the price should be 0 not null imo.
Comment #4
thomas cysAdded PR for this issue: https://github.com/drupalcommerce/commerce/pull/735
Comment #5
thomas cysComment #6
luizsgpetri commentedI had the same issue and creating products with price fix it. Thanks for sharing this issue, it saved me some time to figure out it was my fault =p
Comment #8
bojanz commentedCommitted, thanks!