Description
Preconditions
- Magento 2
Steps to reproduce
This demonstration is only with a single storeview, but can be reproduced with multiple storeviews or multiple websites like already mentioned by a bunch of other reporters above
-
Setup a clean Magento installation using the 2.2-develop branch (I used commit eb84c53)
-
Go into the backend
-
Make a note of the default storeview code, it's
default
(we'll need this later when we create an API request) -
Create a new product:
- name: "Base"
- SKU: "base"
- price: 100
- description: "Base"
- short description: "Base"
-
Look at the various
catalog_product_entity_int
,catalog_product_entity_text
,catalog_product_entity_varchar
tables in the database, they contain only values for store_id = 0, this is good so far! -
Still in the backend, go to System > Integrations and add a new integration with full access
-
Activate the new integration and take a note of the 'access token' (example:
abc
) -
Execute the following curl command, which only updates the "name" attribute, using the storeview code from 3, and the access token from 7:
curl -k -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer abc" -d "{ \"product\": { \"name\": \"New name on storeview level\" }}" https://domain/rest/default/V1/products/base
-
Go back in the backend and take a look at the product, but switch to the 'Default Store View' scope.
-
It is expected that the
-
Also take a look at the database again, to the
catalog_product_entity_int
,catalog_product_entity_text
,catalog_product_entity_varchar
tables, it is expected you'll only see one entry for store_id = 1, but there are like 10 entries, not good!
Expected result
Only attribute where the checkmark "Use Default Value" is unchecked is for the attribute "name"
Actual result
All the following attributes now also have a value on storeview level, which is not what is expected:
- status
- tax class
- visibility
- description
- short description
- url key
- meta title
- meta keywords
- meta description
- display product options in
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done
Activity