Skip to content

Tier Price is not being deleted from Configurable Product #38390

@bhoopatparmar

Description

@bhoopatparmar

Preconditions (*)

  1. Magento 2.4.6-p2
  2. Magento 2.4-develop

Description (*)

The tier price for the configurable product isn’t deleted when a simple product is converted into a configurable product. The Actual price of a product is removed from the database but the tier price remains there in catalog_product_entity_tier_price. It will show the minimum price for the product at the front end even if any child variant of the product isn’t having any tier price. This can lead to a mismatch in the price. See the attached screenshots below.

Screenshot 1:
Here you can see in the screenshot that the simple product has the tier price in the table catalog_product_entity_tier_price.
image

Screenshot 2:
After Converting the simple product into the configurable product by creating the variants, you can see in the below screenshot that the tier price remains there. Even after removing the tier price from all its variants, it remains there in the table catalog_product_entity_tier_price.

These things lead in a way to mismatch of the price on a product page.
If you check the product on a category-page/listing-page, you will find the minimum price coming from the tier price available for a product. But when you visit the product page for the same and check all the variants, you will come to know that there is no minimum price available in any of the child variants of the product.
image
image

Steps to reproduce (*)

  1. Create a simple product with a tier price.
  2. Edit that simple product and convert it into a configurable product by creating some variants with a price greater than the tier price and make sure that any variant should not have any tier price.
  3. Observe in the database that table catalog_product_entity_tier_price still has the entry for the particular product with the tier price.
  4. Visit the particular product on a listing page and product page and observe the price.

Expected result (*)

The tier price of the configurable product should also get deleted when a product is converted from a simple product to a configurable product. It should show the minimum price of the variants instead of a tier price of the parent configurable product at the frontend.

Actual result (*)

The tier price of the configurable product is not deleted when a product is converted from a simple product to a configurable product. It is showing the tier price of a configurable product as a minimum price.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: CatalogComponent: PricingIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.6-p2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions