magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 683 forks source link

Cannot query field "applied_gift_cards" on type "Cart". Cannot query field "gift_options" on type "CartPrices #4266

Open RanayCodes opened 3 months ago

RanayCodes commented 3 months ago

Preconditions and environment

Magento version: v2.4.5 Community Pwa Studio v14.0.0

To reproduce

Steps to reproduce the behavior:

  1. Go to Cart Page and Checkout

Expected behavior

Cart page and checkout should be working fine

Screenshots

Screenshot from 2024-05-15 18-24-50

Screenshot from 2024-05-15 18-32-35

Actual Results

Cart page is blank and not allow to complete checkout

The error logs in the Magento var/log/:

GraphQL (1:1655) 1: query GetCartDetails($cartId:String!){cart(cart_id:$cartId){id ...CartPageFragment typename}}fragment CartPageFragment on Cart{id total_quantity ...AppliedCouponsFragment ...GiftCardFragment ...ProductListingFragment ...PriceSummaryFragment __typename}fragment AppliedCouponsFragment on Cart{id applied_coupons{code typename}typename}fragment GiftCardFragment on Cart{applied_gift_cards{code current_balance{currency value typename}typename}id __typename}fragment ProductListingFragment on Cart{id items{uid product{uid name sku url_key thumbnail{url typename}small_image{url typename}stock_status ...on ConfigurableProduct{variants{attributes{uid code value_index typename}product{uid stock_status small_image{url typename}typename}typename}typename}typename}prices{price{currency value typename}row_total{value typename}total_item_discount{value typename}typename}quantity errors{code message typename}...on ConfigurableCartItem{configurable_options{id configurable_product_option_uid option_label configurable_product_option_value_uid value_label value_id typename}typename}typename}typename}fragment PriceSummaryFragment on Cart{id items{uid quantity typename}...ShippingSummaryFragment prices{...TaxSummaryFragment ...DiscountSummaryFragment ...GrandTotalFragment subtotal_excluding_tax{currency value typename}subtotal_including_tax{currency value typename}typename}...GiftCardSummaryFragment ...GiftOptionsSummaryFragment typename}fragment DiscountSummaryFragment on CartPrices{discounts{amount{currency value typename}label typename}typename}fragment GiftCardSummaryFragment on Cart{id applied_gift_cards{code applied_balance{value currency typename}typename}typename}fragment GiftOptionsSummaryFragment on Cart{id prices{gift_options{printed_card{value currency typename}typename}typename}typename}fragment GrandTotalFragment on CartPrices{grand_total{currency value typename}typename}fragment ShippingSummaryFragment on Cart{id shipping_addresses{selected_shipping_method{amount{currency value typename}typename}street typename}__typename}fragment TaxSummaryFragment on CartPrices{applied_taxes{amount{currency value typename}typename}__typename} ^ [] [] [2024-05-15T13:16:08.745883+00:00] main.ERROR: Cannot query field "gift_options" on type "CartPrices".

GraphQL (1:1797) 1: query GetCartDetails($cartId:String!){cart(cart_id:$cartId){id ...CartPageFragment typename}}fragment CartPageFragment on Cart{id total_quantity ...AppliedCouponsFragment ...GiftCardFragment ...ProductListingFragment ...PriceSummaryFragment __typename}fragment AppliedCouponsFragment on Cart{id applied_coupons{code typename}typename}fragment GiftCardFragment on Cart{applied_gift_cards{code current_balance{currency value typename}typename}id __typename}fragment ProductListingFragment on Cart{id items{uid product{uid name sku url_key thumbnail{url typename}small_image{url typename}stock_status ...on ConfigurableProduct{variants{attributes{uid code value_index typename}product{uid stock_status small_image{url typename}typename}typename}typename}typename}prices{price{currency value typename}row_total{value typename}total_item_discount{value typename}typename}quantity errors{code message typename}...on ConfigurableCartItem{configurable_options{id configurable_product_option_uid option_label configurable_product_option_value_uid value_label value_id typename}typename}typename}typename}fragment PriceSummaryFragment on Cart{id items{uid quantity typename}...ShippingSummaryFragment prices{...TaxSummaryFragment ...DiscountSummaryFragment ...GrandTotalFragment subtotal_excluding_tax{currency value typename}subtotal_including_tax{currency value typename}typename}...GiftCardSummaryFragment ...GiftOptionsSummaryFragment typename}fragment DiscountSummaryFragment on CartPrices{discounts{amount{currency value typename}label typename}typename}fragment GiftCardSummaryFragment on Cart{id applied_gift_cards{code applied_balance{value currency typename}typename}typename}fragment GiftOptionsSummaryFragment on Cart{id prices{gift_options{printed_card{value currency typename}typename}typename}typename}fragment GrandTotalFragment on CartPrices{grand_total{currency value typename}typename}fragment ShippingSummaryFragment on Cart{id shipping_addresses{selected_shipping_method{amount{currency value typename}typename}street typename}__typename}fragment TaxSummaryFragment on CartPrices{applied_taxes{amount{currency value typename}typename}__typename}

m2-assistant[bot] commented 3 months ago

Hi @RanayCodes. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.