Skip to content

[2.3.5-p2] GraphQl Special Price Ignore's special price from to dates. #29631

Closed
@Hexmage

Description

@Hexmage

Preconditions (*)

  1. Magento 2.3.5-p2

Steps to reproduce (*)

  1. Create a product with a price of 100 and a special price of 50
  2. Set a special from date of 1-1-1999, set a special to date of 1-1-2000
  3. Run the following GraphQl query with the sku of the product created in step 1:
    productDetail: products(filter: { sku: {eq: $sku } }) {
        items {
            price_range {
                minimum_price {
                    regular_price {
                        currency
                        value
                    }
                    final_price {
                        currency
                        value
                    }
                }
                maximum_price {
                    regular_price {
                        currency
                        value
                    }
                    final_price {
                        currency
                        value
                    }
                }
            }
        }
    }
}

Expected result (*)

Final price and regular price are identical.

Actual result (*)

Screenshot from 2020-08-18 14-01-59
The Special from and to dates are never checked and thus the incorrect final price is returned.


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions