Forum Replies Created
- AuthorPosts
- February 11, 2020 at 7:36 pm in reply to: Pre-define the product tag according to the user nickname #106720paattalParticipant
Hello,
This is exactly what I needed, thank you again for listening and your availability! 🙂
February 10, 2020 at 8:11 pm in reply to: Pre-define the product tag according to the user nickname #106519paattalParticipantHello,
The code you shared is perfect for me because tag is automated for vendor (dashboard) and admin can add more tag.
But vendor can not add or modify those tags, so tags field must be hidden for vendor in the “Add Product”.
I need something like this but with the correct code :
if(!current_user_can('administrator')) { add_filter('wcfm_is_allow_tags','__return_false'); }
Thanks
February 7, 2020 at 9:13 pm in reply to: Pre-define the product tag according to the user nickname #106129paattalParticipantHello,
Works fine thank you ! 🙂
I just noticed that I forgot to specify that this field should be hidden for vendors (because autofill) and only appear for the admin (manual entry), sorry…
paattalParticipantHello,
Nice thank you 🙂
paattalParticipantHello,
Really perfect ! WC Lovers is obviously the best support team !
I include somme features since my last post and I need now to hide also Catalog Tab because I actvate/deactivate and hide all fields.
Sorry, this is my last request on this topic what is the syntax filter to add to this code ?
Thank you
paattalParticipantNice, thank you very much !
Is it possible to do the same thing and add lines to hide attached tabs : [Location] Geo My Wp, [Yoast SEO] and [Tabs Manager] Woocommerce
-> [Location] is only for grouped products and [Yoast SEO] + [Tabs Manager] are accessible only for admin.
Attachments:
You must be logged in to view attached files.paattalParticipantThis reply has been marked as private.paattalParticipantThis reply has been marked as private.paattalParticipantSorry I saved a translation for resources tabs, in fact the 2 tabs are still displayed …
Attachments:
You must be logged in to view attached files.paattalParticipantDo you have a solution please?
January 24, 2020 at 6:27 pm in reply to: Pre-define the product tag according to the user nickname #103625paattalParticipantDo you have a solution please?
paattalParticipantHello,
Your code hide well both check boxes abd resources tab but persons tab is still displayed (see attached screenshot).
Is it possible to hide also Yoast tab, it will be perfect ?
Thank you
Attachments:
You must be logged in to view attached files.paattalParticipantHello,
Yes I want permanently hide those two tabs and I use this snippet :
add_filter( 'wcfm_product_manage_fields_general', 'wcfmbi_product_manage_fields_general', 100, 3 ); function wcfmbi_product_manage_fields_general( $general_fields, $product_id, $product_type ) { global $WCFM, $WCFMpb; if( isset( $general_fields['_wc_booking_has_resources'] ) ) { $general_fields['_wc_booking_has_resources']['class'] = 'wcfm_custom_hide'; $general_fields['_wc_booking_has_resources']['desc_class'] = 'wcfm_custom_hide'; $general_fields['_wc_booking_has_resources']['dfvalue'] = 'no'; } if( isset( $general_fields['_wc_booking_has_persons'] ) ) { $general_fields['_wc_booking_has_persons']['class'] = 'wcfm_custom_hide'; $general_fields['_wc_booking_has_persons']['desc_class'] = 'wcfm_custom_hide'; $general_fields['_wc_booking_has_persons']['dfvalue'] = 'no'; } return $general_fields; }
Thank you
paattalParticipantHello,
Great ! I had not seen this option, it works perfectly thanks for the tip 🙂
paattalParticipantHello,
1. Yes, that’s how I understood how it works:
customized capacities (vendor settings) -> priority 1
group capacities (group settings)-> priority 2 (with fusion of capacities according to your return)
global capacities (marketplace settings) -> priority 3
So, I would like to define a vendor profile with capacities defined by the groups. And in a particular case, have recourse only to customized capacities.2. OK it’s a good logic but I just did the test and I note that only one “Sold by label” is displayed (that of the first group created). In this case I think that the 2 labels should be displayed for this to be consistent.
You say “if any particular capability is turned as OFF then it will be set as OFF once the group is merged” but it’s not case with inquiry set to off in group. I did the test with a vendor included in only one group and I have to do it in customised settings vendor to make it work on product page (works on store page).Thanks
paattalParticipantHello,
Thank you, I tested your filter but sorry, the image is still not changed. I have always woocommerce-placeholder.png displayed. 🙁
paattalParticipantHello,
OK it works well.
1. On the other hand, the settings of Inquiry being off for a defined group of vendors (I have created a group capacities), is it possible to have in the hook the verification rather on the capacities of the group to which the vendor belongs and not on the personalized capacities of each vendor? Otherwise, this requires customizing the capacities of each vendor and if I am not mistaken, these capacities will no longer be synchronized with those defined for the group of vendors.
2. I find it strange to be able to select the same vendor in several groups capacities? Do the capacities defined in each group not conflict for this vendor? It seems to me that once a vendor is inside a capacities group, it should disappear from the list of available vendors, right?
Thanks again.
paattalParticipantHello,
Thanks for your reply.
As you can see on screenshot, after inserted the code in functions.php file and inquiries capability off (globale vendor capabilities settings) unfortunately no change, any users can still ask questions. 🙁
Attachments:
You must be logged in to view attached files.paattalParticipantno answer ?
paattalParticipantHello,
Of course it works but the solution is radical and I need to have this functionality for some users. Can we have the same display verification on product page depending on the activation of the inquiry capapilities as on the vendor page?
Thanks
- AuthorPosts