Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shipping costs based on configured Shipping zones are not accounted for in the front end #104

Open
brianpereradap opened this issue Jan 4, 2022 · 2 comments
Labels
open-to-contribution Open To Contribution

Comments

@brianpereradap
Copy link

Steps:

  • Configure multiple shipping methods for different zones (country, state and postcode)
  • On the checkout page, change the shipping country, state or postcode

Expected:

  • The shipping cost needs to be calculated based on the shipping zone configuration.
  • The totals of the order needs to update based on the selected region

Actual:

  • The shipping cost is not displayed and the totals do not get updated

Looks like the front-end implementation for the above is still not available on this project. Any idea on how to achieve it?

@fabiojundev
Copy link

I'm also interested in this feature.

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 } } } };

export default GET_CART;

@imranhsayed imranhsayed added the open-to-contribution Open To Contribution label Jan 8, 2022
@thefoxes86
Copy link

I'm interested to this issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-to-contribution Open To Contribution
Projects
None yet
Development

No branches or pull requests

4 participants