I am creating a custom category attribute. When I am changing the store view language, then Use Default Option not appearing.
asked May 11, 2018 at 9:39
Praveen Chelumalla
3752 silver badges17 bronze badges
1 Answer 1
When you create the category attribute, you need to add a global attribute as the scope store
$categorySetup->addAttribute(
\Magento\Catalog\Model\Product::ENTITY,
'is_emotion',
[
....
'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE,
....
]
);
answered May 11, 2018 at 9:48
thanhdv2811
6634 silver badges14 bronze badges
-
I mentioned same as you mentioned but not use its not working.Praveen Chelumalla– Praveen Chelumalla2018年05月11日 09:56:22 +00:00Commented May 11, 2018 at 9:56
-
Can you send me your create attribute script?thanhdv2811– thanhdv28112018年05月11日 10:26:38 +00:00Commented May 11, 2018 at 10:26
-
How can I send?Praveen Chelumalla– Praveen Chelumalla2018年05月11日 11:00:47 +00:00Commented May 11, 2018 at 11:00
-
This is the magento issue with the category attribute github.com/magento/magento2/issues/13440 I think it's not related to your create attribute scriptthanhdv2811– thanhdv28112018年05月11日 11:22:19 +00:00Commented May 11, 2018 at 11:22
-
Okay, thanks may be lettered on updated it can resolve.Praveen Chelumalla– Praveen Chelumalla2018年05月12日 04:26:54 +00:00Commented May 12, 2018 at 4:26
Explore related questions
See similar questions with these tags.
default