Skip to content

Woo Discount Rules recursive discount calculation issue #875

Open
@ellabihovski2021

Description

@ellabihovski2021

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions