Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Attributes and Required Field with Filter
- This topic has 24 replies, 3 voices, and was last updated 6 years, 8 months ago by aree.
- AuthorPosts
- February 28, 2018 at 4:00 pm #19608ArreGuest
Hi,
u did a great Work i bought ur WCFM Ultimate an all works fine, good job!But now ive some questions to the Settings:
1. Is it Possible to make Attributes as a “Requried Field” so that i can Filter later the products ?
(I know theres a Function with it but its not possible to Filter it.)Ill Explain my Problem and how it should be:
I want do a Attribute thats called: “Condition” and u can select “New” and “Secondhand”. And later on the Catalog ive a Filter that can Filter the Condition of a Product. I think u know what i mean. And this Attibute should be a Reuqierd Field, so you cant Add the Produkt if u dont Choose the Conditon.
2. Is it possible to deactivate that user can add attributes?
I hope u understand my questions, i hope its an easy way …
Thank you for a job well done.
- February 28, 2018 at 6:00 pm #19616WCFM ForumMember
Hi,
Thanks for get in touch with us and it’s great to know that you have upgraded your WCfM.
1. I understand your requirement, let me test this a bit and I will know you soon.
2. Absolutely possible, kindly check WCFM Capability “Add Attribute” and set this OFF.
Thank You
- March 1, 2018 at 10:13 am #19630AreeGuest
Hi,
thank you for ur fast answer. Okay i use the WC Marketplace Plugin with your WCFM Ultimate.
I hope u find a easy way, i think other PPL can use this too.
And i take a look, but where i can find the Settings for my problem number 2.
- March 1, 2018 at 10:25 am #19632AreeGuest
Okay thx i found the Option… but now ive a new Problem…
Is it Possible that they can select only in a Attribute 1 Option:
“Condition”, and then only “New” or “Secondhand” ? At the moment it is “New” and “Secondhand”.
- March 1, 2018 at 11:46 am #19662BingalGuest
Hi,
I have just written this code for you. It will serve two of your requirements –
1. Make the Attributes Required
2. Change multi selection to single selection (New or Secondhand)function product_simple_fields_custom_attributes_manipulate( $select_attributes ) { if( isset( $select_attributes['select_attributes'] ) && isset( $select_attributes['select_attributes']['options'] ) && isset( $select_attributes['select_attributes']['options']['value'] ) ) { $select_attributes['select_attributes']['options']['is_active']['custom_attributes'] = array( 'required' => 1, 'required_message' => 'Condition Attribute is required' ); unset( $select_attributes['select_attributes']['options']['value']['attributes'] ); } return $select_attributes; } add_filter( 'product_simple_fields_custom_attributes', 'product_simple_fields_custom_attributes_manipulate' );
Kindly add this to your site and know me is this fulfill your requirement or not, I am really exited to know!
Cheers
Bingal - March 1, 2018 at 11:48 am #19663ArreGuest
Hi okay, very nice Support Thank u!
I answer you ! - March 1, 2018 at 11:50 am #19664ArreGuest
I put this in my functions.php?
- March 1, 2018 at 11:57 am #19667ArreGuest
Okay its work fine, but is it possible that i can choose wich attribute is Reg.?
- March 1, 2018 at 12:28 pm #19668AreeGuestThis reply has been marked as private.
- March 1, 2018 at 1:05 pm #19672BingalMember
That’s strange, you are getting ID in catalog?
Let me check this once.
- March 1, 2018 at 1:52 pm #19679BingalMember
Kindly disable the code for now, I have to do a bit more experiment on this.
Thanks for your cooperation
Bingal
- March 2, 2018 at 6:52 am #19715WCFM ForumMember
Hi,
Here is your updated code, but this will fully functional after WCFM next update –
function wcfm_restrict_attribute_limit( $limit ) { $limit = 1; return $limit; } add_filter( 'wcfm_attribute_limit', 'wcfm_restrict_attribute_limit' ); function product_simple_fields_custom_attributes_manipulate( $select_attributes ) { if( isset( $select_attributes['select_attributes'] ) && isset( $select_attributes['select_attributes']['options'] ) && isset( $select_attributes['select_attributes']['options']['value'] ) ) { $select_attributes['select_attributes']['options']['is_active']['custom_attributes'] = array( 'required' => 1, 'required_message' => 'Condition Attribute is required' ); } return $select_attributes; } add_filter( 'product_simple_fields_custom_attributes', 'product_simple_fields_custom_attributes_manipulate' );
Thank You
- March 3, 2018 at 9:39 am #19776AreeGuest
Okay and can u tell me what are the differents in the next update?
- March 3, 2018 at 11:36 am #19777AreeGuest
Okay ive some more Problems, is its Possible to activate for some Attributes separtly that ppls can write some Attributes and Deactivate some attribute?
And now with your new code ive the problem again that ive no dropdown, i want that they can choose only 1 attribute not 2 or 3.I hope u understand my problem?
- March 3, 2018 at 2:53 pm #19785BingalMember
Hi,
First of all, this new code will not properly functional till the WCFM next update. WCFM next update will be there on 6th March.
Okay ive some more Problems, is its Possible to activate for some Attributes separtly that ppls can write some Attributes and Deactivate some attribute?
– can you please give me a bit more details on this. As I have now made all attributes required for you, I think you don’t want to have this!
Just to mention, in WCFM next update we are going to add an special feature where you will able to create Attribute group depending upon Categories.
Thank You
Bingal - March 3, 2018 at 3:38 pm #19786AreeGuestThis reply has been marked as private.
- March 3, 2018 at 3:47 pm #19787AreeGuestThis reply has been marked as private.
- March 3, 2018 at 8:00 pm #19794BingalMember
Hi,
1. It is an issue in current version, will be fixed in next update
2. Will do that for for you3. You may try alternate Category view from WCFM Admin Settings -> Dashboard -> Disable category checklist
Thank You
- March 4, 2018 at 8:23 pm #19852BingalMember
Hi,
WCFM new version is there, now try your code.
Hope it will do all required magic for you now 🙂
Thank You
- March 5, 2018 at 9:11 am #19879AreeGuest
Thank u for ur great Support, ill update you soon!
- March 5, 2018 at 10:29 am #19885areeGuest
1. Okay, now with the Categories ive a question? Is it possible to choose only Subcategorys form the Categories?
2. You dont fixed the problem with the req fields, right?
3. And is ist possible for Coustomer to do more as 1 Shipping Option? - March 6, 2018 at 6:32 am #19891BingalMember
Hi,
1. Yeah possible, you may do this using CSS or JavaScript easily
2. All attributes are required, right? It’s done already!
3. Not getting this clearly.Thank You
- March 7, 2018 at 11:42 am #19951areeGuest
I would like to change the category selection menu something so that you only ever a sub category in the category selected before. If I click on bike then I would like that you can then select only the subcategory mountain bike, and not another category. But only choose what you have clicked before.
- March 7, 2018 at 6:10 pm #19958BingalMember
Hi,
As understand, you want to have only one main category can be selected and sub-category of that are allowed.
Frankly, these are also possible to achieve but such things are comes under paid customisation.
If you are interested in this then please contact us directly – https://wclovers.com/contact-us/
Thank You
- March 8, 2018 at 10:43 am #19982areeGuest
Okay … thank u!
- AuthorPosts
- The topic ‘Attributes and Required Field with Filter’ is closed to new replies.