Create a custom purchased_entity views field plugin

Created on 23 February 2017, about 8 years ago
Updated 7 June 2023, almost 2 years ago

Create a custom purchased_entity views field plugin

Bojan info/suggestions:

There are some Views that render the purchased_entity:
order summary, cart form, cart block

However, an order item type might specify a NULL purchased entity type, meaning that order items of that type won’t have a purchased entity, in which case there’s nothing to render

If there’s nothing to render, the view should show the order item title

there’s no logic for that

We need to create a custom views field plugin for the purchased_entity field
that has a settings form for selecting the view mode
and in the main function renders the purchased entity if it exists, otherwise it falls back to the order item title

📌 Task
Status

Needs review

Version

2.0

Component

Order

Created by

🇷🇴Romania vasike Ramnicu Valcea

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024