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

[BUG] Shipping discount in storefront API #2398

Open
bitforcesrl opened this issue Dec 15, 2022 · 0 comments
Open

[BUG] Shipping discount in storefront API #2398

bitforcesrl opened this issue Dec 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@bitforcesrl
Copy link
Contributor

Describe the bug
I can't recover the shipping discount in storefront API

To Reproduce

  • Hydrogen version: 1.6.4
  • storefront_api version: unstable

query:

fragment MoneyFragment on MoneyV2 {
  currencyCode
  amount
}

fragment CartFragment on Cart {
  id   
  discountCodes {
    code
    applicable
  }
  discountAllocations {
    ... on CartAutomaticDiscountAllocation {
      title
      __typename
    }
    __typename
    discountedAmount {
      __typename
      amount
      currencyCode
    }
  } 
}

{
  cart(id: "...") {
    ...CartFragment    
  }  
}

If i use a custom code, working:
Screenshot 2022-12-15 at 12 50 06

But with Free Shipping discount the discountAllocations is empty
Screenshot 2022-12-15 at 12 53 03
Screenshot 2022-12-15 at 12 54 16

Without Free shipping code the total is 38.99 (correctly)
Screenshot 2022-12-15 at 12 57 07

And in shopify checkout working:
Screenshot 2022-12-15 at 12 55 28

@bitforcesrl bitforcesrl added the bug Something isn't working label Dec 15, 2022
@bitforcesrl bitforcesrl changed the title [BUG] [BUG] Shipping discount in storefront API Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant