Skip to content

[BUG] Incorrect product option price calculation in new orders in the admin console #4778

Closed
@massa-man

Description

@massa-man

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When creating a new order in magento admin console for a product that includes custom options, the total product price is incorrectly calculated using the option price for the default store instead of the option price of the new order store.

The product total in the products list is correctly calculated using the correct option price for the order store, but the order totals (the subtotal specifically) is calculated using the product option price for the admin (default) store

Expected Behavior

I would expect the subtotal of the order to match the correct amount calculated using the order store for the option prices

Steps To Reproduce

  1. In a multi-store magento installation
  2. Create a product that has custom options with different FIXED prices in different websites/stores
  3. In the admin console, create a new order in a specific store
  4. Add the product created to the order and configure the product to add the option(s) with specific prices
  5. The product list section shows the correct total for the product and option in the order store
  6. However, the order subtotal in the totals section is calculated with the product price in the order store but the option price in the admin store
Image Image Image

Environment

- OpenMage: 20.12.2
- php: 8.2

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions