Skip to content

M2.2.6 : Special price of 0.0000 is not shown on frontend, but is calculated in cart #18268

@kanduvisla

Description

@kanduvisla

If you have a product with a special price of 0.00, this is not shown on the frontend. Not in the product listings and also not on the product detail page.

However, if you add it to the cart, you'll see that the special price of 0.00 is used.

Preconditions

  1. Magento 2.2.6

Steps to reproduce

  1. Create a product with a regular price and a special price of 0.00
  2. Check the product in product listings and product detail page.

Expected result

The price should be shown as from/to

Actual result

The regular price is shown. However, the 0.00 price is used for sorting and quote calculations

This bug can be dangerous because it can cause a typo to provide a free product without the frontend directly reflecting this (for example, an import process may accidentally have set all special prices to 0.00, but the store owner cannot see this on the frontend). Free products for everyone!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions