How to render the correct variation price in catalogs?

Created on 14 November 2022, about 2 years ago
Updated 8 August 2023, over 1 year ago

Hi all,

I have a product catalog built using search api, facets, and views like this: https://docs.drupalcommerce.org/commerce2/developer-guide/products/marke.... My add to cart form is using the Variation Title widget.

I want to render the product price, and when there's multiple variations I want the price of the variation currently selected to render.

If I add a relationship to the referenced variations and display the price I get from that, prices for all variations are rendered (and not just the price of the variation currently selected in the add to cart dropdown).

If I add a relationship to the default variation, only one price is rendered but it is not updated when another variation is selected in the dropdown.

Would love some input on this.

💬 Support request
Status

Active

Version

2.32

Component

Price

Created by

🇩🇰Denmark kristofferrom

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