Reviewing the documentation at http://docs.drupalcommerce.org/v2/product/customize-the-add-to-cart-form...

This demonstrates how to create a view displaying a product catalog. Adding a simple price field to this, however, seems to be impossible. I can add a price widget as part of the add to cart form (but this appears to be unformattable) or a list of prices of all variations. Unfortunately, I cannot determine how to either add the price from a single variation (delta) or - preferably - the price of the variation shown in the add to cart form. It seems as though this should be basic functionality that would be used in most catalogs.

Comments

zorbtrauts created an issue. See original summary.

cham74’s picture

Run into the same problem.

Need to show old price and current price of the item, which are variation fields.

In other product displays can use a filter criteria Product: Variations:delta (= 0) which shows only one item per variation, whereas the catalogue index display does not appear to have this option, nor can you limit the price field to show only one result for multiple results.

The documentation shows no price variation, just the color variations.

sorabh.v6’s picture

@cham74 You can show rendered entity instead of showing fields. And in settings for rendered entity, you can select a viewmode. Enable the fields that you want to show in that viewmode. That's it, hope it helps.

cham74’s picture

Yes very helpful. For some reason, I had presumed that fields were needed to associate the facets with the view so had not tried rendered entity option, but facets are available to be added to the view as a rendered entity.

joshmiller’s picture

Status: Active » Closed (works as designed)