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

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,
        ....
    ]
);
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

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.