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
I changed the graphql in get-cart.js to include the available shipping methods, but the rates only works in the graphiQL IDE (only the flat rate works in the front end)
get-cart.js file:
import { gql } from "@apollo/client";
const GET_CART = gqlquery GET_CART { cart { contents { nodes { key product { node { id productId: databaseId name description type onSale slug averageRating reviewCount image { id sourceUrl srcSet altText title } galleryImages { nodes { id sourceUrl srcSet altText title } } } } variation { node { id variationId: databaseId name description type onSale price regularPrice salePrice image { id sourceUrl srcSet altText title } } attributes { id name value } } quantity total subtotal subtotalTax } } appliedCoupons { code discountAmount discountTax } subtotal subtotalTax shippingTax shippingTotal total totalTax feeTax feeTotal discountTax discountTotal availableShippingMethods { packageDetails rates { id label cost methodId } } } };
Steps:
Expected:
Actual:
Looks like the front-end implementation for the above is still not available on this project. Any idea on how to achieve it?
The text was updated successfully, but these errors were encountered: