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, 7 months ago by WCFM Forum.
- AuthorPosts
- March 15, 2019 at 6:27 am #52778
- March 16, 2019 at 8:57 am #52937WCFM ForumMember
Hi,
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 #53415vraugul1Participant
Hello!
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 #53416WCFM ForumMember
Hi,
There is no category-attributes relationship, so this will not work.
Thank You
- March 19, 2019 at 6:28 am #53417vraugul1Participant
Hello!
Is it possible to create this relationship (category-attributes)?
Thank you!
- March 19, 2019 at 5:27 pm #53568WCFM ForumMember
Possibly! But lots of custom coding require for this.
Thank You
- March 20, 2019 at 11:43 am #53682vraugul1Participant
Hello!
This is understandable
Can you make it?Thank you!
- March 24, 2019 at 6:55 pm #54357CraigParticipant
I 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 #54567WCFM ForumMember
Hi,
Can you make it?
– We are working on this, will be there soon!
Thank you
- April 4, 2019 at 10:36 am #56127premiersoftParticipant
Hi,
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 #58371acauaferreiraParticipant
Yes I Agree about this, i will also love a lot.
- April 18, 2019 at 10:02 pm #58522WCFM ForumMember
We are working on this, will be there on next update.
Thank You
- AuthorPosts
- The topic ‘Attributes’ is closed to new replies.