Our Commerce /shop view always shows the price of one variation regardless of whether or not that variation is part of the facet filter results. However, I would like to modify the view so it only shows the price of variations that are actually one of the facet filter results.
Details as follows.
We have a Drupal Commerce site for a chain of bedding stores. Most of the beds have size variations (Single, Double, Queen, King etc) which are also different prices.
In addition to image and name, the /shop view displays a static price for one size. For example: RRP: $ 999 For: Single
The Facet (search) sidebar has a filter for “bed size” as not all beds come in all possible sizes.
The problem we have found is some users will filter for size(s) (say King) and then assume that the price they see in the /shop view is for the King bed. For example, they don’t notice the the “For: Single” text under the price.
What I would like to do is this: when a user filters the /shop view on size, change the “Price” & “For” fields in the /shop view to only display a price of the selected size(s).
I would be happy to modify the node–shop.tpl.php file, but it only seems to have one variation.
Any suggestions?
Thanks
Regards
BrettSh