-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product save via Repository on defined storeID-> Attributes with default value gets set. #12881
Comments
I would appriciate any kind of help to get a quickfix for this. I tried numerous things but didn't manage to have a stable fix. If anyone can comfirm if this is fixed in Magento 2.2.2 or even if this is scheduled for 2.3 please let me know |
For someone who wants to score some points on stackexchange : https://magento.stackexchange.com/questions/207123/product-update-storeview-vs-default-config-value |
The only solution that i found was to work with the recource model of the product and using 'insert' and 'update' function directly into the database table. Which is a bad practice |
snippet of the wall of text from our cloud support ticket:
Break stuff through the backend:
The problem can be split into multiple origins:
Break stuff through the api:
I can't even wrap my head around this problem. |
@versdivers, thank you for your report. |
What is the estimate for this issue? |
Any updates? |
Fieldsets seem to only render form fields when getting expanded. If its not expanded, there seem to be some values missing in the POST. Creating a little mixin for the fieldset component, so the form fields gets created automatically, seem to fix this specific issue. I'm still testing, but it seems to be a valid (maybe dirty) solution, until it gets fixed the way it should. Magento Version 2.2.4 Step1: Create Module File: Vender\Module\view\adminhtml\requirejs-config.js
File: Vender\Module\view\adminhtml\web\js\form\components\fieldset.js
Note: There is another bug with url_key getting saved as "NULL" for storeviews, but i think its mostly unrelated. |
Please update or better yet solve the issue. We use the API to update products and have the same issues. |
Reported 2017, Confirmed 2018, Solved.... maybe 2019? Critical Bugs never get fixed |
While it doesn't help with actively saving a complete product against a store view, the
|
Hi @engcom-Alfa. Thank you for working on this issue.
|
Duplicate of #8897 |
I know some topics on this github does 'address' these problems. But they don't seem to cover it all or provide any kind of quickfix.
Since this is a BIG issue within Magento 2 we need a steady fix.
What happends is when you save a product trough the productrepository (or even trough other means) the product data contains all the values. Even if in the backend 'use default value' is checked then the getData() shows that they return the value of their parent.
When you save this product with limited information it does save all the data and it will save the data from the default config in the store view instead.
This combined with the fact that you can not save a price / website but you need to save a price / storeview this is a big big big issue!!
Preconditions
Steps to reproduce
Expected result
Actual result
Code that is used (shortened)
The text was updated successfully, but these errors were encountered: