1

I don't know why the item name shows "price" in the shopping cart.

My product variation type have 2 fields: Certificate choice (attribute) and Course period.

How can I customize my formatter in the cart?

The last image is my views "Cart form"

enter image description here

0
2

The price must be showing because that is all that is configured to be rendered for the referenced entity in whatever view mode it's defaulting to. If you want something like you've pictured, you're going to need to use the individual fields, which likely means adding another reference to get the attribute / value data, adding all three of the fields you want to render (course name, attribute value, and period), and then configuring the View to ensure all three of those fields are rendered into the single column.

2
  • Thanks for reply. One more question, how to custom rendered entity? Edit twig? or other?
    – Sevenfish
    May 20 at 5:25
  • My recommendation was just not to render the entity at all. : ? May 21 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.