Skip to content

Commit 74707e5

Browse files
author
Oleksandr Iegorov
committed
MC-38995: Customer group price is not working in product query graphql
1 parent ac54594 commit 74707e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/CustomerGraphQl/Model/Context/AddCustomerGroupToContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function execute(ContextParametersInterface $contextParameters): ContextP
6262
}
6363
if ($customerGroupId !== null) {
6464
$customerSession->setCustomerGroupId($customerGroupId);
65-
$contextParameters->addExtensionAttribute('id_customer_group', (int) $customerGroupId);
65+
$contextParameters->addExtensionAttribute('customer_group_id', (int) $customerGroupId);
6666
}
6767
return $contextParameters;
6868
}

app/code/Magento/CustomerGraphQl/etc/extension_attributes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
99
<extension_attributes for="Magento\GraphQl\Model\Query\ContextInterface">
1010
<attribute code="is_customer" type="boolean"/>
11-
<attribute code="id_customer_group" type="integer"/>
11+
<attribute code="customer_group_id" type="integer"/>
1212
</extension_attributes>
1313
</config>

0 commit comments

Comments
 (0)