The Entity API module introduced the concept of 'name' entity key in entity definitions. The 'name' keys are unique, machine-readable names. We should make sure that Commerce defines the proper entry in its hook_entity_info() implementations. For Products, the 'name' is 'sku'. There might be other affected entities (order_number for Orders?).

Comments

damien tournoud’s picture

Title: Drupal Commerce should define propert 'name' keys for its entities » Drupal Commerce should properly define the 'name' keys for its entities
rszrama’s picture

I think Order Number should qualify as well. But I wonder if there will be a collision since technically the Order Number is a unique "label" in entity-speak (i.e. it's really supposed to be a human readable name, with the Order ID being the "machine-name" that happens to be serial / numeric).

damien tournoud’s picture

Status: Active » Postponed
rszrama’s picture

Category: bug » task
Status: Postponed » Active

Resetting this to active now that that other issue has been committed.

bojanz’s picture

Issue summary: View changes
Status: Active » Closed (outdated)