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

Woo Discount Rules recursive discount calculation issue #875

Open
ellabihovski2021 opened this issue Jul 9, 2024 · 0 comments
Open

Woo Discount Rules recursive discount calculation issue #875

ellabihovski2021 opened this issue Jul 9, 2024 · 0 comments

Comments

@ellabihovski2021
Copy link

ellabihovski2021 commented Jul 9, 2024

Hello,
I'm using a combination of WP GraphQL and Woo Discount Rules.
Most of the discount are calculated correctly, but it looks like the GraphQL returns wrong subtotal on recursive Buy X Gey X or Buy X get Y discount types.
It look like the plugins works good all them time there is not combination of products from the same discount ( if you set for example a discount on category and expect to combine 2 different products from the same category and get a discount on one of them, the WP GraphQL returns recursive discount only if the 2(4,6 or etc..) products similar).
I've checked both pluging on default WP woocomerce theme (store front) and the calculation still faulty.
Thank you,

Plugin Versions

  • WooGraphQL Version: 0.16.0
  • WPGraphQL Version: 1.16.0
  • WordPress Version: 6.5.5
  • WooCommerce Version: 7.2.2
    • WDR Version: 2.6.4

Update

I've paid attention this bug recreates with other discount types as well ( like a bundle discount).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant