문제

I want to make the category field required for product form in the backend.

I have tried to add the required class in the block class, but nothing happened.

Since the category field is not an input or dropdown field, I am not able to figure out how can I make it required.

Make Category Field Required in Product Form in Backend

Can anyone help me to achieve this?

도움이 되었습니까?

해결책

Go to

Store -> Attributes -> Product.

Search for

category_ids 

select

Yes 

for

Values Required

it will work.

Tested and working.

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top