File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
app/code/Magento/CatalogGraphQl/Model/Resolver/Product Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 23
23
*/
24
24
class PriceRange implements ResolverInterface
25
25
{
26
+ private const STORE_FILTER_CACHE_KEY = '_cache_instance_store_filter ' ;
27
+
26
28
/**
27
29
* @var Discount
28
30
*/
@@ -93,6 +95,8 @@ public function resolve(
93
95
*/
94
96
private function getMinimumProductPrice (SaleableInterface $ product , StoreInterface $ store ): array
95
97
{
98
+ // add store filter for the product
99
+ $ product ->setData (self ::STORE_FILTER_CACHE_KEY , $ store );
96
100
$ priceProvider = $ this ->priceProviderPool ->getProviderByProductType ($ product ->getTypeId ());
97
101
$ regularPrice = $ priceProvider ->getMinimalRegularPrice ($ product )->getValue ();
98
102
$ finalPrice = $ priceProvider ->getMinimalFinalPrice ($ product )->getValue ();
You can’t perform that action at this time.
0 commit comments