You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Have my Minicart app customized and need read the ratesAndBenefitsData element with all promotions applied into cart, but this aren't exist... Should be exist why within "priceTags" element is showing the identifiers of each benefit. Bug!
To Reproduce
Steps to reproduce the behavior:
Go to 'Home'
Add one or some products with an active discount promotion, this promotion should that apply immediately.
Internally debug the orderForm from "'vtex.order-manager/OrderForm'",
Checking this latest orderForm noted not exist the ratesAndBenefitsData node.
Go at Cart page and debug vtexjs.checkout.orderForm and if exist the ratesAndBenefitsData node.
Expected behavior
The orderForm that we have available from the browser's DOM... should be a faithful copy of what is Vtex-app should deliver.
Screenshots
ratesAndBenefitsData available in browser's DOM, from orderForm:
Missing ratesAndBenefitsData obtain from order-manager:
Desktop environment:
Replicate a normal cart flow from a browser and debug linking from a workspace....
We try get the "benefits" from a GraphQL query using:
Describe the bug
Have my Minicart app customized and need read the ratesAndBenefitsData element with all promotions applied into cart, but this aren't exist... Should be exist why within "priceTags" element is showing the identifiers of each benefit. Bug!
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The orderForm that we have available from the browser's DOM... should be a faithful copy of what is Vtex-app should deliver.
Screenshots
ratesAndBenefitsData available in browser's DOM, from orderForm:
Missing ratesAndBenefitsData obtain from order-manager:
Desktop environment:
Replicate a normal cart flow from a browser and debug linking from a workspace....
We try get the "benefits" from a GraphQL query using:
query benefitsByIdentifier ($field: ProductUniqueIdentifierField!, $values: [ID!], $salesChannel: String) { productsByIdentifier (field: $field, values: $values, salesChannel: $salesChannel) @context(provider: "vtex.search-graphql") { items { itemId name } benefits { id name } } }
...but the response data is for some products.
Another alternative is get ratesAndBenefitsData using VTEX API /api/checkout/pub/orderForm/{orderformId} but isn't optimal....
The text was updated successfully, but these errors were encountered: