Description
When you update a product. For example adding an image using the API. Which is totally unrelated to anything else, such as editing price.
The checkbox "Use Default Value" becomes unchecked on a bunch of attributes, such as price.
This turns into a problem when you want to edit the product later, update the price, or the description etc. and nothing happens. So you have to change store view scope to that particular store, check the box "Use Default Value" and save to be able to change the price.
This should not happen in the first place.
Preconditions (*)
- Magento 2.3.3
- 2 store views
Steps to reproduce (*)
- Create 2 store views
- Add a new product with a price
- Change store view on the product. You can see "Use Default Value" for price is checked.
- Update the product using the API, for example uploading an image
- View the product again and change store scope
- Notice the "Use Default Value" on price is now unchecked (amongst other attributes)
Expected result (*)
Checkbox "Use Default Value" should remain checked until a user actually unchecks it.
Actual result (*)
Checkbox "Use Default Value" unchecks itself when you update the product using the API for all store views.
Additional info
I just re-produced it on 2.4-dev.
Seems to be a problem with scopes.
In addition to the steps above, do the following:
- Stores > All Stores. Click "Main Website Store" and change "Default Store View" to the second store view
- Open "Default Store View" and change to status to disabled
- Go into product, select scope "Default store view" (first store) Click "Use Default Value" on everything. Save.
- Change store scope to second store view. Click "Use Default Value" on everything. Save.
- Change scope to second store view again. A bunch of "Use Default Value" are unchecked.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status