I created an numeric attribute, and product has assigned 2 categories (parent category and subcategory), is it possible update product attribute only for subcategory? or is it possible create custom product attribute only for subcategory? This would apply for all products. enter image description here

MOTOR (Subcategory) Colecciones (Parent Category)

I need to set numeric attribute value (3) in MOTOR and that in the parent category the value is still kept at (0)

Any ideas? Thanks

  • Can you please elaborate more..what do you mean by pattern?
    – Ankit
    Commented Feb 7, 2022 at 17:41
  • Sorry Ankit, is parent category, i edited question. Thanks! Commented Feb 7, 2022 at 18:05

1 Answer 1


I did not understand why you want to create product attribute as I will try to give a answer:

Method 1: You can create category attribute and set values according to your Parent and Subcategory.

Method 2: If you want to create product attribute only, in this case you can create category and product attribute both and match there values. So if there is subcategory and value of category attribute is enable so it will show your product attribute value.

May be I am wrong here but I can not comment whole answer. Let me know if you need anything.

  • I created an numeric attribute and need to set value only for subcategory, i need to exclude value attribute for parent category page Commented Feb 7, 2022 at 19:50
  • Yes so you should create numeric attribute of category not for products.
    – Ankit
    Commented Feb 8, 2022 at 4:53

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.