Skip to content

Create Order in the admin panel: wrong price is displayed for Configurable Products with Customizable Options #25766

Closed
@bgorski

Description

@bgorski

Preconditions (*)

  1. Magento 2.3.3 (2.3.2 is affected as well, not tested on any other version)

Steps to reproduce (*)

  1. Create a configurable product with a Customizable (customizable, not configurable!) Option added to the parent product. The option should have at least one value that increases price of the product
  2. Go to the Create Order page in the admin panel. Select/create a customer and proceed to the page where you add all the information (products, addresses etc.)
  3. Click Add Products to see a grid of products. Your product should be on it (use filters if necessary)
  4. You should see no price associated with the product on the products grid (this is the expected behavior as it's not configured yet)
  5. Click Configure
  6. Select the child product and the custom option's value that increases the price of the product.
  7. Click OK to go back to the main view
  8. Notice that the product's price displayed on the grid is now available

Expected result (*)

  1. The price should be a sum of the child product's price and the custom option's price (for example if the product costs $200 and there's additional $20 for the custom option, it should show $220)

Actual result (*)

  1. The displayed price is only the custom option's price. The actual product price is not included (for example if the product costs $200 and there's additional $20 for the custom option, only $20 is actually displayed)

Additional information

  1. This is broken only for configurable products that have Customizable Options.
  2. Configurable Products without Customizable Options display their price correctly after a child product is chosen in Configure
  3. Simple/Virtual Products with a Customizable Option also correctly add its price to the product price
  4. Even if a wrong price is displayed before adding a product to order, when it gets added (the Add Selected Product(s) to Order button is clicked), product price gets computed correctly
  5. Not tested on product types other than simple/virtual and configurable

Attaching a few screenshots to make it clearer what this is about:
https://i.ibb.co/sjvwW4R/Price0.png - before a product gets configured
https://i.ibb.co/1GwP2RQ/Price1.png - during configuration
https://i.ibb.co/Y3b3Zrx/Price2.png - after it's configured, with a wrong price shown

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ConfigurableProductIssue: 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.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions