Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Attributes
Tagged: attributes
- This topic has 11 replies, 5 voices, and was last updated 5 years, 10 months ago by
WCFM Forum.
- AuthorPosts
- March 15, 2019 at 6:27 am #52778
- March 16, 2019 at 8:57 am #52937
WCFM Forum
MemberHi,
Do you want to set all Attributes required?
Then use this code –
add_filter( 'wcfm_product_custom_attributes', function( $taxonomy_fields, $att_taxonomy ) { if( isset( $taxonomy_fields[$att_taxonomy] ) && isset( $taxonomy_fields[$att_taxonomy]['options'] ) ) { if( isset( $taxonomy_fields[$att_taxonomy]['options']['is_active'] ) ) { $taxonomy_fields[$att_taxonomy]['options']['is_active']['custom_attributes'] = array( 'required' => 1, 'required_message' => 'Attributes are required' ); } if( isset( $taxonomy_fields[$att_taxonomy]['options']['value'] ) ) { $taxonomy_fields[$att_taxonomy]['options']['value']['custom_attributes'] = array( 'required' => 1, 'required_message' => 'Attributes are required' ); } } return $taxonomy_fields; }, 50, 2);
Thank You
- March 19, 2019 at 5:52 am #53415
vraugul1
ParticipantHello!
How to make mandatory filling of attributes, relative to a certain category of goods?
First, the vendor selects a category, and then there are attributes relative to the category.Thank you!
- March 19, 2019 at 6:27 am #53416
WCFM Forum
MemberHi,
There is no category-attributes relationship, so this will not work.
Thank You
- March 19, 2019 at 6:28 am #53417
vraugul1
ParticipantHello!
Is it possible to create this relationship (category-attributes)?
Thank you!
- March 19, 2019 at 5:27 pm #53568
WCFM Forum
MemberPossibly! But lots of custom coding require for this.
Thank You
- March 20, 2019 at 11:43 am #53682
vraugul1
ParticipantHello!
This is understandable
Can you make it?Thank you!
- March 24, 2019 at 6:55 pm #54357
Craig
ParticipantI think the only mandatory setting is that you can can require that “a” category must be selected but not which one within the list or if the children within the parent category must be selected as well.
If this is important you might want to consider simplifying your category structure. I would think that the deeper levels of children attached to the parent category is you are going to experience more drop off of the selection because it is too detailed.
- March 26, 2019 at 2:04 pm #54567
WCFM Forum
MemberHi,
Can you make it?
– We are working on this, will be there soon!
Thank you
- April 4, 2019 at 10:36 am #56127
premiersoft
ParticipantHi,
I’m waiting for this also, my vendors require it very much.
I also think that it should work something like:
a) Select category ( if none selected you can’t choose any attributes)
b) Select attributes for that specific categoryAlso, can you implement choosing some ‘mandatory’ attributes to be added?
Thank you and waiting very tight on this implementation. - April 18, 2019 at 2:41 am #58371
acauaferreira
ParticipantYes I Agree about this, i will also love a lot.
- April 18, 2019 at 10:02 pm #58522
WCFM Forum
MemberWe are working on this, will be there on next update.
Thank You
- AuthorPosts
- The topic ‘Attributes’ is closed to new replies.