Skip to content

is_use_default is ignored for configurable_product_options part of API #40584

@mabigo

Description

@mabigo

Preconditions and environment

  • Magento version: 2.4.7-p9 (2.4.*)

Steps to reproduce

  • Use API endpoint /rest/all/V1/products
  • repare payload to define configurable options
  • Since we can't omit the "label", we set "is_use_default": true along side of a generic label.

Expected result

  • the use_default field in catalog_product_super_attribute_label is set to 1 for the updated option
  • The PDP shows the default attribute label as configured in attribute settings

Actual result

  • is_use_default flag is being ignored in API and does not translate to use_default field in DB
  • The required "label" field set in API payload is always used as custom option label

Additional information

Image Image

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

Type

No type

Projects

Status

Ready for Confirmation

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions