Display price on Views for product variation I'm confused, how to display on Views just one price for product with variations? I have product with 2 variation, and both prices are displayed, like:
Price: 1-Price for 1-Variation-Product , Price: 2-Price for 2-Variation-Product
I mean the created from me some custom view-page, like &quot;/all-products&quot; (like some catalog page) where are displayed all of products or goods with their prices. And for the products with variations I see, that there will be displayed all of prices of this product.
In the Settings of View-Page (&quot;/all-products&quot;) I have in Format section: &quot;Show:Fields | Settings&quot;.
In RELATIONSHIPS:
Variations: Product variation
(Variations: Product variation) Product: Product
And in Fields I have:
(Variations: Product variation) Product variation relationship: Price
where in the Setting I have:
&quot;Use entity field rendering&quot;
There are no Setting to handle multiple values.
If I check out &quot;Use entity field rendering&quot; then will be shown some settings for handling of multiple values, but in this case it will be no price displayed on view-page (/all-products), because the prices are rendering from product entity, as I understand.
So, this is the problem
In addition: the product with variation has all the same price, not different prices for different variation.
What is teh best way to handle it?
I have Drupal 9, Commerce 2
Thanks
I think I found a solution, in &quot;Fields&quot; just instead
&quot;(Variations: Product variation) Product variation relationship: Price&quot;
need to use:
&quot;Product datasource: Variations&quot;, and there are some settings to handle multiple values.
In &quot;Formatter&quot; need to set &quot;Rendered entry&quot;, instead default &quot;Label&quot;