File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/CatalogGraphQl/Model/Resolver/Product Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ public function resolve(
64
64
/** @var Product $product */
65
65
$ product = $ value ['model ' ];
66
66
$ product ->unsetData ('minimal_price ' );
67
+ // add store filter for the product
68
+ $ product ->setData (self ::STORE_FILTER_CACHE_KEY , $ store );
67
69
68
70
if ($ context ) {
69
71
$ customerGroupId = $ context ->getExtensionAttributes ()->getCustomerGroupId ();
@@ -95,8 +97,6 @@ public function resolve(
95
97
*/
96
98
private function getMinimumProductPrice (SaleableInterface $ product , StoreInterface $ store ): array
97
99
{
98
- // add store filter for the product
99
- $ product ->setData (self ::STORE_FILTER_CACHE_KEY , $ store );
100
100
$ priceProvider = $ this ->priceProviderPool ->getProviderByProductType ($ product ->getTypeId ());
101
101
$ regularPrice = $ priceProvider ->getMinimalRegularPrice ($ product )->getValue ();
102
102
$ finalPrice = $ priceProvider ->getMinimalFinalPrice ($ product )->getValue ();
You can’t perform that action at this time.
0 commit comments