Closed danielkoch closed 2 years ago
Prices should be shown correctly even if specific permissions per customer group for prices are set in Magento.
Prices GraphQL request sent without the authorization: 'Bearer xyz'. Therefore Magento not responses with prices.
authorization: 'Bearer xyz'
Possible solution/idea: If available include authorization header with Bearer token from Cookie cif.userToken or local storage item M2_VENIA_BROWSER_PERSISTENCE__signin_token with https://github.com/adobe/aem-core-cif-components/blob/core-cif-components-reactor-2.4.0/ui.apps/src/main/content/jcr_root/apps/core/cif/clientlibs/common/js/CommerceGraphqlApi.js#L52-L55 in _fetchGraphql method.
cif.userToken
M2_VENIA_BROWSER_PERSISTENCE__signin_token
_fetchGraphql
Always if open a product detail page
AEM v6.9 Magento Cloud CIF components, v2.4.0
v6.9
v2.4.0
No example needed. Just provide the configuration above
No logs. Prices returned with value -1
-1
@adobe export issue to Jira project CIF as Bug
:white_check_mark: Jira issue CIF-2903 is successfully created for this GitHub issue.
Expected Behaviour
Prices should be shown correctly even if specific permissions per customer group for prices are set in Magento.
Actual Behaviour
Prices GraphQL request sent without the
authorization: 'Bearer xyz'
. Therefore Magento not responses with prices.Possible solution/idea: If available include authorization header with Bearer token from Cookie
cif.userToken
or local storage itemM2_VENIA_BROWSER_PERSISTENCE__signin_token
with https://github.com/adobe/aem-core-cif-components/blob/core-cif-components-reactor-2.4.0/ui.apps/src/main/content/jcr_root/apps/core/cif/clientlibs/common/js/CommerceGraphqlApi.js#L52-L55 in_fetchGraphql
method.Reproduce Scenario (including but not limited to)
Always if open a product detail page
Steps to Reproduce
Platform and Version
AEM
v6.9
Magento Cloud CIF components,v2.4.0
Sample Code that illustrates the problem
No example needed. Just provide the configuration above
Logs taken while reproducing problem
No logs. Prices returned with value
-1