Skip to content

Issue in adding the wishlist of "zero price" product.  #16479

Closed
@Sathishkumar8731

Description

@Sathishkumar8731

Preconditions

  1. Magento CE 2.2.4 without sample data is installed.
  2. Added test product with zero price.

Steps to reproduce

  1. Login as a customer in front end of the website.
  2. Click on the wishlist button in the product.
  3. Now you can find the below error message.

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Pricing\Price\ConfiguredOptions::getItemOptionsValue() must be of the type float, boolean given, called in /opt/lampp/htdocs/SVEP4087/vendor/magento/module-catalog/Pricing/Price/ConfiguredRegularPrice.php on line 74 and defined in /opt/lampp/htdocs/SVEP4087/vendor/magento/module-catalog/Pricing/Price/ConfiguredOptions.php:24 Stack trace: #0 /opt/lampp/htdocs/SVEP4087/vendor/magento/module-catalog/Pricing/Price/ConfiguredRegularPrice.php(74): Magento\Catalog\Pricing\Price\ConfiguredOptions->getItemOptionsValue(false, Object(Magento\Wishlist\Model\Item)) #1 /opt/lampp/htdocs/SVEP4087/vendor/magento/module-catalog/Pricing/Price/BasePrice.php(32): Magento\Catalog\Pricing\Price\ConfiguredRegularPrice->getValue() #2 /opt/lampp/htdocs/SVEP4087/vendor/magento/module-catalog/Pricing/Price/FinalPrice.php(44): Magento\Catalog\Pricing\Price\BasePrice->getValue() #3 /opt/lampp/htdocs/SVEP4087/vendor/magento/module-catalog/Pricing/Price/ConfiguredPrice.php(101): Mage in /opt/lampp/htdocs/SVEP4087/vendor/magento/module-catalog/Pricing/Price/ConfiguredOptions.php on line 24

Expected result

  1. It should allow to add the product in whishlist.

Actual result

  1. Instead its throwing error message about price type in the file path: Vendor/magento/module-catalog/Pricing/Price/ConfiguredOptions.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogFixed 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: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasegood first issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions