Problem/Motivation

Because of various issues like #2840386: Views assume that purchased_entity is node. or #2638958: Views has problems using the purchased_entity field, I had to replace the "purchaseable entity" fied in Cart view by an order item "rendered item" field. This let's me render the order item in a custom view mode, which dsplays the purchasable entity rendered itself in the custom view mode.
However, the commerce_order_item rendered also the "created" base field which can't be controlled form display mode form.

This issue simply let's "created" field from commerce_order_item being shown in display mode form of order item type, so you can actually remove it from display.
Also similarly with the title field.

Proposed resolution

Let base fields "created" and "title" being configurable in view mode form.

User interface changes

Created and Title field are now configurable in View Mode form.

API changes

none

Data model changes

none

CommentFileSizeAuthor
#2 2865324--2.patch958 bytesdom.

Comments

Dom. created an issue. See original summary.

dom.’s picture

Status: Active » Needs review
StatusFileSize
new958 bytes

Patch attached for review

bojanz’s picture

Title: Let commerce_order_item fields be configuration in display mode » Make the commerce_order_item "created" field configurable on view displays

Retitling for clarity. Looks like we don't need to do anything for the "title" field anymore (it has no configured formatter, and isn't configurable, unless purchasable entity type is NULL, in which case it already is display configurable), but the "created" change is needed.

  • bojanz committed afd53f6 on 8.x-2.x authored by Dom.
    Issue #2865324 by Dom., bojanz: Make the commerce_order_item "created"...
bojanz’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.