Skip to content

REST API Missing some Product_Option values for Order Items #38251

Open
@suncofamily

Description

@suncofamily

Preconditions and environment

  • Magento version 2.4.6

Steps to reproduce

  1. Create a Bundle product
  2. Create a sales order with bundle product(s)
  3. There is bundle_selection_attributes in product_options column of sales_order_item table with the bundle item (parent and child)
  4. Call POST /V1/orders API to update order
  5. The bundle_selection_attributes will be missing. (note: other key/value will be missing too)
  6. This will let the order detail page can not be opened
  7. This will make the order shipment can not be created

Expected result

  1. POST API needs to remain the before data of product_options column in sales_order_item table

Actual result

  • before data
{"info_buyRequest":{"uenc":"aHR0cHM6Ly9ldS5zeW5vZWMtZGV2LnN5bm8vZGVfZGUvcnQyNjAwLXByb21vLmh0bWw~","product":"257","selected_configurable_option":"","related_product":"","item":"257","bundle_option":{"17":"20","18":"22"},"qty":"1"},"bundle_options":{"17":{"option_id":"17","label":"xxx","value":[{"title":"xxx","qty":"1","price":159}]},"18":{"option_id":"18","label":"yyy","value":[{"title":"yyy","qty":"1","price":10}]}},"product_calculations":1,"shipment_type":"1"}
  • after data
    • parent {"info_buyRequest":{"qty":1,"bundle_option":{"17":[20],"18":[22]},"bundle_option_qty":{"17":1,"18":1}}}
    • child []

Additional information

  1. Is it same as REST API Missing Product_Option values for Order Items #37567?

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: OrderComponent: BackendIssue: 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: ready for devReported on 2.4.6Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions