0

I am creating a custom category attribute. When I am changing the store view language, then Use Default Option not appearing.

enter image description here

asked May 11, 2018 at 9:39

1 Answer 1

0

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
5
  • I mentioned same as you mentioned but not use its not working. Commented May 11, 2018 at 9:56
  • Can you send me your create attribute script? Commented May 11, 2018 at 10:26
  • How can I send? Commented 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 script Commented May 11, 2018 at 11:22
  • Okay, thanks may be lettered on updated it can resolve. Commented May 12, 2018 at 4:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.