Score:0

How do I add a product variance title to the order information page?

jp flag

I am looking to have the Product Title appear in the Order Information page. However, the data is pulling the price versus the product title. I attempted to change the views. No luck. I am not a developer, so, if development is needed, okay. Just looking for an easy way to make this work.

Shopping Cart

enter image description here enter image description here

Mike avatar
jp flag
I've set up a subscription product variance named 1-Year Subscription. The product is appearing in the shopping cart correctly. I was able to make this work via the Checkout Block View. When proceeding to checkout, the product description appears as the price. I attempted to edit the Checkout Order Summary View with no change. After a little research, it appears that the Checkout Order Summary View is no longer tied to the checkout page?
apaderno avatar
us flag
Welcome to Drupal Answers! Please edit the question to include any detail that is useful to answer it. The purpose of comments isn't giving that information.
Mike avatar
jp flag
Added two more screenshots. 1st is the shopping cart, second is the view for the Checkout Order Summary View, the third is Order Summary page.
Score:0
in flag

That second column, 'Price: $34' is created from the Summary display of the Product variant. If you've created your own new Product variant type, it won't have any Summary display, so Commerce uses the Default display, which shows the Price.

To fix it, go to Commerce > Configuration > Products > Product variation types, then choose ‘Manage display’ for your Product variation type. Click Custom Display Settings, put a tick next to ‘Summary’, and Save.

Now you’ll a see choice of Default or Summary display. Click on Summary, then rearrange the fields to show what you want to appear in that second column.

On our site I changed it to show only the product's name, so:

  • FIELD: Product
  • LABEL: Hidden
  • FORMAT: Label, with ‘Link label to the referenced entity’ disabled

Save, clear caches, and check the order information page shows what you want.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.