"Use Default Value" gets unchecked, when product data is saved
"Use default value" being ignored for certain fields in multiple store mode
MAGENTO 2 “USE DEFAULT VALUE” STORE VIEW SCOPE FIX
Check This Link But Not Success.
After Migration Use Default Value Not Save When Product Have Migrated Attribute Set.
Example :-
I Have a 2 Attribute Set
Default
(Magento Default Attribute Set)Migration_Default
(After Migration Generate Attribute Set)
When Product Attribute Set is
Migration_Default
Use Default Value Not Save.
And Also Is There Any Way To Combine Those 2 Attribute on Migration Process...
Using This Link I Got Temporary Solution...
Add This Code In This File /vendor/magento/module-ui/view/base/web/js/form/form.js
// HACK for product - use default value...
if($('input[name="product[name]"]').length){
$(".admin__field-service").each(function(i, v){
if($(this).find("input").attr("type") == "checkbox"){
var name = $(this).find("input").attr("name");
var checked = $(this).find("input").prop("checked");
var value = 0;
if(checked){
value = 1;
}
source.set('data.'+name, value);
}
});
}
// HACK for product - use default value...
And Also Debug
form.js
in line no.310 i'm also getttinguse_default
value Array (this.source.data.use_default)But in Magento not Getting Any
use_default
Array