Skip to content

Add product to website will reset has_options and required_options #9896

Closed
@JeroenVanLeusden

Description

@JeroenVanLeusden

Preconditions

  1. Magento v2.1.7
  2. PHP v7.0.14
  3. MySQL v5.7.16

Steps to reproduce

  1. Create a 2nd website.
  2. Create a configurable product with any attribute.
  3. Add a Customizable Option (http://cloud.h-o.nl/krY0)
  4. Save the product.
  5. Open the tab Product in Websites and add you configurable to your created website.
  6. Save the product.

Expected result

  1. Entry in table catalog_product_entity should have has_options and required_options set to 1.

Actual result

  1. The columns has_options and required_options are set to 0.
  2. If you save the product again in the backend it will set has_options and required_options to 1 again.
  3. After you added the product to you newly created website both columns are set to 0. If you add the product to your cart it will do so without your selected custom option.

Possible related

  1. Product->save() shouldn't be called directly #8498 (applying this fix won't help).

Metadata

Metadata

Labels

Component: CatalogIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions